/* =============================================
   YOURNEY — Stylesheet
   ============================================= */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #FDFAF6;
    --color-surface: #FFFFFF;
    --color-text: #2C2C2C;
    --color-text-light: #6B6B6B;
    --color-text-muted: #9A9A9A;
    --color-accent: #4A6FA5;
    --color-accent-hover: #3A5A8C;
    --color-accent-light: #EEF2F8;
    --color-border: #E8E2DA;
    --color-border-light: #F0EBE4;
    --color-warm-gray: #F5F1EC;
    --color-dark: #1A1A1A;

    /* Topic: Travel */
    --color-travel:       #2E7D6E;
    --color-travel-hover: #245F53;
    --color-travel-light: #E8F5F2;
    --color-travel-muted: rgba(46, 125, 110, 0.12);

    /* Topic: Food (aliases for existing accent) */
    --color-food:         #4A6FA5;
    --color-food-hover:   #3A5A8C;
    --color-food-light:   #EEF2F8;
    --color-food-muted:   rgba(74, 111, 165, 0.12);

    /* Topic: Tech */
    --color-tech:         #6B4FA8;
    --color-tech-hover:   #5A3D90;
    --color-tech-light:   #F0EBFB;
    --color-tech-muted:   rgba(107, 79, 168, 0.12);

    --topicnav-height: 56px;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-accent-hover);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Placeholder Images --- */
.placeholder-img {
    width: 100%;
    height: 100%;
    min-height: 200px;
    background: linear-gradient(
        135deg,
        hsl(var(--hue, 25), 40%, 85%),
        hsl(calc(var(--hue, 25) + 30), 35%, 78%)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

.placeholder-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.08));
}

.placeholder-img span {
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: all var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(253, 250, 246, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border-light);
    padding: 0.75rem 0;
    box-shadow: var(--shadow-sm);
}

/* White nav elements when transparent over dark hero */
.navbar:not(.scrolled) .nav-links a        { color: rgba(255, 255, 255, 0.85); }
.navbar:not(.scrolled) .nav-links a:hover,
.navbar:not(.scrolled) .nav-links a.active { color: white; }
.navbar:not(.scrolled) .nav-links a::after { background: white; }
.navbar:not(.scrolled) .logo               { color: white; }
.navbar:not(.scrolled) .logo-icon          { color: rgba(255, 255, 255, 0.7); }
.navbar:not(.scrolled) .nav-toggle span    { background: white; }

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo:hover {
    color: var(--color-accent);
}

.logo-icon {
    font-size: 1.2rem;
    color: var(--color-accent);
}

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

.nav-links a {
    color: var(--color-text);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.25rem 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--color-accent);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-dark);
    transition: all var(--transition);
    border-radius: 2px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--color-accent);
    color: white;
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(74, 111, 165, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
}

.btn-outline:hover {
    background: var(--color-accent);
    color: white;
    transform: translateY(-2px);
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, #0D1B2A, #1B2E42, #0A1628);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(74, 111, 165, 0.15), transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(150, 185, 230, 0.1), transparent 50%);
}

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

.hero-tag {
    color: var(--color-accent);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 10vw, 7rem);
    font-weight: 700;
    color: white;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 1.15rem;
    line-height: 1.8;
    max-width: 500px;
    margin: 0 auto 2.5rem;
}

/* --- Featured Section --- */
.featured-section {
    padding: 5rem 0;
    margin-top: -4rem;
    position: relative;
    z-index: 2;
}

.featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.featured-image {
    min-height: 400px;
}

.featured-image .placeholder-img {
    border-radius: 0;
    min-height: 100%;
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
}

.featured-content {
    padding: 3rem 3rem 3rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-content h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.featured-content h2 a {
    color: var(--color-dark);
}

.featured-content h2 a:hover {
    color: var(--color-accent);
}

.featured-content p {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* --- Category Badges --- */
.category-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    margin-bottom: 0.75rem;
    background: var(--color-accent-light);
    color: var(--color-accent);
}

.category-badge.recipe {
    background: #EEF2F8;
    color: #4A6FA5;
}

.category-badge.story {
    background: #FDF5E6;
    color: #B07D3A;
}

.category-badge.review {
    background: #EBFFF0;
    color: #3E8C4F;
}

/* --- Post Meta --- */
.post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

.post-meta-large {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-top: 1rem;
}

.separator {
    opacity: 0.4;
}

/* --- Posts Section --- */
.posts-section {
    padding: 4rem 0 6rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 2.2rem;
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    border: 1px solid var(--color-border);
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-light);
    cursor: pointer;
    transition: all var(--transition);
}

.filter-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.filter-btn.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: white;
}

/* --- Posts Grid --- */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.post-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.post-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.post-card-image {
    height: 220px;
    overflow: hidden;
}

.post-card-image .placeholder-img {
    border-radius: 0;
    min-height: 100%;
    transition: transform var(--transition);
}

.post-card:hover .post-card-image .placeholder-img {
    transform: scale(1.05);
}

.post-card-body {
    padding: 1.5rem;
}

.post-card-body h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.post-card-body h3 a {
    color: var(--color-dark);
}

.post-card-body h3 a:hover {
    color: var(--color-accent);
}

.post-card-body p {
    color: var(--color-text-light);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* --- Post Card Animation --- */
.post-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.post-card:nth-child(1) { animation-delay: 0.1s; }
.post-card:nth-child(2) { animation-delay: 0.2s; }
.post-card:nth-child(3) { animation-delay: 0.3s; }
.post-card:nth-child(4) { animation-delay: 0.4s; }
.post-card:nth-child(5) { animation-delay: 0.5s; }
.post-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hidden state for filter */
.post-card.hidden {
    display: none;
}

/* --- Newsletter Section --- */
.newsletter-section {
    padding: 0 0 6rem;
}

.newsletter-card {
    background: linear-gradient(135deg, #0D1B2A, #162337);
    border-radius: var(--radius-lg);
    padding: 4rem;
    text-align: center;
    color: white;
}

.newsletter-card h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.newsletter-card > p {
    color: rgba(255,255,255,0.7);
    max-width: 500px;
    margin: 0 auto 2rem;
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
    max-width: 440px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 0.85rem 1.25rem;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    color: white;
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: all var(--transition);
}

.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.4);
}

.newsletter-form input:focus {
    border-color: var(--color-accent);
    background: rgba(255,255,255,0.15);
}

.newsletter-note {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4) !important;
    margin-top: 1rem !important;
}

/* --- Footer --- */
.footer {
    background: var(--color-dark);
    color: rgba(255,255,255,0.6);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-about .logo {
    color: white;
    margin-bottom: 1rem;
}

.footer-about p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-links h4 {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
}

/* --- About Page --- */
.about-hero {
    padding: 10rem 0 4rem;
    text-align: center;
    background: linear-gradient(135deg, #0D1B2A, #1B2E42);
    color: white;
}

.about-hero h1 {
    font-family: var(--font-display);
    font-size: 3rem;
}

.about-content {
    padding: 5rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.about-portrait {
    min-height: 350px;
    font-size: 4rem;
    border-radius: var(--radius-lg);
    position: sticky;
    top: 6rem;
}

.about-text h2 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.about-text h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
}

.about-text p {
    color: var(--color-text-light);
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.about-cta {
    margin-top: 2rem;
}

/* --- Post Page --- */
.post-hero {
    padding: 10rem 0 3rem;
    text-align: center;
    background: linear-gradient(135deg, #0D1B2A, #1B2E42);
    color: white;
}

.post-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    max-width: 700px;
    margin: 0.75rem auto 0;
    line-height: 1.25;
}

.post-content-section {
    padding: 4rem 0;
}

.post-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
    max-width: 1100px;
}

.post-body {
    max-width: 700px;
}

.post-hero-image {
    min-height: 400px;
    margin-bottom: 2.5rem;
    border-radius: var(--radius-lg);
    font-size: 5rem;
}

.post-body .lead {
    font-size: 1.2rem;
    color: var(--color-text);
    font-weight: 400;
    line-height: 1.9;
    margin-bottom: 2rem;
    font-style: italic;
}

.post-body h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin: 3rem 0 1rem;
}

.post-body p {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    line-height: 1.9;
}

/* --- Recipe Card --- */
.recipe-card {
    background: var(--color-warm-gray);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin: 2.5rem 0;
    border-left: 4px solid var(--color-accent);
}

.recipe-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.recipe-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.recipe-ingredients h4,
.recipe-steps h4 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
    color: var(--color-accent);
}

.recipe-ingredients ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.recipe-ingredients li {
    padding: 0.3rem 0;
    padding-left: 1.2rem;
    position: relative;
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.recipe-ingredients li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-accent);
}

.recipe-steps ol {
    padding-left: 1.5rem;
}

.recipe-steps li {
    padding: 0.4rem 0;
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* --- Post Tags --- */
.post-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.tag {
    padding: 0.3rem 0.9rem;
    background: var(--color-warm-gray);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--color-text-light);
}

/* --- Sidebar --- */
.post-sidebar {
    position: sticky;
    top: 6rem;
}

.sidebar-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.sidebar-card h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.sidebar-card p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

.sidebar-posts {
    list-style: none;
}

.sidebar-posts li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border-light);
}

.sidebar-posts li:last-child {
    border-bottom: none;
}

.sidebar-posts a {
    font-size: 0.9rem;
    color: var(--color-text);
}

.sidebar-posts a:hover {
    color: var(--color-accent);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-card {
        grid-template-columns: 1fr;
    }

    .featured-content {
        padding: 2rem;
    }

    .post-container {
        grid-template-columns: 1fr;
    }

    .post-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-surface);
        flex-direction: column;
        padding: 1.5rem;
        gap: 0;
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-md);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--color-border-light);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

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

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-tabs {
        flex-wrap: wrap;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-portrait {
        position: static;
        max-width: 280px;
        margin: 0 auto;
    }

    .newsletter-card {
        padding: 2.5rem 1.5rem;
    }
}

/* =============================================
   TOPIC NAV BAR
   ============================================= */

.topic-nav {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-80px);
    z-index: 999;
    background: rgba(253, 250, 246, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--color-border-light);
    border-radius: 50px;
    padding: 0.45rem 0.5rem;
    display: flex;
    gap: 0.25rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.topic-nav.visible {
    transform: translateX(-50%) translateY(calc(64px + 12px));
    opacity: 1;
    pointer-events: auto;
}

.topic-pill {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-light);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.topic-pill:hover {
    background: var(--color-warm-gray);
    color: var(--color-text);
}

.topic-pill .pill-icon {
    font-size: 1rem;
    line-height: 1;
}

.topic-pill[data-topic="travel"].active { background: var(--color-travel); color: white; }
.topic-pill[data-topic="food"].active   { background: var(--color-food);   color: white; }
.topic-pill[data-topic="tech"].active   { background: var(--color-tech);   color: white; }

/* =============================================
   TOPIC SECTIONS
   ============================================= */

.topic-section {
    padding: 5rem 0 4rem;
    position: relative;
}

.topic-section + .topic-section {
    border-top: 1px solid var(--color-border-light);
}

.topic-section-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid transparent;
}

.topic-section[data-section="travel"] .topic-section-header { border-bottom-color: var(--color-travel); }
.topic-section[data-section="food"]   .topic-section-header { border-bottom-color: var(--color-food); }
.topic-section[data-section="tech"]   .topic-section-header { border-bottom-color: var(--color-tech); }

.topic-icon {
    font-size: 2.5rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.topic-title-group h2 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 0.3rem;
}

.topic-tagline {
    font-size: 0.95rem;
    color: var(--color-text-light);
    font-style: italic;
}

.topic-section[data-section="travel"] .topic-title-group h2 { color: var(--color-travel); }
.topic-section[data-section="food"]   .topic-title-group h2 { color: var(--color-food); }
.topic-section[data-section="tech"]   .topic-title-group h2 { color: var(--color-tech); }

/* =============================================
   FILTER CHIPS (per-section)
   ============================================= */

.filter-chips {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.chip-btn {
    padding: 0.35rem 1rem;
    border-radius: 50px;
    border: 1.5px solid var(--color-border);
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all var(--transition);
}

.chip-btn:hover {
    color: var(--color-text);
    border-color: var(--color-text-light);
}

.topic-section[data-section="travel"] .chip-btn.active { background: var(--color-travel); border-color: var(--color-travel); color: white; }
.topic-section[data-section="food"]   .chip-btn.active { background: var(--color-food);   border-color: var(--color-food);   color: white; }
.topic-section[data-section="tech"]   .chip-btn.active { background: var(--color-tech);   border-color: var(--color-tech);   color: white; }

/* =============================================
   CATEGORY BADGE — new variants
   ============================================= */

.category-badge.destination { background: var(--color-travel-light); color: var(--color-travel); }
.category-badge.guide       { background: #E8F2EF; color: #1F6355; }
.category-badge.travel-tip  { background: #DFF0EC; color: #1F6355; }
.category-badge.tech-review { background: var(--color-tech-light); color: var(--color-tech); }
.category-badge.tech-guide  { background: #EDE8F7; color: #5A3D90; }
.category-badge.tech-story  { background: #F5F0FC; color: #7B5BBF; }

/* =============================================
   TOPIC NAV + SECTION — responsive
   ============================================= */

@media (max-width: 768px) {
    .topic-nav {
        width: calc(100% - 2rem);
        max-width: 340px;
    }

    .topic-pill {
        padding: 0.45rem 0.85rem;
        font-size: 0.8rem;
    }

    .topic-section-header {
        flex-direction: column;
        gap: 0.75rem;
    }

    .topic-icon {
        font-size: 2rem;
    }
}

/* =============================================
   TOPIC-COLORED CARD TOP BORDER (homepage feed)
   ============================================= */
.post-card[data-section="travel"] { border-top: 3px solid var(--color-travel); }
.post-card[data-section="food"]   { border-top: 3px solid var(--color-food); }
.post-card[data-section="tech"]   { border-top: 3px solid var(--color-tech); }

/* =============================================
   WHOLE-CARD CLICKABLE
   ============================================= */
.post-card { position: relative; }
.post-card h3 a::after {
    content: '';
    position: absolute;
    inset: 0;
}

/* =============================================
   READING PROGRESS BAR
   ============================================= */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    z-index: 1001;
    background: var(--color-accent);
    transition: width 0.1s linear;
}

/* =============================================
   BACK TO TOP BUTTON
   ============================================= */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--color-accent);
    color: white;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity var(--transition), transform var(--transition);
    box-shadow: var(--shadow-md);
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: center;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover   { background: var(--color-accent-hover); }

/* =============================================
   TOPIC PAGE HERO (travel.html / food.html / tech.html)
   ============================================= */
.topic-page-hero {
    padding: 8rem 0 3.5rem;
    text-align: center;
    color: white;
    position: relative;
}
.topic-page-hero .topic-icon  { font-size: 3rem; display: block; margin-bottom: 1rem; }
.topic-page-hero h1           { font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 4rem); margin-bottom: 0.5rem; }
.topic-page-hero .topic-tagline { font-size: 1.1rem; opacity: 0.8; font-style: italic; }
.travel-page { background: linear-gradient(135deg, #0A1F1C, #1A3D35, #0D2B26); }
.food-page   { background: linear-gradient(135deg, #0D1B2A, #1B2E42, #0A1628); }
.tech-page   { background: linear-gradient(135deg, #140D22, #2A1B45, #0F0A1E); }

/* =============================================
   POST HERO TOPIC VARIANTS
   ============================================= */
.post-hero.travel { background: linear-gradient(135deg, #0A1F1C, #1A3D35); }
.post-hero.food   { background: linear-gradient(135deg, #0D1B2A, #1B2E42); }
.post-hero.tech   { background: linear-gradient(135deg, #140D22, #2A1B45); }

/* =============================================
   STICKY POST SIDEBAR
   ============================================= */
.post-sidebar {
    position: sticky;
    top: calc(64px + 1.5rem);
    align-self: start;
}

/* =============================================
   TOPIC PAGE — posts section spacing
   ============================================= */
.topic-page-section {
    padding: 4rem 0;
}
