/* ========================================
   LUXURY SCIENCE PITCHES - STYLESHEET
   ======================================== */

:root {
    --gold: #C9A962;
    --gold-light: #E8D5A3;
    --gold-dark: #8B7355;
    --black: #0A0A0A;
    --charcoal: #1A1A1A;
    --gray-dark: #2D2D2D;
    --gray: #4A4A4A;
    --gray-light: #8A8A8A;
    --white: #FAFAFA;
    --cream: #F5F3EF;

    /* Category Colors */
    --materials: #7B68EE;
    --optics: #FF6B9D;
    --chemistry: #4ECDC4;
    --biotech: #95E88A;
    --food: #FFB347;
    --authentication: #87CEEB;
    --acoustics: #DDA0DD;
    --neuro: #F08080;
    --health: #E6B8AF;
    --math: #B4A7D6;
    --profiles: #D4A574;
    --themes: #9DC183;
    --ai: #00D4AA;
    --space: #6B8DD6;
    --environment: #7CB342;
    --fashion: #E091C9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--black);
    color: var(--white);
    line-height: 1.6;
    min-height: 100vh;
}

/* ========================================
   NAVIGATION
   ======================================== */

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4rem;
    background: linear-gradient(to bottom, rgba(10,10,10,0.95), rgba(10,10,10,0));
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gold);
    text-decoration: none;
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--gray-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--gold);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    position: relative;
    padding: 9rem 4rem 1rem;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center top, rgba(201,169,98,0.15) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.issue-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(201,169,98,0.1);
    border: 1px solid var(--gold);
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 2rem;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 0;
    background: linear-gradient(135deg, var(--white) 0%, var(--gold-light) 50%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-light);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

/* ========================================
   CATEGORY HERO
   ======================================== */

.category-hero {
    position: relative;
    padding: 9rem 4rem 2rem;
    overflow: hidden;
}

.category-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.15;
    pointer-events: none;
}

.category-hero.materials::before { background: radial-gradient(ellipse at center top, var(--materials) 0%, transparent 60%); }
.category-hero.optics::before { background: radial-gradient(ellipse at center top, var(--optics) 0%, transparent 60%); }
.category-hero.chemistry::before { background: radial-gradient(ellipse at center top, var(--chemistry) 0%, transparent 60%); }
.category-hero.biotech::before { background: radial-gradient(ellipse at center top, var(--biotech) 0%, transparent 60%); }
.category-hero.food::before { background: radial-gradient(ellipse at center top, var(--food) 0%, transparent 60%); }
.category-hero.authentication::before { background: radial-gradient(ellipse at center top, var(--authentication) 0%, transparent 60%); }
.category-hero.acoustics::before { background: radial-gradient(ellipse at center top, var(--acoustics) 0%, transparent 60%); }
.category-hero.neuro::before { background: radial-gradient(ellipse at center top, var(--neuro) 0%, transparent 60%); }
.category-hero.health::before { background: radial-gradient(ellipse at center top, var(--health) 0%, transparent 60%); }
.category-hero.math::before { background: radial-gradient(ellipse at center top, var(--math) 0%, transparent 60%); }
.category-hero.profiles::before { background: radial-gradient(ellipse at center top, var(--profiles) 0%, transparent 60%); }
.category-hero.themes::before { background: radial-gradient(ellipse at center top, var(--themes) 0%, transparent 60%); }
.category-hero.ai::before { background: radial-gradient(ellipse at center top, var(--ai) 0%, transparent 60%); }
.category-hero.space::before { background: radial-gradient(ellipse at center top, var(--space) 0%, transparent 60%); }
.category-hero.environment::before { background: radial-gradient(ellipse at center top, var(--environment) 0%, transparent 60%); }
.category-hero.fashion::before { background: radial-gradient(ellipse at center top, var(--fashion) 0%, transparent 60%); }

.category-hero {
    text-align: center;
}

.category-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 0;
}

/* ========================================
   CATEGORIES GRID (HOME PAGE)
   ======================================== */

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    padding: 1rem 4rem 6rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

.categories-grid.grid-3-col {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1000px;
}

.category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background: var(--charcoal);
    border-radius: 0.75rem;
    text-decoration: none;
    color: var(--white);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border: 1px solid transparent;
    height: 100%;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card.materials::before { background: var(--materials); }
.category-card.optics::before { background: var(--optics); }
.category-card.chemistry::before { background: var(--chemistry); }
.category-card.biotech::before { background: var(--biotech); }
.category-card.food::before { background: var(--food); }
.category-card.authentication::before { background: var(--authentication); }
.category-card.acoustics::before { background: var(--acoustics); }
.category-card.neuro::before { background: var(--neuro); }
.category-card.health::before { background: var(--health); }
.category-card.math::before { background: var(--math); }
.category-card.profiles::before { background: var(--profiles); }
.category-card.themes::before { background: var(--themes); }
.category-card.ai::before { background: var(--ai); }
.category-card.space::before { background: var(--space); }
.category-card.environment::before { background: var(--environment); }
.category-card.fashion::before { background: var(--fashion); }

.category-card:hover {
    transform: translateY(-8px);
    border-color: var(--gray-dark);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.category-card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 1rem;
    color: var(--gold);
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.category-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.category-card p {
    font-size: 0.8rem;
    color: var(--gray-light);
    flex-grow: 1;
    line-height: 1.6;
    min-height: 3.2em;
}

.story-count {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.3rem 0.75rem;
    background: rgba(201,169,98,0.1);
    border-radius: 2rem;
    font-size: 0.7rem;
    color: var(--gold);
    font-weight: 500;
}

/* ========================================
   STORIES GRID (CATEGORY PAGES)
   ======================================== */

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
    padding: 1.5rem 4rem 6rem;
    max-width: 1400px;
    margin: 0 auto;
    align-items: stretch;
}

.story-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--charcoal);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--gray-dark);
    height: 100%;
}

.story-tile:hover {
    transform: translateY(-4px);
    border-color: var(--gold-dark);
    box-shadow: 0 16px 32px rgba(0,0,0,0.3);
}

.story-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--gray-dark);
}

.story-category-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 0.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.story-category-tag.materials { background: rgba(123,104,238,0.2); color: var(--materials); }
.story-category-tag.optics { background: rgba(255,107,157,0.2); color: var(--optics); }
.story-category-tag.chemistry { background: rgba(78,205,196,0.2); color: var(--chemistry); }
.story-category-tag.biotech { background: rgba(149,232,138,0.2); color: var(--biotech); }
.story-category-tag.food { background: rgba(255,179,71,0.2); color: var(--food); }
.story-category-tag.authentication { background: rgba(135,206,235,0.2); color: var(--authentication); }
.story-category-tag.acoustics { background: rgba(221,160,221,0.2); color: var(--acoustics); }
.story-category-tag.neuro { background: rgba(240,128,128,0.2); color: var(--neuro); }
.story-category-tag.health { background: rgba(230,184,175,0.2); color: var(--health); }
.story-category-tag.math { background: rgba(180,167,214,0.2); color: var(--math); }
.story-category-tag.profiles { background: rgba(212,165,116,0.2); color: var(--profiles); }
.story-category-tag.space { background: rgba(107,141,214,0.2); color: var(--space); }
.story-category-tag.themes { background: rgba(157,193,131,0.2); color: var(--themes); }
.story-category-tag.ai { background: rgba(0,212,170,0.2); color: var(--ai); }
.story-category-tag.fashion { background: rgba(224,145,201,0.2); color: var(--fashion); }
.story-category-tag.environment { background: rgba(124,179,66,0.2); color: var(--environment); }

.story-tile h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.story-subtitle {
    font-size: 0.9rem;
    color: var(--gold);
    font-style: italic;
}

.story-content {
    padding: 1.5rem 2rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.story-description {
    font-size: 0.95rem;
    color: var(--gray-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.science-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.keyword {
    padding: 0.3rem 0.7rem;
    background: var(--gray-dark);
    border-radius: 0.25rem;
    font-size: 0.75rem;
    color: var(--gray-light);
    font-weight: 500;
}

/* Secondary Categories */
.secondary-categories {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.secondary-label {
    font-size: 0.75rem;
    color: var(--gray);
    margin-right: 0.25rem;
}

.secondary-tag {
    padding: 0.25rem 0.6rem;
    border-radius: 0.25rem;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.8;
}

.secondary-tag.materials { background: rgba(123,104,238,0.15); color: var(--materials); }
.secondary-tag.optics { background: rgba(255,107,157,0.15); color: var(--optics); }
.secondary-tag.chemistry { background: rgba(78,205,196,0.15); color: var(--chemistry); }
.secondary-tag.biotech { background: rgba(149,232,138,0.15); color: var(--biotech); }
.secondary-tag.food { background: rgba(255,179,71,0.15); color: var(--food); }
.secondary-tag.authentication { background: rgba(135,206,235,0.15); color: var(--authentication); }
.secondary-tag.acoustics { background: rgba(221,160,221,0.15); color: var(--acoustics); }
.secondary-tag.neuro { background: rgba(240,128,128,0.15); color: var(--neuro); }
.secondary-tag.health { background: rgba(230,184,175,0.15); color: var(--health); }
.secondary-tag.math { background: rgba(180,167,214,0.15); color: var(--math); }
.secondary-tag.profiles { background: rgba(212,165,116,0.15); color: var(--profiles); }
.secondary-tag.themes { background: rgba(157,193,131,0.15); color: var(--themes); }
.secondary-tag.ai { background: rgba(0,212,170,0.15); color: var(--ai); }
.secondary-tag.environment { background: rgba(124,179,66,0.15); color: var(--environment); }
.secondary-tag.fashion { background: rgba(224,145,201,0.15); color: var(--fashion); }

/* Also Tags - positioned at bottom right of story content */
.also-tags {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
}

.also-label {
    font-size: 0.7rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.also-tag {
    padding: 0.25rem 0.6rem;
    border-radius: 0.25rem;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.also-tag.materials { background: rgba(123,104,238,0.2); color: var(--materials); }
.also-tag.optics { background: rgba(255,107,157,0.2); color: var(--optics); }
.also-tag.chemistry { background: rgba(78,205,196,0.2); color: var(--chemistry); }
.also-tag.biotech { background: rgba(149,232,138,0.2); color: var(--biotech); }
.also-tag.food { background: rgba(255,179,71,0.2); color: var(--food); }
.also-tag.authentication { background: rgba(135,206,235,0.2); color: var(--authentication); }
.also-tag.acoustics { background: rgba(221,160,221,0.2); color: var(--acoustics); }
.also-tag.neuro { background: rgba(240,128,128,0.2); color: var(--neuro); }
.also-tag.health { background: rgba(230,184,175,0.2); color: var(--health); }
.also-tag.math { background: rgba(180,167,214,0.2); color: var(--math); }
.also-tag.profiles { background: rgba(212,165,116,0.2); color: var(--profiles); }
.also-tag.themes { background: rgba(157,193,131,0.2); color: var(--themes); }
.also-tag.ai { background: rgba(0,212,170,0.2); color: var(--ai); }
.also-tag.space { background: rgba(107,141,214,0.2); color: var(--space); }
.also-tag.fashion { background: rgba(224,145,201,0.2); color: var(--fashion); }
.also-tag.environment { background: rgba(124,179,66,0.2); color: var(--environment); }

/* Clickable Story Tiles */
a.story-tile {
    text-decoration: none;
    color: inherit;
}

a.story-tile:hover h3 {
    color: var(--gold);
}

/* ========================================
   ALL STORIES PAGE
   ======================================== */

.all-stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
    padding: 3rem 4rem 6rem;
    max-width: 1600px;
    margin: 0 auto;
    align-items: stretch;
}

.story-card-mini {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background: var(--charcoal);
    border-radius: 0.75rem;
    text-decoration: none;
    color: var(--white);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-dark);
    height: 100%;
}

.story-card-mini:hover {
    border-color: var(--gold-dark);
    transform: translateY(-2px);
}

.story-card-mini h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.story-card-mini p {
    font-size: 0.85rem;
    color: var(--gray-light);
    line-height: 1.6;
    flex-grow: 1;
}



/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1000px) {
    .categories-grid,
    .categories-grid.grid-3-col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-nav {
        padding: 0.75rem 1rem;
    }

    .main-nav .logo {
        font-size: 1rem;
    }

    .nav-links a {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }

    .logo-suffix {
        display: none;
    }

    .hero {
        padding: 5rem 1.5rem 0.25rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .category-hero {
        padding: 5rem 1.5rem 2rem;
    }

    .category-hero h1 {
        font-size: 1.75rem;
    }

    .categories-grid,
    .categories-grid.grid-3-col,
    .stories-grid,
    .all-stories-grid {
        padding: 0.5rem 1.5rem 4rem;
        grid-template-columns: 1fr;
    }

    .category-card {
        padding: 1.5rem;
    }
}
