/* 
  bestcoolers.net Premium Affiliate CSS 
  Theme: Dark Mode / Neon Accents / Glassmorphism
*/

:root {
    /* Color Palette */
    --bg-dark: #0f111a;
    --bg-card: rgba(30, 33, 43, 0.6);
    --border-glass: rgba(255, 255, 255, 0.08);

    --text-main: #e2e8f0;
    --text-muted: #94a3b8;

    --accent-primary: #00E5FF;
    /* Cyan */
    --accent-hover: #00b3cc;
    --accent-secondary: #FF3366;
    /* Vibrant Pink/Red */
    --accent-amazon: #FF9900;
    --accent-amazon-hover: #e68a00;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, rgba(15, 17, 26, 0.9) 0%, rgba(30, 33, 43, 0.95) 100%);
    --gradient-card: linear-gradient(180deg, rgba(30, 33, 43, 0.4) 0%, rgba(15, 17, 26, 0.8) 100%);
    --gradient-text: linear-gradient(90deg, #00E5FF, #0055FF);

    /* Shadows & Effects */
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.05);

    /* Typography - Removed Google Fonts (Outfit, Inter) for performance */
    --font-heading: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    --font-body: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #ffffff;
    color: #475569;
    /* slate-600 */
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Abstract Background Blobs removed */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: #1e293b;
    /* slate-800 */
    line-height: 1.2;
}

h1>span,
h2>span {
    color: #0d9488;
    /* brand-600 green */
    display: inline;
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 17, 26, 0.7);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    border-bottom: 1px solid var(--border-glass);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: 1px;
}

.logo span {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    /* Offset for nav */
    /* Deep abstract background for hero */
    background: radial-gradient(circle at center, rgba(30, 33, 43, 1) 0%, rgba(15, 17, 26, 1) 100%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0IiBoZWlnaHQ9IjQiPgo8cmVjdCB3aWR0aD0iNCIgaGVpZ2h0PSI0IiBmaWxsPSIjZmZmIiBmaWxsLW9wYWNpdHk9IjAuMDUiLz4KPC9zdmc+') repeat;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.3);
    color: var(--accent-primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-badge {
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-subtext {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 650px;
}

.hero-cta-group {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    font-size: 1.05rem;
    border: none;
}

.btn-primary {
    background: var(--accent-primary);
    color: #000;
    box-shadow: var(--shadow-neon);
}

.btn-primary:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.btn-amazon {
    display: block;
    width: 100%;
    background: #ff9900;
    color: #000;
    padding: 1.2rem;
    margin-top: 1.5rem;
    border-radius: 8px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-amazon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.btn-amazon:hover {
    background: #ffaa00;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 153, 0, 0.3);
}

.btn-amazon:hover::before {
    left: 100%;
}

/* Trust Indicators */
.trust-indicators {
    display: flex;
    gap: 2rem;
    border-top: 1px solid var(--border-glass);
    padding-top: 2rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

.trust-icon {
    font-size: 1.5rem;
}

/* Glass Panels */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-card);
}

.highlight-panel {
    margin: -80px auto 4rem;
    position: relative;
    z-index: 20;
    border-left: 4px solid var(--accent-primary);
}

.editorial-intro h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
}

.editorial-intro p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

/* Categories Section */
.category-section {
    padding: 6rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.section-desc {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Cooler Grid */
.cooler-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.cooler-card {
    padding: 0;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.cooler-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 229, 255, 0.1);
    border-color: rgba(0, 229, 255, 0.3);
}

.card-image-wrap {
    position: relative;
    width: 100%;
    height: 250px;
    background: #111;
    overflow: hidden;
}

.cooler-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    opacity: 0.8;
}

.cooler-card:hover .cooler-img {
    transform: scale(1.05);
    opacity: 1;
}

.badges {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.card-badge {
    background: var(--accent-primary);
    color: #000;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: var(--gradient-card);
}

.card-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.spec-item {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.spec-value {
    font-size: 1.1rem;
    font-weight: 700;
}

.spec-value.highlight {
    color: var(--accent-primary);
}

.personal-take {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    border-left: 2px solid var(--accent-primary);
    padding-left: 1rem;
}

.tested-label {
    font-weight: 700;
    color: #fff;
    font-style: normal;
}

.pros-cons {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: auto;
    /* Pushes button to bottom */
}

.pros h4,
.cons h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
    color: #fff;
}

.pros ul,
.cons ul {
    list-style: none;
}

.pros li,
.cons li {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--text-muted);
}

.check-icon,
.x-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Data Table */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table th,
.data-table td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.data-table th {
    font-family: var(--font-heading);
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    background: rgba(0, 0, 0, 0.2);
}

.data-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Honorable Mentions */
.honorable-mentions {
    margin: 4rem auto;
}

.honorable-mentions h3 {
    margin-bottom: 1rem;
}

.honorable-mentions p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    list-style: none;
}

.tag-list li {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.tag-list li:hover {
    color: #fff;
    border-color: var(--accent-primary);
    background: rgba(0, 229, 255, 0.1);
}

/* Footer */
.site-footer {
    background: rgba(10, 11, 15, 0.95);
    border-top: 1px solid var(--border-glass);
    padding: 4rem 0 2rem;
    margin-top: 6rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.footer-disclaimer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
}

.footer-disclaimer p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .trust-indicators {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* In a real app, add a hamburger menu */
    }

    .hero-cta-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .spec-item {
        font-size: 0.9rem;
    }
}

/* Custom sidebar scrollbar for Windows/Chrome visibility */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
    /* Slightly wider */
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
    /* Subtle track background */
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    /* slate-300 - Always visible */
    border: 2px solid transparent;
    background-clip: content-box;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #0d9488;
    /* brand-600 */
    border: 1px solid transparent;
}

/* Ensure the scroller is always available for layout calc */
.custom-scrollbar {
    scrollbar-gutter: stable;
}

/* Modal Animations */
@keyframes modal-in {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.animate-in {
    animation-duration: 300ms;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    animation-fill-mode: forwards;
}

.fade-in {
    animation-name: modal-in;
}


/* Modal specific prose tweaks */
.prose-slate h3 {
    margin-top: 0 !important;
}

/* Ensure modal is above everything */
#legalModal {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}