/* 
Theme Name: Fitness Facts Custom Theme
Description: High-energy dark mode fitness aesthetic
*/

:root {
    /* Color Palette - Dark & High Energy */
    --color-bg: #0B0B0F;
    /* Almost Black */
    --color-surface: #15151A;
    /* Dark Surface */
    --color-surface-hover: #1E1E26;

    --color-primary: #D4FF00;
    /* Neon Volt */
    --color-primary-hover: #B8E600;

    --color-accent: #2962FF;
    /* Electric Blue */
    --color-accent-hover: #0039CB;

    --color-text: #FFFFFF;
    --color-text-muted: #94949C;

    /* Typography */
    --font-heading: 'Teko', sans-serif;
    /* Condensed, tall, impactful */
    --font-body: 'Manrope', sans-serif;
    /* Clean, modern, distinct */

    /* UI Elements */
    --radius-sm: 4px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --shadow-glow: 0 0 20px rgba(212, 255, 0, 0.15);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600&family=Teko:wght@500;600;700&display=swap');

body,
.site,
.site-content,
.ast-container,
.entry-content {
    background-color: var(--color-bg) !important;
    color: var(--color-text);
}

/* Force dark background on card wrappers that might still be white */
.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post,
.ast-separate-container .ast-article-page {
    background-color: var(--color-surface) !important;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: #ffffff !important;
    /* Force White Headers */
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-weight: 600;
}

/* Utilities */
.container-custom {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-gradient {
    background: linear-gradient(135deg, #FFFFFF 0%, var(--color-text-muted) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-accent {
    color: var(--color-primary);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    background-color: var(--color-primary);
    color: black;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 92% 100%, 0 100%);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    color: black;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: -80px;
    /* Offset header */
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(11, 11, 15, 0.95) 0%, rgba(11, 11, 15, 0.7) 40%, rgba(11, 11, 15, 0.2) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding-top: 80px;
}

.hero-label {
    display: inline-block;
    color: var(--color-primary);
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 24px;
    padding: 8px 16px;
    border: 1px solid rgba(212, 255, 0, 0.3);
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: clamp(4rem, 8vw, 8rem);
    margin: 0;
    background: linear-gradient(180deg, #FFFFFF 0%, #a1a1aa 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin: 24px 0 40px;
    max-width: 500px;
    border-left: 3px solid var(--color-primary);
    padding-left: 24px;
}

/* Categories Bento Grid */
.categories-section {
    padding: 100px 0;
    background-color: var(--color-bg);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 24px;
}

.bento-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-surface);
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.bento-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-primary);
}

.bento-card.large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: opacity 0.4s ease, transform 0.8s ease;
}

.bento-card:hover .bento-img {
    opacity: 0.8;
    transform: scale(1.05);
}

.bento-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.bento-card h3 {
    font-size: 2.5rem;
    margin: 0;
    transform: translateY(10px);
    transition: transform 0.4s ease;
}

.bento-card:hover h3 {
    color: var(--color-primary);
    transform: translateY(0);
}

.bento-card span {
    color: #fff;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.bento-card:hover span {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}


/* Product/Affiliate Section */
.gear-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface) 100%);
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 16px;
    text-align: center;
}

.gear-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.gear-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.gear-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-glow);
}

.gear-image {
    aspect-ratio: 1;
    background: #000;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    overflow: hidden;
    position: relative;
}

.gear-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: luminosity;
    transition: all 0.4s ease;
}

.gear-card:hover .gear-image img {
    mix-blend-mode: normal;
    transform: scale(1.1);
}

.gear-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--color-primary);
    color: black;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.gear-card h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.gear-price {
    font-family: var(--font-body);
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 16px;
    display: block;
}

/* Responsive */
@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .bento-card.large {
        grid-column: span 1;
        grid-row: span 1;
        aspect-ratio: 16/9;
    }
}

/* Brand Ticker */
.brand-ticker-wrap {
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 0;
    overflow: hidden;
    position: relative;
    z-index: 5;
}

.brand-ticker {
    display: flex;
    width: max-content;
    animation: ticker 40s linear infinite;
}

.brand-ticker:hover {
    animation-play-state: paused;
}

.brand-item {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 8vw, 7rem) !important;
    /* Force Huge */
    line-height: 1;
    margin: 0 60px;
    font-weight: 800;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: default;
    white-space: nowrap;
}

.brand-item:hover {
    color: var(--color-primary);
    -webkit-text-stroke: 0;
    transform: scale(1.05);
    text-shadow: var(--shadow-glow);
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 40px 24px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-primary);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.feature-card p {
    color: #999;
    font-size: 1rem;
    line-height: 1.6;
}

/* Trending / Hot Section */
.trending-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.trending-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 16/9;
}

.trending-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.trending-card:hover img {
    transform: scale(1.1);
}

.trending-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

/* Fallback for missing images */
.trending-fallback-bg {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #0B0B0F 100%);
    position: relative;
    overflow: hidden;
}

.trending-fallback-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(212, 255, 0, 0.2) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
}

.trending-card:hover .trending-fallback-bg {
    transform: scale(1.1);
    transition: transform 0.5s ease;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}