:root {
    /* Theme's original variable names (used by style.css selectors) */
    --primary-color: #E8432E;
    --primary-dark: #C2301E;
    --secondary-color: #1A3F5C;
    --accent-color: #F5A623;
    --text-dark: #1B1B1B;
    --text-light: #5C6370;
    --bg-light: #F7F5F2;
    --bg-white: #FFFFFF;
    --border-color: #E0DDD8;

    /* Custom variable names (used in custom selectors) */
    --color-primary: #E8432E;
    --color-primary-dark: #C2301E;
    --color-primary-light: #F06B5A;
    --color-secondary: #1A3F5C;
    --color-accent: #F5A623;
    --color-bg: #F7F5F2;
    --color-bg-warm: #EDE8E1;
    --color-text: #1B1B1B;
    --color-text-light: #5C6370;
    --color-border: #E0DDD8;
    --color-white: #FFFFFF;
    --color-dark: #1B1B1B;

    /* Gradients, fonts, shadows */
    --gradient-hero: linear-gradient(135deg, #E8432E 0%, #C2301E 50%, #1A3F5C 100%);
    --gradient-warm: linear-gradient(135deg, #F5A623 0%, #E8432E 100%);
    --font-heading: 'Space Grotesk', 'Poppins', sans-serif;
    --font-body: 'Work Sans', 'Segoe UI', sans-serif;
    --shadow-sm: 0 1px 3px rgba(232, 67, 46, 0.08);
    --shadow-md: 0 4px 12px rgba(232, 67, 46, 0.12);
    --shadow-lg: 0 8px 30px rgba(232, 67, 46, 0.15);
    --border-radius: 10px;
    --border-radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: var(--font-body);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); }
body { font-size: clamp(1rem, 1.5vw, 1.1rem); }

/* Hero with gradient overlay - bold sports energy */
.hero {
    background: linear-gradient(135deg, #B91C1C 0%, #991B1B 40%, #1A3F5C 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M20 0L40 20L20 40L0 20z'/%3E%3C/g%3E%3C/svg%3E");
}

.hero-title,
.hero-subtitle {
    position: relative;
    z-index: 1;
}

.hero-buttons {
    position: relative;
    z-index: 1;
}

.hero-image {
    position: relative;
    z-index: 1;
}

/* Feature cards with accent border */
.feature-card {
    border-top: 4px solid var(--color-accent);
    transition: var(--transition), transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

/* Article cards with side accent */
.article-card {
    border-left: 4px solid var(--color-primary);
    transition: var(--transition), transform 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
}

/* Category cards with top accent */
.category-card {
    border-top: 4px solid var(--color-secondary);
    transition: var(--transition), transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

/* Post cards */
.post-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition), transform 0.3s ease;
    overflow: hidden;
}

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

/* TOC Styles */
.toc-details {
    background: var(--color-bg-warm);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    padding: 0;
}

.toc-summary {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-dark);
    cursor: pointer;
    padding: 1rem 1.5rem;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.toc-summary::-webkit-details-marker {
    display: none;
}

.toc-summary::after {
    content: '\25B8';
    font-size: 1rem;
    transition: transform 0.25s ease;
    color: var(--color-primary);
}

.toc-details[open] .toc-summary::after {
    transform: rotate(90deg);
}

.toc-details[open] .toc-summary {
    border-bottom: 1px solid var(--color-border);
}

.table-of-contents {
    padding: 1rem 1.5rem 1.5rem;
    margin: 0;
}

.table-of-contents ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.table-of-contents a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
    line-height: 1.5;
}

.table-of-contents a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Affiliate disclosure visibility fix */
.affiliate-disclosure {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    margin-top: 0.75rem;
}

/* Scroll animation safety - cards visible by default */
.post-card,
.feature-card,
.article-card,
.category-card {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.post-card.visible,
.feature-card.visible,
.article-card.visible,
.category-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Blog post header accent */
.post-header {
    background: linear-gradient(135deg, #B91C1C 0%, #991B1B 40%, #1A3F5C 100%);
    position: relative;
    overflow: hidden;
}

.post-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M20 0L40 20L20 40L0 20z'/%3E%3C/g%3E%3C/svg%3E");
}

.post-header .container {
    position: relative;
    z-index: 1;
}

/* Button hover enhancements */
.btn-primary {
    background: var(--color-primary);
    color: white;
}

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

/* How We Test section */
.how-we-test {
    background: var(--color-bg);
}

/* Check price button */
.check-price-btn {
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
}

.check-price-btn:hover {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
}

/* Print styles - do NOT hide affiliate disclosure */
@media print {
    .header,
    .footer,
    .hero-buttons,
    .post-navigation,
    .related-posts {
        display: none;
    }

    .product-table {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .check-price-btn {
        background: #f0f0f0;
        color: #000;
    }
}