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

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #10b981;
    --accent: #f59e0b;
    --dark: #1f2937;
    --light: #f3f4f6;
    --white: #ffffff;
    --gray: #6b7280;
    --success: #22c55e;
    --warning: #eab308;
    --danger: #ef4444;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Navigation */
nav {
    background: var(--dark);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 15px 0;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent);
}

/* Sections */
.section {
    padding: 60px 0;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--dark);
    text-align: center;
}

/* Summary Grid */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.summary-card {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.summary-card .badge {
    position: absolute;
    top: -12px;
    left: 20px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
}

.best-overall .badge { background: var(--secondary); }
.best-budget .badge { background: var(--accent); }
.best-premium .badge { background: var(--primary); }

.summary-card h3 {
    margin-top: 10px;
    font-size: 1.4rem;
    color: var(--dark);
}

.summary-card .price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin: 10px 0;
}

.summary-card .rating {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 10px;
}

/* Comparison Table */
.table-wrapper {
    overflow-x: auto;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.comparison-table th,
.comparison-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--light);
}

.comparison-table th {
    background: var(--dark);
    color: var(--white);
    font-weight: 600;
    position: sticky;
    top: 0;
}

.comparison-table th:first-child {
    border-radius: 12px 0 0 0;
}

.comparison-table th:last-child {
    border-radius: 0 12px 0 0;
}

.comparison-table tbody tr:hover {
    background: #f8fafc;
}

.comparison-table .highlight {
    background: #ecfdf5;
    color: var(--secondary);
    font-weight: 600;
}

/* Product Cards */
.product-card {
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
}

.product-card.featured {
    border: 2px solid var(--secondary);
}

.product-card.featured.best {
    border: 3px solid var(--secondary);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.2);
}

.product-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.product-header h3 {
    font-size: 1.5rem;
    color: var(--dark);
}

.price-tag {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--white);
    padding: 8px 20px;
    border-radius: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.feature-badge {
    background: var(--accent);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.feature-badge.tech { background: var(--primary); }
.feature-badge.best { background: var(--secondary); }
.feature-badge.audio { background: #8b5cf6; }

.product-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px;
}

@media (max-width: 768px) {
    .product-content {
        grid-template-columns: 1fr;
    }
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.stars {
    color: var(--accent);
    font-size: 1.3rem;
}

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

.spec-list li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--light);
}

.spec-list li:last-child {
    border-bottom: none;
}

.product-analysis h4 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--dark);
}

.pros, .cons {
    list-style: none;
    margin-bottom: 20px;
}

.pros li, .cons li {
    padding: 6px 0;
    padding-left: 24px;
    position: relative;
}

.pros li::before {
    content: "+";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
    font-size: 1.2rem;
}

.cons li::before {
    content: "-";
    position: absolute;
    left: 0;
    color: var(--danger);
    font-weight: 700;
    font-size: 1.2rem;
}

/* Recommendations Grid */
.recommendation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.rec-card {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

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

.rec-card.highlight {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 2px solid var(--secondary);
}

.rec-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.rec-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.rec-product {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.rec-card p:last-child {
    color: var(--gray);
    font-size: 0.95rem;
}

/* Verdict Section */
.verdict {
    background: var(--white);
    border-radius: 12px;
    margin: 40px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.verdict-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.verdict-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.quick-picks {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px dashed var(--light);
}

.pick {
    background: var(--light);
    padding: 15px 25px;
    border-radius: 8px;
    text-align: center;
}

.pick-label {
    display: block;
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 5px;
}

.pick-product {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

footer p {
    margin-bottom: 8px;
}

footer .disclaimer {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }

    nav ul {
        gap: 20px;
        flex-wrap: wrap;
    }

    .section h2 {
        font-size: 1.5rem;
    }

    .product-header {
        flex-direction: column;
        text-align: center;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background: var(--primary);
    color: var(--white);
}

/* Feature Explainer Section */
.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    color: var(--gray);
}

.feature-explainer {
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
}

.feature-explainer h3 {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 20px 30px;
    font-size: 1.4rem;
    margin: 0;
}

.feature-content {
    padding: 30px;
}

.feature-content > p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.feature-content h4 {
    color: var(--dark);
    margin: 25px 0 15px;
    font-size: 1.1rem;
}

/* Benefit Grid */
.benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.benefit-grid.small {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.benefit-item {
    background: var(--light);
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid var(--primary);
}

.benefit-item h4 {
    color: var(--primary);
    margin: 0 0 10px 0;
    font-size: 1rem;
}

.benefit-item p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--gray);
}

/* Notes and Callouts */
.tradeoff-note {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    padding: 15px 20px;
    margin-top: 20px;
    color: #92400e;
}

.info-note {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 20px 0;
    color: #1e40af;
}

.info-note ul {
    margin: 10px 0 0 20px;
}

.info-note li {
    margin-bottom: 5px;
}

/* Rating Table */
.rating-table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
}

.rating-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.rating-table th,
.rating-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--light);
}

.rating-table th {
    background: var(--dark);
    color: var(--white);
    font-weight: 600;
}

.rating-table th:first-child {
    border-radius: 8px 0 0 0;
}

.rating-table th:last-child {
    border-radius: 0 8px 0 0;
}

.rating-table tbody tr:hover {
    background: #f8fafc;
}

.rating-table .highlight-row {
    background: #ecfdf5;
}

.rating-table .highlight-row td {
    color: var(--secondary);
    font-weight: 500;
}

/* Bluetooth Comparison Columns */
.comparison-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 25px 0;
}

.bt-column {
    background: var(--light);
    border-radius: 10px;
    padding: 25px;
}

.bt-column h4 {
    margin: 0 0 15px 0;
    color: var(--dark);
    font-size: 1.2rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray);
}

.bt-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bt-column li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    font-size: 0.95rem;
}

.bt-column li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--gray);
}

.bt-column.featured-bt {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 2px solid var(--secondary);
}

.bt-column.featured-bt h4 {
    color: var(--secondary);
    border-bottom-color: var(--secondary);
}

.bt-column.featured-bt li::before {
    color: var(--secondary);
}

/* ENC Comparison */
.enc-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.enc-box {
    background: var(--light);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
}

.enc-box:first-child {
    border-top: 4px solid var(--primary);
}

.enc-box:last-child {
    border-top: 4px solid var(--secondary);
}

.enc-box h4 {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
}

.enc-box:first-child h4 {
    color: var(--primary);
}

.enc-box:last-child h4 {
    color: var(--secondary);
}

.enc-box p {
    margin-bottom: 10px;
}

.enc-box .use-case {
    font-size: 0.9rem;
    color: var(--gray);
    font-style: italic;
    margin: 0;
}

/* How it works list */
.how-it-works {
    margin: 15px 0 15px 25px;
}

.how-it-works li {
    padding: 6px 0;
}

/* Verdict text */
.verdict-text {
    background: var(--light);
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary);
    margin-top: 20px;
}

/* Responsive adjustments for feature section */
@media (max-width: 768px) {
    .feature-explainer h3 {
        font-size: 1.2rem;
        padding: 15px 20px;
    }

    .feature-content {
        padding: 20px;
    }

    .benefit-grid,
    .comparison-columns,
    .enc-comparison {
        grid-template-columns: 1fr;
    }
}
