/* ==========================================================================
   JOURNEYJUNKIE DESIGN SYSTEM - PREMIUM EDITORIAL TRAVEL THEME
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
    /* Color Palette - Light Mode (Warm Editorial) */
    --bg-primary: #FDFBF7;
    --bg-secondary: #F6F3EC;
    --bg-card: #FFFFFF;
    --text-primary: #22201E;
    --text-secondary: #5C5650;
    --text-muted: #8E857C;
    
    --primary: #D95D39; /* Terracotta */
    --primary-hover: #BF4D2D;
    --accent: #E2A05B; /* Amber/Ochre */
    --accent-light: #F7EAD9;
    
    --border-color: #E6E1D8;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.02);
    --shadow-md: 0 4px 12px rgba(34,32,30,0.06), 0 2px 4px rgba(34,32,30,0.02);
    --shadow-lg: 0 12px 30px rgba(34,32,30,0.12), 0 4px 8px rgba(34,32,30,0.04);
    
    /* Layout & Spacing */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Animations */
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Mode Overrides */
[data-theme="dark"] {
    --bg-primary: #121110;
    --bg-secondary: #1C1A19;
    --bg-card: #1F1D1B;
    --text-primary: #F3EFEA;
    --text-secondary: #C7C0B7;
    --text-muted: #9A9287;
    
    --primary: #E2704E;
    --primary-hover: #F08362;
    --accent: #EAA966;
    --accent-light: #2D241C;
    
    --border-color: #2D2A28;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
    --shadow-lg: 0 12px 30px rgba(0,0,0,0.5);
}

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

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color var(--transition-smooth), color var(--transition-smooth);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

/* --- Layout Containers --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 760px;
}

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

/* --- Micro-Animations & Utilities --- */
.animate-fade-in {
    animation: fadeIn var(--transition-slow) forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 20px;
    background-color: var(--accent-light);
    color: var(--primary);
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: #FFFFFF;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--border-color);
}

/* --- Header / Navigation --- */
.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(253, 251, 247, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-smooth), border-color var(--transition-smooth);
}

[data-theme="dark"] .main-header {
    background-color: rgba(18, 17, 16, 0.8);
}

.header-container {
    height: 80px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
}

.logo-accent {
    color: var(--primary);
    margin-right: 2px;
}

.desktop-nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 0;
    position: relative;
}

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

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
    background-color: var(--bg-secondary);
}

.theme-toggle .moon-icon { display: none; }
.theme-toggle .sun-icon { display: block; }

[data-theme="dark"] .theme-toggle .sun-icon { display: none; }
[data-theme="dark"] .theme-toggle .moon-icon { display: block; }

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 110;
}

.mobile-nav-toggle .hamburger-bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* Mobile Nav Active States */
.mobile-nav {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 24px;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow-lg);
    z-index: 99;
}

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

.mobile-nav-link {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 8px 0;
    border-bottom: 1px solid var(--bg-secondary);
}

/* --- Hero Banner Section --- */
.hero {
    padding: 80px 0 60px;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle, var(--accent-light) 0%, transparent 70%);
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.hero-subtitle {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* --- Main Site Content Grid (Blog Posts) --- */
.main-content-section {
    padding: 80px 0;
    flex-grow: 1;
}

.section-title-wrap {
    margin-bottom: 48px;
}

.section-title {
    font-size: 2.2rem;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 40px;
}

.blog-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--text-muted);
}

.card-img-wrap {
    width: 100%;
    height: 220px;
    background-color: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.blog-card:hover .card-img {
    transform: scale(1.05);
}

.card-content {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-meta {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    display: flex;
    gap: 8px;
}

.card-title {
    font-size: 1.4rem;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.card-title a:hover {
    color: var(--primary);
}

.card-excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-readmore {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-readmore:hover {
    color: var(--primary-hover);
}

/* --- Pages (About, Contact, Legal) --- */
.page-wrapper {
    padding: 60px 0 80px;
}

.page-header-section {
    padding: 60px 0 40px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    margin-bottom: 60px;
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.editorial-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.editorial-content p {
    margin-bottom: 1.8rem;
}

.editorial-content h2 {
    font-size: 1.8rem;
    margin: 2.5rem 0 1.2rem;
    color: var(--text-primary);
}

.editorial-content h3 {
    font-size: 1.4rem;
    margin: 2rem 0 1rem;
    color: var(--text-primary);
}

.editorial-content ul, .editorial-content ol {
    margin-bottom: 1.8rem;
    padding-left: 24px;
}

.editorial-content li {
    margin-bottom: 0.5rem;
}

.editorial-content blockquote {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--primary);
    border-left: 4px solid var(--primary);
    padding-left: 24px;
    margin: 2.5rem 0;
}

/* Contact Form Styling */
.contact-container {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--accent-light);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.form-feedback {
    display: none;
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    font-weight: 500;
}

.form-feedback.success {
    display: block;
    background-color: #E6F4EA;
    color: #137333;
    border: 1px solid #C4EED0;
}

.form-feedback.error {
    display: block;
    background-color: #FCE8E6;
    color: #C5221F;
    border: 1px solid #FAD2CF;
}

/* --- Article Details (Blog Posts) --- */
.article-header {
    padding: 80px 0 40px;
    text-align: center;
}

.article-meta {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.article-meta .badge {
    margin-bottom: 0;
}

.article-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.article-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 2.5rem;
    line-height: 1.5;
}

.article-author {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--border-color);
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.author-role {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.article-hero-image-wrap {
    width: 100%;
    max-width: 900px;
    height: 480px;
    margin: 0 auto 60px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.article-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-body-section {
    padding-bottom: 80px;
}

.article-footer {
    margin-top: 60px;
}

.section-divider {
    border: 0;
    height: 1px;
    background-color: var(--border-color);
    margin-bottom: 40px;
}

.article-share {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
}

.article-share span {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.share-buttons {
    display: flex;
    gap: 12px;
}

.share-btn {
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    transition: all var(--transition-fast);
}

.share-btn.twitter:hover {
    background-color: #1DA1F2;
    color: #FFFFFF;
    border-color: #1DA1F2;
}

.share-btn.facebook:hover {
    background-color: #1877F2;
    color: #FFFFFF;
    border-color: #1877F2;
}

.post-navigation {
    text-align: center;
}

.back-home-link {
    font-weight: 700;
    color: var(--primary);
    transition: color var(--transition-fast);
}

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

/* --- Footer Area --- */
.main-footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px;
    margin-top: auto;
    transition: background-color var(--transition-smooth), border-color var(--transition-smooth);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-brand {
    max-width: 360px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    display: block;
}

.footer-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-title {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

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

.footer-list li {
    margin-bottom: 0.75rem;
}

.footer-list a {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.footer-list a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-nav-toggle {
        display: flex;
    }
    
    .hero {
        padding: 60px 0 40px;
    }
    
    .hero-title {
        font-size: 2.4rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-links {
        gap: 48px;
        width: 100%;
        justify-content: space-between;
    }
    
    .article-title {
        font-size: 2.2rem;
    }
    
    .article-hero-image-wrap {
        height: 280px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn {
        width: 100%;
    }
}
