:root {
    --color-bg: #ffffff; /* Crisp White */
    --color-surface: #f9f9f9;
    --color-text: #1a1a1a; /* Almost Black */
    --color-text-light: #555555;
    --color-primary: #ff3300; /* Bold Orange/Red (Verge Style) */
    --color-accent: #000000; /* Solid Black */
    --color-border: #e5e5e5;
    
    --font-heading: 'Oswald', sans-serif;
    --font-serif: 'Merriweather', serif;
    --font-body: 'Work Sans', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    position: relative;
    z-index: 0;
}



/* FTC Affiliate Disclaimer */
.affiliate-disclaimer {
    background: #e6dfcc; /* Slightly darker sand */
    text-align: center;
    padding: 0.5rem 2rem;
    font-size: 0.75rem;
    color: var(--color-text-light);
    border-bottom: 1px solid rgba(168, 123, 81, 0.2);
}

.affiliate-disclaimer a {
    color: var(--color-primary);
    text-decoration: underline;
    font-weight: 600;
}

/* Header - Clean High Contrast */
.site-header {
    background: #ffffff;
    border-bottom: 2px solid var(--color-accent);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--color-primary); /* Clay color */
    text-shadow: none;
    user-select: none;
}

.main-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: var(--color-text); /* Dark brown */
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--color-accent);
}

.main-nav .nav-deals {
    color: var(--color-accent);
    font-weight: 700;
    margin-left: 1rem;
}

.main-nav .nav-deals:hover {
    color: #b34a2e;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.main-nav .nav-search {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    margin-left: 1rem;
}

.main-nav .nav-search:hover {
    color: var(--color-accent);
}

.main-nav .has-dropdown {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-dropdown-wrapper {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 4px;
    padding: 1rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.nav-dropdown-wrapper:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1.5rem;
    color: var(--color-text);
    text-transform: none;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0;
}

.dropdown-menu a:hover {
    background: #fcfbf8;
    color: var(--color-accent);
}

.btn-login:hover {
    background: #8c3611;
}

/* Full Bleed Hero */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 4rem 2rem;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0) 100%);
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 900px;
    color: #fff;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}

.category-label {
    display: inline-block;
    background: var(--color-accent);
    color: #fff;
    font-family: var(--font-heading);
    padding: 4px 12px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.hero-excerpt {
    font-size: 1.25rem;
    font-family: var(--font-body);
    max-width: 600px;
    margin: 0 auto 2rem;
    color: #e0e0e0;
}

.btn-primary {
    background: #fff;
    color: var(--color-text);
    border: none;
    padding: 1rem 2.5rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.btn-primary:hover {
    background: var(--color-border);
    transform: translateY(-2px);
}

/* Layout */
.container {
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.layout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

@media (min-width: 1024px) {
    .layout-grid {
        grid-template-columns: 7fr 3fr;
        align-items: start;
    }
}

.section-heading {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-transform: uppercase;
    color: var(--color-primary);
    border-bottom: 3px solid var(--color-primary);
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

/* Post Grid */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 3rem 2rem;
}

.post-card {
    cursor: pointer;
    transition: transform 0.3s;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 0px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.post-info {
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.post-image-wrapper {
    aspect-ratio: 4/3;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: #ccc;
    position: relative;
}

.post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
    filter: sepia(0.1) brightness(0.95);
}

.post-card:hover .post-image {
    transform: scale(1.05);
    filter: sepia(0) brightness(1);
}

.post-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.post-card:hover .post-title {
    color: var(--color-primary);
}

.post-meta {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-light);
}

/* Post Content Layout Classes */
.toc-box {
    background: var(--color-surface);
    padding: 1.5rem;
    border-radius: 4px;
    border-left: 4px solid var(--color-primary);
    margin: 2rem 0;
}
.toc-box ul { list-style: none; padding-left: 0; }
.toc-box li { margin-bottom: 0.5rem; }
.toc-box a { color: var(--color-text); text-decoration: none; font-weight: 500; }
.toc-box a:hover { color: var(--color-primary); text-decoration: underline; }

.pros-box {
    background: #e6f7ff;
    border: 1px solid #b3e0ff;
    padding: 1.5rem;
    border-radius: 4px;
}
.pros-box h4 { color: #0066cc; margin-bottom: 0.5rem; }

.pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2rem 0;
}

@media (max-width: 768px) {
    .pros-cons-grid {
        grid-template-columns: 1fr;
    }
}

.cons-box {
    background: #fff0f5;
    border: 1px solid #ffb3cc;
    padding: 1.5rem;
    border-radius: 4px;
}
.cons-box h4 { color: #e6005c; margin-bottom: 0.5rem; }

.btn-cta {
    display: inline-block;
    background: var(--color-primary);
    color: #ffffff !important;
    padding: 1rem 2rem;
    border-radius: 4px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 1.5rem 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s, transform 0.2s;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 51, 0, 0.3);
}
.btn-cta:hover {
    background: #cc2900;
    transform: translateY(-2px);
    color: #ffffff !important;
}

.post-divider {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 3rem 0;
}

/* Sidebar Widgets */
.widget {
    background: #ffffff;
    border: 1px solid var(--color-border);
    padding: 2.5rem;
    border-radius: 0px;
    box-shadow: none;
    margin-bottom: 2rem;
}

@media (min-width: 1024px) {
    .widget:last-child {
        position: sticky;
        top: 6rem;
    }
}

.widget h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.newsletter-widget p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.newsletter-widget input {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    font-family: var(--font-body);
}

.btn-secondary {
    width: 100%;
    padding: 1rem;
    background: var(--color-accent);
    color: #fff;
    border: none;
    font-family: var(--font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: #a3481f;
}

.trending-list {
    list-style: none;
    counter-reset: my-awesome-counter;
}

.trending-list li {
    counter-increment: my-awesome-counter;
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.trending-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.trending-list li::before {
    content: "0" counter(my-awesome-counter);
    position: absolute;
    left: 0;
    top: 0;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-border);
    line-height: 1;
}

.trending-list h4 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    line-height: 1.4;
    cursor: pointer;
    transition: color 0.3s;
}

.trending-list h4:hover {
    color: var(--color-primary);
}

.about-widget p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

.tag-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #eadecd; /* Sand darker */
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
    transition: all 0.3s;
}

.tag:hover {
    background: var(--color-accent);
    color: #fff;
}

.featured-widget {
    text-align: center;
}

.featured-image {
    width: 100%;
    height: 350px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    margin: 1rem 0;
}

/* Pre-Footer IG Feed */
.ig-feed {
    margin-top: 6rem;
    padding-top: 4rem;
    border-top: 1px solid var(--color-border);
}

.ig-header {
    text-align: center;
    margin-bottom: 2rem;
}

.ig-header h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    text-transform: uppercase;
    color: var(--color-primary);
    letter-spacing: 2px;
}

.ig-header p {
    font-family: var(--font-serif);
    color: var(--color-text-light);
    font-style: italic;
    margin-top: 0.5rem;
}

.ig-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
    .ig-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.ig-item {
    display: block;
    aspect-ratio: 1/1;
    overflow: hidden;
    position: relative;
}

.ig-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ig-item:hover img {
    transform: scale(1.1);
}

/* Footer */
footer {
    background: #000000;
    color: #ffffff;
    text-align: center;
    padding: 5rem 2rem;
    margin-top: 4rem;
}

.footer-inner h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

.copyright {
    margin-top: 3rem;
    font-size: 0.85rem;
    opacity: 0.6;
}

/* QoL Enhancements Styles */

/* Reading Progress */
.progress-container {
    width: 100%;
    height: 4px;
    background: transparent;
    position: fixed;
    top: 0;
    z-index: 9999;
}
.progress-bar {
    height: 4px;
    background: var(--color-accent);
    width: 0%;
}

.post-reading-time {
    display: block;
    margin-top: 1rem;
    font-family: var(--font-sans);
    color: #6b7280;
    font-size: 0.95rem;
}

/* Layout for TOC */
.post-layout-wrapper {
    display: flex;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    gap: 3rem;
    align-items: flex-start;
}
.post-detail-content {
    flex: 1;
    max-width: 760px;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--color-text);
    padding-bottom: 5rem;
}

.post-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.sticky-sidebar {
    width: 250px;
    position: sticky;
    top: 100px;
    display: none; /* Hidden on mobile */
}

@media (min-width: 1024px) {
    .sticky-sidebar {
        display: block;
    }
}

.toc-container {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1.5rem;
}
.toc-title {
    font-family: var(--font-sans);
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}
.toc-list {
    list-style-type: decimal;
    padding-left: 1.5rem;
    margin: 0;
}
.toc-list li {
    margin-bottom: 0.5rem;
}
.toc-list a {
    text-decoration: none;
    color: #4b5563;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.toc-list a:hover, .toc-list a.active {
    color: var(--color-accent);
    font-weight: 600;
}

/* Scroll to Top */
#scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    font-size: 1.5rem;
    border: none;
    outline: none;
    background-color: var(--color-accent);
    color: white;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: background-color 0.3s;
}
#scrollToTopBtn:hover {
    background-color: #b34a2e;
}

/* Lightbox */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}
.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
}
.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Universal Sticky CTA Banner */
.sticky-cta-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0,0,0,0.1);
    padding: 15px 20px;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -10px 30px rgba(0,0,0,0.05);
}

.sticky-cta-container.visible {
    transform: translateY(0);
}

.sticky-cta-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.sticky-cta-text {
    display: none; /* Hide on mobile to save space */
    flex-direction: column;
    text-align: left;
}

.sticky-cta-text strong {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-text);
}

.sticky-cta-text span {
    font-size: 0.9rem;
    color: #4b5563;
}

.sticky-cta-btn {
    background-color: #dc2626;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    transition: background-color 0.2s, transform 0.2s;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.sticky-cta-btn:hover {
    background-color: #b91c1c;
    transform: translateY(-2px);
}

@media (min-width: 768px) {
    .sticky-cta-text {
        display: flex;
    }
}
@media (max-width: 767px) {
    .sticky-cta-inner {
        justify-content: center;
    }
    .sticky-cta-btn {
        width: 100%;
        text-align: center;
    }
    .sticky-cta-container {
        padding: 12px 15px;
    }
}

#scrollToTopBtn {
    transition: bottom 0.3s;
}
.sticky-cta-container.visible ~ #scrollToTopBtn, 
.sticky-cta-container.visible + #scrollToTopBtn {
    bottom: 90px;
}

/* Missing Post Header Styles (Fix) */
.post-detail-header {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1.5rem 1.5rem;
    text-align: left;
}

.post-detail-category {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.9rem;
}

.post-detail-title {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    color: var(--color-text);
    margin: 0 0 0.5rem;
    line-height: 1.2;
    font-weight: 900;
}

.post-detail-hero {
    width: 100%;
    max-width: 1100px;
    height: 50vh;
    min-height: 300px;
    background-size: cover;
    background-position: center;
    margin: 0 auto 3rem;
    border-radius: 12px;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .logo {
        font-size: 1.3rem;
        letter-spacing: 1px;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-excerpt {
        font-size: 1rem;
    }
    .hero-section {
        padding: 3rem 1rem;
        height: auto;
        min-height: 400px;
    }
    .post-detail-header {
        padding: 2rem 1rem 1rem;
    }
    .post-layout-wrapper {
        flex-direction: column;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    .post-detail-title {
        font-size: 1.8rem;
    }
    .post-detail-content {
        padding-bottom: 3rem;
        font-size: 1.05rem;
    }
    .post-detail-hero {
        height: 30vh;
        min-height: 200px;
        margin-bottom: 1.5rem;
        border-radius: 0;
    }
    .post-reading-time {
        font-size: 0.85rem;
    }
}
