/* ============================================
   COMPARISON PAGE STYLES
   Modern Professional Light Theme
   ============================================ */

/* ---- QUICK VERDICT ---- */
.verdict-banner {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    margin-bottom: 48px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--accent);
}

.verdict-banner .verdict-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 10px;
}

.verdict-banner h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.verdict-banner p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.65;
}

.verdict-picks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.verdict-pick {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    transition: all 0.2s;
}

.verdict-pick .pick-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 3px;
    font-weight: 600;
}

.verdict-pick .pick-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.verdict-pick.best {
    border-color: var(--accent);
    background: var(--accent-light);
}

.verdict-pick.best .pick-name {
    color: var(--accent);
}

.verdict-pick.runner-up {
    border-color: #93c5fd;
    background: var(--blue-light);
}

.verdict-pick.runner-up .pick-name {
    color: var(--blue);
}

.verdict-pick.budget {
    border-color: #a7f3d0;
    background: var(--green-light);
}

.verdict-pick.budget .pick-name {
    color: var(--green);
}

/* ---- HOW WE TESTED ---- */
.how-tested {
    background: var(--blue-light);
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-md);
    padding: 18px 22px;
    margin-bottom: 48px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.6;
}

.how-tested svg {
    width: 18px;
    height: 18px;
    color: var(--blue);
    flex-shrink: 0;
    margin-top: 2px;
}

/* ---- COMPARISON TABLE ---- */
.table-wrapper,
.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    margin-bottom: 48px;
    -webkit-overflow-scrolling: touch;
    box-shadow: var(--shadow-sm);
    background: var(--bg-card);
}

.comparison-table,
.table-wrap table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.comparison-table {
    min-width: 700px;
}

.comparison-table thead,
.table-wrap table thead {
    background: var(--bg-secondary);
}

.comparison-table th,
.table-wrap table th {
    padding: 13px 16px;
    text-align: center;
    font-weight: 650;
    font-size: 0.82rem;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.comparison-table th:first-child,
.table-wrap table th:first-child {
    text-align: left;
    min-width: 170px;
}

.comparison-table th.highlight-col {
    color: var(--accent);
    position: relative;
}

.comparison-table td,
.table-wrap table td {
    padding: 11px 16px;
    text-align: center;
    border-bottom: 1px solid #f0f1f4;
    color: var(--text-secondary);
    vertical-align: middle;
    font-weight: 450;
}

.comparison-table td:first-child,
.table-wrap table td:first-child {
    text-align: left;
    font-weight: 550;
    color: var(--text-primary);
}

.comparison-table tbody tr,
.table-wrap table tbody tr {
    transition: background 0.12s;
}

.comparison-table tbody tr:hover,
.table-wrap table tbody tr:hover {
    background: #fafafc;
}

.comparison-table tbody tr:last-child td,
.table-wrap table tbody tr:last-child td {
    border-bottom: none;
}

/* Highlight column for winner */
.comparison-table td.highlight-col,
.comparison-table th.highlight-col {
    background: rgba(79, 70, 229, 0.03);
}

.comparison-table .check {
    color: var(--green);
    font-weight: 700;
    font-size: 1.05rem;
}

.comparison-table .cross {
    color: var(--red);
    font-weight: 700;
    font-size: 1.05rem;
}

.comparison-table .best-cell {
    color: var(--green);
    font-weight: 600;
}

.comparison-table .worst-cell {
    color: var(--red);
    font-weight: 500;
}

.comparison-table .avg-cell {
    color: var(--orange);
    font-weight: 500;
}

/* Star rating in table */
.stars {
    color: #f59e0b;
    letter-spacing: 1px;
    font-size: 0.82rem;
}

.stars-dim {
    color: #d1d5db;
}

/* ---- PROVIDER REVIEW CARDS ---- */
.provider-reviews {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 48px;
}

.provider-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s;
}

.provider-card:hover {
    box-shadow: var(--shadow-md);
}

.provider-card.winner {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), var(--shadow-sm);
}

.provider-card-header {
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    border-bottom: 1px solid #f0f1f4;
    background: var(--bg-secondary);
}

.provider-card-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.01em;
}

.provider-card-header h3 a {
    color: var(--text-primary);
}

.provider-card-header h3 a:hover {
    color: var(--accent);
}

.provider-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-number {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.02em;
}

.rating-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.provider-card-body {
    padding: 26px 28px;
}

.provider-card-body > p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.7;
    font-size: 0.92rem;
}

.provider-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 768px) {
    .provider-details {
        grid-template-columns: 1fr;
    }
}

.detail-group h4 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-weight: 650;
}

.detail-group ul {
    list-style: none;
    padding: 0;
}

.detail-group ul li {
    padding: 4px 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

/* Pros/Cons */
.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f1f4;
}

@media (max-width: 600px) {
    .pros-cons {
        grid-template-columns: 1fr;
    }
}

.pros h4,
.cons h4 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 650;
}

.pros h4 {
    color: var(--green);
}

.cons h4 {
    color: var(--red);
}

.pros ul,
.cons ul {
    list-style: none;
    padding: 0;
}

.pros li,
.cons li {
    padding: 4px 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
    padding-left: 20px;
    position: relative;
    line-height: 1.55;
}

.pros li::before {
    content: '+';
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 700;
    font-size: 1rem;
}

.cons li::before {
    content: '\2212';
    position: absolute;
    left: 1px;
    color: var(--red);
    font-weight: 700;
    font-size: 1rem;
}

/* Provider CTA */
.provider-cta {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f1f4;
    flex-wrap: wrap;
}

/* ---- PRICING TABLE ---- */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 48px;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    transition: all 0.25s;
    box-shadow: var(--shadow-xs);
}

.pricing-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.pricing-card.featured {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), var(--shadow-sm);
    position: relative;
}

.pricing-card.featured::before {
    content: 'Best Value';
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-accent);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 14px;
    border-radius: 50px;
}

.pricing-card h4 {
    font-size: 0.95rem;
    margin-bottom: 6px;
    font-weight: 650;
}

.pricing-card .price {
    font-size: 1.9rem;
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.pricing-card .price-period {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-weight: 500;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-bottom: 20px;
}

.pricing-card ul li {
    padding: 5px 0;
    font-size: 0.84rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

/* ---- FINAL VERDICT ---- */
.final-verdict {
    background: linear-gradient(135deg, #f0f4ff 0%, #ede9fe 100%);
    border: 1px solid #c7d2fe;
    border-radius: var(--radius-xl);
    padding: 44px 40px;
    text-align: center;
    margin-bottom: 48px;
    position: relative;
}

.final-verdict h2 {
    font-size: 1.4rem;
    margin-bottom: 14px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.final-verdict p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
    max-width: 660px;
    margin: 0 auto 12px;
}

.final-verdict .cta-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

/* ---- FAQ ---- */
.faq-list {
    margin-bottom: 48px;
    max-width: 800px;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
    border-top: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 16px 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-family: inherit;
    transition: color 0.2s;
    letter-spacing: -0.01em;
}

.faq-question:hover {
    color: var(--accent);
}

.faq-question svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: transform 0.25s;
    color: var(--text-muted);
}

.faq-item.open .faq-question svg {
    transform: rotate(180deg);
    color: var(--accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 0 16px;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ---- GAME GRID (Homepage) ---- */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
    margin-bottom: 48px;
}

.game-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px 24px;
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xs);
}

.game-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.1);
    transform: translateY(-3px);
}

.game-card h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
    font-weight: 650;
    letter-spacing: -0.01em;
}

.game-card h3 a {
    color: var(--text-primary);
}

.game-card h3 a:hover {
    color: var(--accent);
}

.game-card .game-meta {
    color: var(--text-muted);
    font-size: 0.84rem;
    margin-bottom: 16px;
    flex: 1;
    line-height: 1.55;
}

.game-card .game-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.88rem;
}

.game-card .game-cta svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

.game-card:hover .game-cta svg {
    transform: translateX(3px);
}

/* ---- ANCHOR OFFSET ---- */
[id] {
    scroll-margin-top: 76px;
}

/* ---- ADDITIONAL COMPONENTS ---- */

/* Score bar visual */
.score-bar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.score-bar-track {
    flex: 1;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.score-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.4s ease;
}

.score-bar-fill.excellent { background: var(--green); }
.score-bar-fill.good { background: var(--blue); }
.score-bar-fill.average { background: var(--orange); }
.score-bar-fill.poor { background: var(--red); }

.score-bar-value {
    font-weight: 700;
    font-size: 0.85rem;
    min-width: 32px;
    text-align: right;
}

/* Divider */
.section-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 48px 0;
}

/* Callout box */
.callout {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin: 24px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.callout.callout-info {
    background: var(--blue-light);
    border-color: #bfdbfe;
}

.callout.callout-warning {
    background: var(--orange-light);
    border-color: #fed7aa;
}

.callout.callout-success {
    background: var(--green-light);
    border-color: #a7f3d0;
}

/* ---- TABLE OF CONTENTS ---- */
.toc {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    margin-bottom: 48px;
    max-width: 480px;
}

.toc h3 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.toc ol {
    list-style: decimal;
    padding-left: 20px;
    margin: 0;
}

.toc ol li {
    padding: 4px 0;
}

.toc ol li a {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 500;
}

.toc ol li a:hover {
    text-decoration: underline;
}

/* ---- FAQ (alt selectors for VS pages) ---- */
.faq-q {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 16px 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-family: inherit;
    transition: color 0.2s;
    letter-spacing: -0.01em;
}

.faq-q:hover {
    color: var(--accent);
}

.faq-q svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: transform 0.25s;
    color: var(--text-muted);
}

.faq-item.open .faq-q svg {
    transform: rotate(180deg);
    color: var(--accent);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.open .faq-a {
    max-height: 500px;
}

.faq-a p {
    padding: 0 0 16px;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ---- VS PAGE CARDS ---- */
@media (max-width: 768px) {
    .provider-cards {
        grid-template-columns: 1fr !important;
    }
}
