/* MLB Model Picks — Meta-inspired pastel + glass UI */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg-start: #F5F7FA;
    --bg-end: #E8ECF1;
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-bg-solid: #ffffff;
    --card-border: rgba(255, 255, 255, 0.6);
    --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.10);
    --blur: 20px;
    --text: #1C1E21;
    --text-secondary: #606770;
    --text-muted: #8A8D91;
    --accent: #1877F2;
    --accent-light: rgba(24, 119, 242, 0.08);
    --green: #31A24C;
    --green-light: rgba(49, 162, 76, 0.08);
    --red: #FA383E;
    --red-light: rgba(250, 56, 62, 0.08);
    --border: rgba(0, 0, 0, 0.06);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --nav-height: 56px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, var(--bg-start) 0%, var(--bg-end) 100%);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* ── Navbar ── */
.navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    height: var(--nav-height);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.logo {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.02em;
}
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    padding: 0.25rem 0;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active {
    color: var(--accent);
}
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}

/* ── Glass Card ── */
.glass {
    background: var(--card-bg);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}
.glass:hover {
    box-shadow: var(--card-shadow-hover);
}

/* ── Hero ── */
.hero {
    padding: 2.5rem 0 1.5rem;
    text-align: center;
}
.hero-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}
.hero h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text);
}
.hero-sub {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* ── Stats Bar ── */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}
.stat-card {
    padding: 1rem 1.5rem;
    text-align: center;
    flex: 1;
    min-width: 120px;
}
.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-top: 0.25rem;
}

/* ── Colors ── */
.profit { color: var(--green); }
.loss { color: var(--red); }
.edge { color: var(--green); font-weight: 600; }
.muted { color: var(--text-muted); }

/* ── Sections ── */
.section {
    padding: 1.5rem 0;
}
.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

/* ── Pick Cards ── */
.picks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.pick-card {
    padding: 1.25rem 1.25rem 1.25rem 1.5rem;
    border-left: 3px solid var(--green);
    cursor: default;
}
.pick-card:hover {
    transform: translateY(-2px);
}

.pick-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.pick-name {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.pick-odds {
    background: var(--accent-light);
    color: var(--accent);
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    font-family: 'Inter', monospace;
}

.pick-details {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
}
.pick-metric { flex: 1; }
.metric-label {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}
.metric-value {
    font-size: 1.05rem;
    font-weight: 600;
}

.confidence-bar {
    height: 5px;
    background: var(--border);
    border-radius: 3px;
    margin-top: 0.5rem;
    overflow: hidden;
}
.confidence-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #4F9CF7);
    border-radius: 3px;
    transition: width 0.4s ease;
}

/* ── Sportsbook Odds Badges ── */
.sportsbook-odds {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}
.book-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Inter', monospace;
    border: 1px solid transparent;
}
.book-badge .book-name {
    font-weight: 500;
    opacity: 0.85;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
/* FanDuel — blue */
.book-badge.fanduel {
    background: rgba(24, 119, 242, 0.08);
    color: #1877F2;
    border-color: rgba(24, 119, 242, 0.15);
}
/* DraftKings — green */
.book-badge.draftkings {
    background: rgba(49, 162, 76, 0.08);
    color: #1B8A3E;
    border-color: rgba(49, 162, 76, 0.15);
}
/* BetMGM — gold */
.book-badge.betmgm {
    background: rgba(197, 164, 57, 0.10);
    color: #9E7C1F;
    border-color: rgba(197, 164, 57, 0.18);
}
/* Caesars — burgundy */
.book-badge.williamhill_us {
    background: rgba(142, 36, 60, 0.08);
    color: #8E243C;
    border-color: rgba(142, 36, 60, 0.15);
}
/* BetRivers — purple */
.book-badge.betrivers {
    background: rgba(107, 63, 160, 0.08);
    color: #6B3FA0;
    border-color: rgba(107, 63, 160, 0.15);
}
/* Pinnacle — dark */
.book-badge.pinnacle {
    background: rgba(28, 30, 33, 0.06);
    color: #444950;
    border-color: rgba(28, 30, 33, 0.12);
}
/* ESPN BET — red/orange */
.book-badge.espnbet {
    background: rgba(220, 60, 40, 0.08);
    color: #C93426;
    border-color: rgba(220, 60, 40, 0.15);
}
/* Fanatics — teal */
.book-badge.fanatics {
    background: rgba(0, 140, 130, 0.08);
    color: #007A72;
    border-color: rgba(0, 140, 130, 0.15);
}
/* Default/other books */
.book-badge.book-default {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-secondary);
    border-color: rgba(0, 0, 0, 0.08);
}
.book-badge.best-odds {
    font-weight: 700;
    box-shadow: 0 0 0 1.5px currentColor;
}

.pick-explanation {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ── Tables ── */
.table-card {
    padding: 0;
    overflow: hidden;
}
.games-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.games-table th {
    text-align: left;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.01);
}
.games-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
}
.games-table tbody tr:last-child td {
    border-bottom: none;
}
.games-table tbody tr {
    transition: background 0.15s;
}
.games-table tbody tr:hover {
    background: rgba(24, 119, 242, 0.03);
}
.team { font-weight: 600; }
.at { color: var(--text-muted); margin: 0 0.25rem; font-size: 0.8rem; }

/* ── Chart ── */
.chart-card {
    padding: 1.25rem;
}
.chart-container {
    height: 300px;
}

/* ── About Cards ── */
.about-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
}
.about-card h2 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}
.about-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
}
.about-card ul {
    padding-left: 1.25rem;
    color: var(--text-secondary);
    font-size: 0.92rem;
}
.about-card li {
    margin-bottom: 0.3rem;
}
.about-card strong {
    color: var(--text);
    font-weight: 600;
}

/* ── No Picks ── */
.no-picks {
    text-align: center;
    padding: 3rem 1.5rem;
}
.no-picks h2 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.no-picks p { color: var(--text-secondary); }

/* ── Newsletter Subscribe ── */
.subscribe-section {
    padding: 2.5rem 0;
    text-align: center;
}
.subscribe-inner {
    padding: 2rem;
    max-width: 520px;
    margin: 0 auto;
}
.subscribe-inner h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    letter-spacing: -0.01em;
}
.subscribe-inner p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}
.subscribe-form {
    display: flex;
    gap: 0.5rem;
}
.subscribe-form input[type="email"] {
    flex: 1;
    padding: 0.65rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.6);
    color: var(--text);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.subscribe-form input[type="email"]:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}
.subscribe-form input[type="email"]::placeholder {
    color: var(--text-muted);
}
.subscribe-btn {
    padding: 0.65rem 1.25rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    white-space: nowrap;
}
.subscribe-btn:hover {
    background: #1565D8;
}
.subscribe-btn:active {
    transform: scale(0.98);
}
.subscribe-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.subscribe-msg {
    font-size: 0.8rem;
    margin-top: 0.75rem;
    min-height: 1.2em;
}
.subscribe-msg.success { color: var(--green); }
.subscribe-msg.error { color: var(--red); }

/* ── Footer ── */
.footer {
    margin-top: auto;
    padding: 1.25rem 0;
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
}
.footer p + p {
    margin-top: 0.2rem;
}

/* ── Fade-in animation ── */
.fade-in {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .container { padding: 0 1rem; }
    .hero h1 { font-size: 1.6rem; }
    .stats-bar { gap: 0.5rem; }
    .stat-card { padding: 0.75rem 1rem; min-width: 100px; }
    .stat-value { font-size: 1.25rem; }
    .picks-grid { grid-template-columns: 1fr; }
    .subscribe-form { flex-direction: column; }
    .subscribe-btn { width: 100%; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.35rem; }
    .stats-bar { flex-direction: column; gap: 0.5rem; }
    .stat-card { min-width: auto; }
    .pick-details { flex-direction: column; gap: 0.5rem; }
    .nav-links { gap: 1.25rem; }
    .nav-links a { font-size: 0.82rem; }
}
