/* ═══════════════════════════════════════════════════════
   Layout 9: Table-Forward
   Comparison table at top, then long-form content below.
   Data-dense, scannable, matrix-focused.
   Inspired by muddyrivernews.com
   ═══════════════════════════════════════════════════════ */

/* @import moved to HTML <link> */
:root {
    --primary: #1e3a5f;
    --primary-dark: #15294a;
    --primary-light: #e8f0fe;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --accent: #e11d48;
    --border: #cbd5e1;
    --border-light: #e2e8f0;
    --success: #059669;
    --warning: #f59e0b;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.06);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --font-heading: 'IBM Plex Sans', sans-serif;
    --font-body: 'IBM Plex Sans', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
    --max-width: 960px;
    --header-height: 52px;
}

/* ═══ RESET ═══ */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
body{font-family:var(--font-body);color:var(--text);background:var(--bg);line-height:1.65;font-size:15px;min-height:100vh}

/* ═══ HEADER — Minimal, clean ═══ */
header{background:var(--bg);border-bottom:2px solid var(--border-light);height:var(--header-height);position:sticky;top:0;z-index:100;display:flex;align-items:center;padding:0 24px;max-width:var(--max-width);margin:0 auto;width:100%}
header .logo{font-family:var(--font-heading);font-size:18px;font-weight:700;color:var(--text);text-decoration:none;letter-spacing:-0.3px}
header .logo span{color:var(--primary)}
header nav{display:flex;align-items:center;gap:20px;margin-left:40px}
header nav a{color:var(--text-secondary);text-decoration:none;font-size:13px;font-weight:500;transition:color 0.15s}
header nav a:hover{color:var(--primary)}

/* ═══ MAIN — Narrow, single column ═══ */
main{max-width:var(--max-width);margin:0 auto;padding:32px 24px}

/* ═══ PAGE HEADER ═══ */
.page-header{margin-bottom:32px}
.page-header .meta{display:flex;align-items:center;gap:12px;font-size:12px;color:var(--text-muted);margin-bottom:8px}
.page-header .meta .author{font-weight:600;color:var(--text-secondary)}
.page-header .meta .dot{width:3px;height:3px;background:var(--text-muted);border-radius:50%}
.page-header h1{font-family:var(--font-heading);font-size:30px;font-weight:700;line-height:1.25;color:var(--text);letter-spacing:-0.5px;margin-bottom:8px}
.page-header .subtitle{font-size:16px;color:var(--text-secondary);line-height:1.5}

/* ═══ COMPARISON TABLE — The hero feature ═══ */
.comparison-table-wrapper{overflow-x:auto;margin:32px 0;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--card-bg);box-shadow:var(--shadow-md)}
.comparison-table{width:100%;border-collapse:collapse;font-size:13px;min-width:720px}
.comparison-table thead th{background:var(--primary);color:white;padding:12px 14px;text-align:left;font-family:var(--font-heading);font-weight:600;font-size:12px;text-transform:uppercase;letter-spacing:0.5px;white-space:nowrap;position:sticky;top:0}
.comparison-table thead th:first-child{border-radius:var(--radius-md) 0 0 0}
.comparison-table thead th:last-child{border-radius:0 var(--radius-md) 0 0}
.comparison-table tbody td{padding:12px 14px;border-bottom:1px solid var(--border-light);vertical-align:middle}
.comparison-table tbody tr:last-child td{border-bottom:none}
.comparison-table tbody tr:hover{background:var(--primary-light)}
.comparison-table tbody tr:first-child{background:linear-gradient(90deg,rgba(37,99,235,0.04),transparent)}
.comparison-table tbody tr:first-child td:first-child{font-weight:700}
.comparison-table .casino-cell{display:flex;align-items:center;gap:10px}
.comparison-table .casino-cell .t-logo{width:40px;height:28px;display:flex;align-items:center;justify-content:center;background:var(--bg);border-radius:var(--radius-sm);overflow:hidden}
.comparison-table .casino-cell .t-logo img{max-width:80%;max-height:80%}
.comparison-table .casino-cell .t-name{font-weight:600;font-size:13px;white-space:nowrap}
.comparison-table .stars{color:var(--warning);font-size:13px;white-space:nowrap}
.comparison-table .bonus-cell{font-family:var(--font-mono);font-weight:600;color:var(--primary);font-size:12px;white-space:nowrap}
.comparison-table .cta-cell a{display:inline-block;padding:6px 16px;background:var(--primary);color:white;font-family:var(--font-heading);font-size:11px;font-weight:600;text-decoration:none;border-radius:var(--radius-sm);white-space:nowrap;transition:background 0.15s}
.comparison-table .cta-cell a:hover{background:var(--primary-dark)}
.comparison-table .badge{display:inline-block;padding:2px 8px;font-size:10px;font-weight:600;border-radius:8px;text-transform:uppercase;letter-spacing:0.3px}
.comparison-table .badge.best{background:#d1fae5;color:var(--success)}
.comparison-table .badge.fast{background:#dbeafe;color:var(--primary)}
.comparison-table .badge.new{background:#fef3c7;color:var(--warning)}

/* ═══ MATRIX LABEL ═══ */
.matrix-label{font-family:var(--font-heading);font-size:14px;font-weight:700;color:var(--text);margin-bottom:12px;display:flex;align-items:center;gap:8px}
.matrix-label::before{content:'';display:block;width:3px;height:16px;background:var(--primary);border-radius:2px}

/* ═══ CARD STYLE (for non-table pages) ═══ */
.casino-card{background:var(--card-bg);border:1px solid var(--border);border-radius:var(--radius-md);padding:20px;margin-bottom:16px;display:grid;grid-template-columns:auto 1fr auto;gap:16px;align-items:center;transition:box-shadow 0.15s}
.casino-card:hover{box-shadow:var(--shadow-md)}
.casino-card .rank{font-family:var(--font-mono);font-size:20px;font-weight:700;color:var(--text-muted);width:32px;text-align:center}
.casino-card .rank.top{color:var(--primary)}
.casino-card .card-logo{width:80px;height:48px;display:flex;align-items:center;justify-content:center;background:var(--bg);border-radius:var(--radius-sm);overflow:hidden}
.casino-card .card-logo img{max-width:80%;max-height:80%}
.casino-card .card-name{font-family:var(--font-heading);font-size:16px;font-weight:700;color:var(--text)}
.casino-card .card-stats{display:flex;gap:20px;font-size:12px;color:var(--text-secondary);margin-top:4px}
.casino-card .card-stats span{font-family:var(--font-mono);font-weight:600;color:var(--text)}
.casino-card .card-bonus{font-family:var(--font-mono);font-size:16px;font-weight:700;color:var(--primary);text-align:right}
.casino-card .card-cta{display:inline-block;padding:8px 20px;background:var(--primary);color:white;font-family:var(--font-heading);font-size:12px;font-weight:600;text-decoration:none;border-radius:var(--radius-sm);text-align:center;transition:background 0.15s}
.casino-card .card-cta:hover{background:var(--primary-dark)}

/* ═══ KEY FINDINGS BOX ═══ */
.key-findings{background:var(--primary-light);border-left:3px solid var(--primary);border-radius:0 var(--radius-md) var(--radius-md) 0;padding:16px 20px;margin:24px 0}
.key-findings h3{font-family:var(--font-heading);font-size:14px;font-weight:700;color:var(--primary);margin-bottom:8px;text-transform:uppercase;letter-spacing:0.5px}
.key-findings ul{list-style:none;padding:0}
.key-findings li{font-size:13px;padding:3px 0;display:flex;align-items:center;gap:8px}
.key-findings li::before{content:'→';color:var(--primary);font-weight:700}

/* ═══ SECTION HEADERS ═══ */
.section-title{font-family:var(--font-heading);font-size:22px;font-weight:700;color:var(--text);margin:40px 0 16px;padding-bottom:10px;border-bottom:2px solid var(--border-light)}
.section-title .num{font-family:var(--font-mono);color:var(--primary);margin-right:8px}

/* ═══ PROS/CONS ═══ */
.pros-cons{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:24px 0}
.pros,.cons{padding:16px;border-radius:var(--radius-md);border:1px solid var(--border)}
.pros{background:#f9fafb}.cons{background:#f9fafb}
.pros h4,.cons h4{font-family:var(--font-heading);font-size:14px;font-weight:700;margin-bottom:10px}
.pros h4{color:var(--success)}.cons h4{color:var(--accent)}
.pros ul,.cons ul{list-style:none;padding:0}
.pros li,.cons li{font-size:13px;padding:4px 0;display:flex;align-items:center;gap:6px;color:var(--text-secondary)}
.pros li::before{content:'+';color:var(--success);font-weight:700;font-family:var(--font-mono)}
.cons li::before{content:'−';color:var(--accent);font-weight:700;font-family:var(--font-mono)}

/* ═══ CTA BLOCK ═══ */
.cta-block{background:var(--text);color:white;border-radius:var(--radius-md);padding:28px 32px;margin:32px 0;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px}
.cta-block .cta-text{font-family:var(--font-heading);font-size:18px;font-weight:600}
.cta-block .cta-text span{display:block;font-size:13px;font-weight:400;opacity:0.7;margin-top:4px}
.cta-block .btn{display:inline-block;padding:12px 28px;background:var(--primary);color:white;font-family:var(--font-heading);font-size:14px;font-weight:600;text-decoration:none;border-radius:var(--radius-sm);transition:background 0.15s}
.cta-block .btn:hover{background:var(--primary-dark)}

/* ═══ FOOTER ═══ */
footer{background:var(--text);color:white;padding:48px 24px;margin-top:60px}
footer .footer-grid{max-width:var(--max-width);margin:0 auto;display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:32px}
footer h4{font-family:var(--font-heading);font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:0.5px;margin-bottom:12px;color:rgba(255,255,255,0.7)}
footer a{display:block;font-size:13px;color:rgba(255,255,255,0.5);text-decoration:none;padding:3px 0;transition:color 0.15s}
footer a:hover{color:white}
footer .footer-bottom{max-width:var(--max-width);margin:32px auto 0;padding-top:20px;border-top:1px solid rgba(255,255,255,0.1);font-size:12px;color:rgba(255,255,255,0.3);text-align:center}

/* ═══ POST/BLOG CONTENT ═══ */
article{max-width:720px;margin:0 auto}
article h2,.section-title{font-family:var(--font-heading);font-size:22px;font-weight:700;margin:32px 0 12px;color:var(--text)}
article h3{font-family:var(--font-heading);font-size:17px;font-weight:700;margin:24px 0 8px;color:var(--text)}
article p{font-size:15px;line-height:1.8;color:var(--text);margin-bottom:16px}
article ul,article ol{padding-left:24px;margin-bottom:16px}
article li{font-size:14px;line-height:1.7;margin-bottom:6px}
article blockquote{border-left:3px solid var(--primary);padding:12px 20px;margin:20px 0;background:var(--primary-light);border-radius:0 var(--radius-sm) var(--radius-sm) 0;font-style:italic;color:var(--text-secondary)}

/* ═══ RESPONSIVE ═══ */
@media(max-width:768px){main{padding:20px 16px}.page-header h1{font-size:24px}.comparison-table-wrapper{margin:24px -16px;border-radius:0}.casino-card{grid-template-columns:1fr;text-align:center}.casino-card .card-bonus{text-align:center}.pros-cons{grid-template-columns:1fr}.cta-block{flex-direction:column;text-align:center}}
@media(max-width:480px){header nav{display:none}.comparison-table{font-size:11px}.comparison-table thead th,.comparison-table tbody td{padding:8px 10px}}