/* The Unfiltered Trail - Main Stylesheet */

/* CSS Variables */
:root {
    --primary: #1e3a5f;
    --accent: #8B5A3C;              /* Warm earth brown - natural and inviting */
    --white: #fff;
    --text: #2c3e50;
    --light: #6c757d;
    --border: #e9ecef;
    --bg: #f8f9fa;
    --shadow: 0 8px 30px rgba(30, 58, 95, 0.1);
    --shadow-hover: 0 15px 50px rgba(30, 58, 95, 0.15);
    --transition: all 0.3s ease;
    
    /* Enhanced link colors - Warm Earth Palette */
    --link-primary: #8B5A3C;        /* Warm brown - natural and trustworthy */
    --link-hover: #A0522D;          /* Sienna - warmer on hover */
    --link-visited: #6B4E3D;        /* Darker brown for visited links */
    --link-focus: #CD853F;          /* Peru - lighter brown for focus */
    --link-light-bg: #2c3e50;       /* Dark text on light backgrounds */
    --link-dark-bg: #F5DEB3;        /* Wheat color for dark backgrounds */
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary);
}

/* Enhanced title styles with text shadows */
.category-title, h1, h2, .section-title {
    color: #2c3e50;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

/* Category menu font styling */
.nav-menu {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

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

/* Enhanced link styles for better readability */
a {
    color: var(--link-primary);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

a:hover {
    color: var(--link-hover);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

a:visited {
    color: var(--link-visited);
}

a:focus {
    color: var(--link-focus);
    outline: 2px solid var(--link-focus);
    outline-offset: 2px;
    border-radius: 2px;
}

a:active {
    color: var(--primary);
    transform: translateY(1px);
}

/* Light background link variants */
.post-content a,
.card-content a,
.footer-section a {
    color: var(--link-light-bg);
    font-weight: 600;
}

.post-content a:hover,
.card-content a:hover {
    color: var(--link-primary);
    background: rgba(231, 76, 60, 0.1);
    padding: 2px 4px;
    border-radius: 4px;
}

/* Dark background link variants */
.hero a,
.newsletter a,
footer a {
    color: var(--link-dark-bg);
    font-weight: 600;
}

.hero a:hover,
.newsletter a:hover,
footer a:hover {
    color: var(--white);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

/* Header & Navigation */
header {
    position: sticky;
    top: 0;
    height: 72px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

nav {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--link-primary);
    border-bottom-color: var(--link-primary);
    font-weight: 600;
}

.nav-menu a:focus {
    color: var(--link-focus);
    outline: 2px solid var(--link-focus);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.75rem;
    min-width: 48px;
    min-height: 48px;
    justify-content: center;
    align-items: center;
    border: none;
    background: transparent;
    border-radius: 8px;
    position: relative;
    z-index: 1001;
}

.mobile-menu-toggle:hover {
    background: rgba(231, 76, 60, 0.1);
}

.mobile-menu-toggle span {
    width: 24px;
    height: 3px;
    background: var(--text);
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    min-height: calc(100vh - 72px);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.hero h1 {
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero p {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: #f8f9fa;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    margin-bottom: 2rem;
}

.hero-cta {
    display: inline-flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    border: none;
    white-space: nowrap;
    min-height: 48px;
    min-width: 48px;
    justify-content: center;
}

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

.btn-primary:hover {
    background: #A0522D;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 90, 60, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

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

/* Sections */
section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 2rem;
}

.posts-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

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

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--light);
}

.card-category {
    background: var(--link-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 2px solid var(--link-primary);
    transition: var(--transition);
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.card-excerpt {
    color: var(--light);
    margin-bottom: 1rem;
}

.card-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--light);
}

/* Post Content */
.post-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: var(--light);
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.post-content img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: var(--shadow);
}

.post-content blockquote {
    border-left: 4px solid var(--accent);
    padding: 1rem 2rem;
    margin: 2rem 0;
    background: var(--bg);
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

/* Newsletter */
.newsletter {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 4rem 0;
}

.newsletter .container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 2rem;
}

.newsletter h2 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.newsletter p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 400;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    max-width: 500px;
    margin: 2rem auto 0;
    display: flex;
    gap: 1rem;
}

.newsletter input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-family: inherit;
}

.newsletter button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter button:hover {
    background: #A0522D;
}

/* Mailchimp Integration Styles */
#mc_embed_signup {
    background: transparent !important;
    clear: left;
    font: inherit !important;
    width: 100% !important;
    max-width: 480px;
    margin: 0 auto;
}

#mc_embed_signup form {
    text-align: center;
    padding: 0 !important;
    margin: 0 !important;
}

#mc_embed_signup_scroll {
    position: relative;
}

/* Hide Mailchimp default styles and labels */
#mc_embed_signup .indicates-required,
#mc_embed_signup .asterisk,
#mc_embed_signup label {
    display: none !important;
}

/* Style the email input field */
#mc_embed_signup .mc-field-group {
    display: flex;
    gap: 0.75rem;
    margin: 0 0 1rem 0 !important;
    padding: 0 !important;
    align-items: stretch;
}

#mc_embed_signup input[type="email"] {
    flex: 1;
    padding: 1.1rem 1.25rem !important;
    border: none !important;
    border-radius: 12px !important;
    font-family: inherit !important;
    font-size: 1rem !important;
    background: white !important;
    color: var(--text) !important;
    outline: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.3s ease !important;
    min-height: 52px;
    box-sizing: border-box !important;
}

#mc_embed_signup input[type="email"]:focus {
    outline: 2px solid var(--accent) !important;
    outline-offset: 2px !important;
}

/* Style the submit button */
#mc_embed_signup .button {
    background: var(--accent) !important;
    color: white !important;
    border: none !important;
    padding: 1.1rem 2.5rem !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-family: inherit !important;
    font-size: 1rem !important;
    text-transform: none !important;
    letter-spacing: 0.01em !important;
    box-shadow: 0 4px 12px rgba(181, 101, 76, 0.4) !important;
    position: relative !important;
    min-width: 140px;
    min-height: 52px;
    box-sizing: border-box !important;
    white-space: nowrap !important;
}

#mc_embed_signup .button:hover:not(:disabled) {
    background: #A0522D !important;
    transform: translateY(-2px);
}

#mc_embed_signup .button:disabled {
    background: var(--light) !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* Loading state animation */
#mc_embed_signup .button:disabled::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

/* Response messages styling */
#mce-responses {
    margin: 1rem 0 0 0 !important;
    padding: 0 !important;
}

#mce-responses .response {
    margin: 0.5rem 0 !important;
    padding: 0.75rem 1rem !important;
    border-radius: 8px !important;
    font-size: 0.9rem !important;
    font-family: inherit !important;
    animation: slideInFade 0.3s ease-out !important;
    position: relative !important;
}

@keyframes slideInFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#mce-error-response {
    background: rgba(255, 59, 48, 0.1) !important;
    color: #ff3b30 !important;
    border: 1px solid rgba(255, 59, 48, 0.3) !important;
}

#mce-error-response::before {
    content: '⚠️ ';
    margin-right: 0.5rem;
}

#mce-success-response {
    background: rgba(52, 199, 89, 0.1) !important;
    color: #34c759 !important;
    border: 1px solid rgba(52, 199, 89, 0.3) !important;
}

#mce-success-response::before {
    content: '✅ ';
    margin-right: 0.5rem;
}

/* Hide Mailchimp branding and unnecessary elements */
#mc_embed_signup .brandingLogo,
#mc_embed_signup .refferal_badge,
#mc_embed_signup a[title*="Mailchimp"],
#mc_embed_signup p a[href*="mailchimp"],
#mc_embed_signup div.optionalParent p {
    display: none !important;
}

/* Clean up the form layout */
#mc_embed_signup .optionalParent {
    margin: 0 !important;
    padding: 0 !important;
}

#mc_embed_signup .clear {
    clear: none !important;
}

/* Footer */
footer {
    background: var(--text);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

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

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
}

/* Ad Spaces */
.ad-space {
    background: var(--border);
    border: 2px dashed var(--light);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    color: var(--light);
    margin: 2rem 0;
}

.ad-space.header {
    height: 90px;
    margin: 1rem 0;
}

.ad-space.sidebar {
    width: 300px;
    height: 250px;
}

.ad-space.content {
    height: 120px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0;
}

.pagination a,
.pagination span {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition);
}

.pagination a:hover,
.pagination .current {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
    }
    
    .nav-menu {
        display: none;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem 1rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        gap: 0;
        z-index: 1000;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        font-family: 'Montserrat', sans-serif;
    }
    
    .nav-menu.active {
        display: flex;
        transform: translateY(0);
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        display: block;
        padding: 1.25rem 0;
        font-size: 1.1rem;
        font-weight: 500;
        min-height: 48px;
        display: flex;
        align-items: center;
        border-bottom: none;
        transition: all 0.3s ease;
    }
    
    .nav-menu a:hover {
        color: var(--accent);
        transform: translateX(8px);
        background: rgba(231, 76, 60, 0.05);
        border-radius: 8px;
        padding-left: 1rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    /* Newsletter mobile styles */
    .newsletter {
        padding: 3rem 0;
    }
    
    .newsletter .container {
        padding: 0 1.5rem;
    }
    
    .newsletter h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .newsletter p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    #mc_embed_signup .mc-field-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    #mc_embed_signup input[type="email"],
    #mc_embed_signup .button {
        width: 100% !important;
        text-align: center !important;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .container {
        padding: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .card-content {
        padding: 1rem;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    /* Mobile typography optimizations */
    h1 { font-size: clamp(2rem, 8vw, 3rem); }
    h2 { font-size: clamp(1.5rem, 6vw, 2.2rem); }
    h3 { font-size: clamp(1.25rem, 5vw, 1.8rem); }
    
    /* Newsletter ultra-mobile optimizations */
    .newsletter {
        padding: 2.5rem 0;
    }
    
    .newsletter .container {
        padding: 0 1rem;
    }
    
    .newsletter h2 {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 0.75rem;
    }
    
    .newsletter p {
        font-size: clamp(0.95rem, 4vw, 1.1rem);
        margin-bottom: 1.5rem;
    }
    
    .hero h1 {
        font-size: clamp(2.2rem, 8vw, 3.5rem);
        line-height: 1.1;
    }
    
    .hero p {
        font-size: clamp(1rem, 4vw, 1.2rem);
        line-height: 1.6;
    }
    
    .card h3 {
        font-size: 1.1rem;
        line-height: 1.3;
    }
    
    .card-excerpt {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .nav-menu a {
        font-size: 1rem;
    }
    
    /* Mailchimp Mobile Responsive */
    .newsletter-form,
    #mc_embed_signup .mc-field-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    #mc_embed_signup input[type="email"] {
        width: 100% !important;
        margin-bottom: 0 !important;
    }
    
    #mc_embed_signup .button {
        width: 100% !important;
        padding: 1rem !important;
    }
    
    #mc_embed_signup {
        max-width: 100% !important;
        padding: 0 1rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #1a1a1a;
        --text: #e0e0e0;
        --light: #a0a0a0;
        --border: #333;
        --white: #2a2a2a;
        
        /* Dark mode link colors - Warm Earth Palette */
        --accent: #CD853F;              /* Peru - lighter warm tone for dark mode */
        --link-primary: #D2B48C;        /* Tan - warm and readable on dark */
        --link-hover: #DEB887;          /* Burlywood - lighter on hover */
        --link-visited: #BC9A6A;        /* Darker tan for visited */
        --link-focus: #F4A460;          /* Sandy brown for focus */
        --link-light-bg: #F5DEB3;       /* Wheat for content areas */
        --link-dark-bg: #D2B48C;        /* Tan for hero/footer */
    }
    
    body {
        background-color: var(--bg);
        color: var(--text);
    }
    
    /* Enhanced dark mode share buttons */
    .post-share {
        background: linear-gradient(135deg, #2a2a2a, #333);
        border-color: #444;
    }
    
    .share-buttons a:hover,
    .share-buttons button:hover {
        box-shadow: 0 6px 20px rgba(210, 180, 140, 0.4);
    }
    
    /* Dark mode category badges */
    .card-category {
        background: #8B5A3C;            /* Lighter brown for dark mode */
        border-color: #8B5A3C;
        color: var(--white);
    }
    
    .card-category:hover {
        background: var(--white);
        color: #8B5A3C;
        border-color: #8B5A3C;
    }
    
    /* Dark mode title styles */
    .category-title, h1, h2, .section-title {
        color: #ffffff;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    }
}

/* Category Styles */
.card-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #5D3A1A;            /* Much darker brown for better contrast */
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid #5D3A1A;
}

.card-category:hover {
    background: var(--white);
    color: #5D3A1A;
    border-color: #5D3A1A;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(93, 58, 26, 0.4);
}

.card-category:focus {
    outline: 2px solid var(--link-focus);
    outline-offset: 2px;
}

/* Category Page Styles */
.category-header {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    text-align: center;
}

.category-header h1 {
    color: var(--white);
    margin-bottom: 1rem;
}

.category-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
}

.category-header #postCount {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    display: inline-block;
    margin-top: 1rem;
    color: var(--white);
}

/* Enhanced category cards hover effects */
.categories-grid .card.category {
    position: relative;
    overflow: hidden;
}

.categories-grid .card.category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(231, 76, 60, 0.1));
    opacity: 0;
    transition: var(--transition);
}

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

.categories-grid .card.category h3 {
    position: relative;
    z-index: 2;
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.categories-grid .card.category:hover h3 {
    color: var(--accent);
    transform: translateY(-2px);
}

/* Filter improvements */
.filters {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.filters select, 
.filters input {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: var(--white);
    color: var(--text);
    font-size: 0.9rem;
    transition: var(--transition);
}

.filters select:focus,
.filters input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.filters input {
    flex: 1;
    min-width: 200px;
}

/* Category badge in posts */
.post-meta .card-category {
    margin-right: 1rem;
    margin-bottom: 0.5rem;
}

/* Responsive category styles */
@media (max-width: 768px) {
    .category-header {
        padding: 2rem 1rem;
        margin-bottom: 2rem;
    }
    
    .category-header #categoryIcon {
        font-size: 3rem;
    }
    
    .category-header h1 {
        font-size: 2rem;
    }
    
    .category-header p {
        font-size: 1rem;
    }
    
    .filters {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .filters input {
        min-width: auto;
    }
}

/* Enhanced Share Buttons and Interactive Elements */
.post-share {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    margin: 3rem 0;
    text-align: center;
    box-shadow: var(--shadow);
}

.post-share h3,
.post-share h4 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.share-buttons a,
.share-buttons button {
    background: var(--link-primary);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid var(--link-primary);
    cursor: pointer;
    transition: var(--transition);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.share-buttons a:hover,
.share-buttons button:hover {
    background: var(--white);
    color: var(--link-primary);
    border-color: var(--link-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 90, 60, 0.3);
    text-decoration: none;
}

.share-buttons a:focus,
.share-buttons button:focus {
    outline: 2px solid var(--link-focus);
    outline-offset: 2px;
}

/* Responsive Image Styles */
.responsive-image {
    margin: 2rem 0;
    max-width: 100%;
}

.responsive-image__img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    background-color: var(--border); /* Placeholder while loading */
}

.responsive-image__img:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.responsive-image__caption {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--light);
    font-style: italic;
    line-height: 1.4;
}

/* Lazy loading optimization */
.responsive-image__img[loading="lazy"] {
    transition: opacity 0.3s ease;
}

.responsive-image__img[loading="lazy"]:not([src]) {
    opacity: 0;
}

/* Responsive image container for blog posts */
.post-content .responsive-image {
    margin: 2.5rem auto;
    text-align: center;
}

.post-content .responsive-image__img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .responsive-image {
        margin: 1.5rem -1rem;
    }
    
    .responsive-image__img {
        border-radius: 0;
        box-shadow: none;
    }
    
    .responsive-image__img:hover {
        transform: none;
        box-shadow: none;
    }
    
    .post-content .responsive-image {
        margin: 1.5rem -1rem;
    }
}

/* Print styles */
@media print {
    header, footer, .newsletter, .ad-space, .filters, .category-header {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .post-content {
        max-width: none;
    }
    
    .card-category {
        background: transparent;
        color: var(--text);
        border: 1px solid var(--text);
    }
}

/* Load More Button Styles */
.load-more-container {
    margin: 3rem 0;
    text-align: center;
}

.load-more-btn {
    background: linear-gradient(135deg, var(--accent), #CD853F);
    color: var(--white);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(139, 90, 60, 0.3);
    position: relative;
    overflow: hidden;
    min-width: 200px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.load-more-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(139, 90, 60, 0.4);
    background: linear-gradient(135deg, #CD853F, var(--accent));
}

.load-more-btn:active:not(:disabled) {
    transform: translateY(0);
}

.load-more-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
}

/* Loading Spinner */
.loading-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* No More Posts Message */
.no-more-posts {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(30, 58, 95, 0.1);
    padding: 2rem;
    margin: 2rem 0;
    border: 2px dashed var(--border);
}

.no-more-posts p:first-of-type {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.no-more-posts p:last-of-type {
    color: var(--light);
    font-size: 0.9rem;
    margin: 0;
}

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

/* Mobile Responsive Load More Button */
@media (max-width: 768px) {
    .load-more-btn {
        padding: 0.875rem 2rem;
        font-size: 0.9rem;
        min-width: 180px;
    }
    
    .load-more-container {
        margin: 2rem 0;
        padding: 0 1rem;
    }
    
    .no-more-posts {
        margin: 1.5rem 1rem;
        padding: 1.5rem;
    }
    
    /* Mobile share buttons */
    .share-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .share-buttons a,
    .share-buttons button {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    /* Mobile link improvements */
    a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    
    .nav-menu a {
        padding: 1rem 0;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .load-more-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.85rem;
        min-width: 160px;
    }
    
    .loading-spinner {
        width: 16px;
        height: 16px;
    }
}