/* NanoScore — picks & bankroll tools */

.bt-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 3rem;
}

.bt-hero {
    margin-bottom: 1.75rem;
}

.bt-kicker {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.35rem;
}

.bt-hero h1 {
    font-family: var(--font-display, inherit);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    letter-spacing: -0.03em;
    margin-bottom: 0.4rem;
}

.bt-lead {
    color: var(--text-secondary);
    max-width: 52ch;
}

.bt-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.bt-meta span {
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.25rem 0.55rem;
    font-size: 0.78rem;
    font-weight: 650;
    color: var(--text-secondary);
}

.bt-empty {
    background: #fff;
    border: 1px dashed var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.bt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.55rem 0.95rem;
    font-weight: 700;
    font-family: var(--font-sans, inherit);
    text-decoration: none;
    cursor: pointer;
}

.bt-btn.ghost {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid rgba(11,143,78,0.35);
}

.bt-disclaimer {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

.picks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.picks-section {
    margin: 1.5rem 0 2rem;
    padding: 1.15rem 1.2rem 1.35rem;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: #fff;
}
.picks-section--editor {
    border-color: rgba(11, 143, 78, 0.35);
    background: linear-gradient(180deg, #eef8f2 0%, #fff 42%);
}
.picks-section--auto {
    border-color: #d2ddd6;
    background: linear-gradient(180deg, #f4f6f8 0%, #fff 42%);
}
.picks-section-head {
    margin-bottom: 1rem;
}
.picks-section-head h2 {
    font-family: var(--font-display, 'Roboto', sans-serif);
    font-size: 1.25rem;
    margin: 0 0 0.25rem;
    color: var(--text-primary);
}
.picks-section--editor .picks-section-head h2 { color: #0B8F4E; }
.picks-section-head p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.picks-section-empty {
    padding: 1rem;
    border-radius: 10px;
    background: var(--secondary-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}
.pick-card.is-editor {
    border-color: rgba(11, 143, 78, 0.4);
    box-shadow: inset 3px 0 0 #0B8F4E;
}
.pick-card.is-auto {
    box-shadow: inset 3px 0 0 #64748b;
}

/* Ana sayfa teaser */
.picks-teaser {
    margin-bottom: 1.25rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--secondary-color);
}
.picks-teaser-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
}
.picks-teaser-top strong {
    font-family: var(--font-display, 'Roboto', sans-serif);
}
.picks-teaser-top a {
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}
.picks-teaser-block + .picks-teaser-block { margin-top: 0.85rem; }
.picks-teaser-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}
.picks-teaser-block--editor .picks-teaser-label { color: #0B8F4E; }
.picks-teaser-block--auto .picks-teaser-label { color: #475569; }
.picks-teaser-list { display: grid; gap: 0.45rem; }
.picks-teaser-row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.55rem 0.75rem;
}
.picks-teaser-row.is-editor { box-shadow: inset 3px 0 0 #0B8F4E; }
.picks-teaser-row.is-auto { box-shadow: inset 3px 0 0 #64748b; }
.picks-teaser-row .sel { color: var(--primary-color); font-weight: 800; }
.picks-teaser-note {
    margin-top: 0.65rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.pick-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.1rem 1.15rem;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.pick-rank {
    position: absolute;
    top: 0.85rem;
    right: 0.9rem;
    font-weight: 800;
    color: var(--primary-color);
}

.pick-league {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 650;
    margin-bottom: 0.55rem;
}

.pick-teams {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 0.35rem;
}

.pick-teams img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.pick-kickoff {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.pick-market {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.chip {
    display: inline-block;
    width: fit-content;
    background: var(--primary-soft);
    color: var(--primary-color);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.2rem 0.45rem;
    border-radius: 4px;
}

.pick-selection {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.pick-conf {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.65rem;
    font-size: 0.8rem;
    font-weight: 700;
}

.conf-bar {
    flex: 1;
    height: 8px;
    background: var(--secondary-color);
    border-radius: 999px;
    overflow: hidden;
}

.conf-bar > div {
    height: 100%;
    background: var(--primary-color);
}

.pick-why, .pick-value, .pick-h2h {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}

.pick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.9rem;
}

/* Bankroll */
.br-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.br-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.9rem 1rem;
}

.br-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.br-card strong {
    font-size: 1.15rem;
}

.pos { color: var(--success-color); }
.neg { color: var(--error-color); }

.br-toolbar {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.br-reset summary {
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.br-inline-form {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.4rem;
}

.br-form-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.1rem;
    margin-bottom: 1.5rem;
}

.br-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.br-form label {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.82rem;
    font-weight: 650;
}

.br-form label.full { grid-column: 1 / -1; }

.br-form input, .br-form select, .br-form textarea {
    padding: 0.55rem 0.65rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    background: var(--secondary-color);
}

.bt-flash {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 650;
}
.bt-flash.ok { background: rgba(11,143,78,0.12); color: var(--success-color); }
.bt-flash.err { background: rgba(214,69,69,0.12); color: var(--error-color); }

.br-table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--border-color); border-radius: 12px; }
.br-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.br-table th, .br-table td { padding: 0.7rem 0.75rem; border-bottom: 1px solid var(--border-color); text-align: left; vertical-align: top; }
.br-table th { background: var(--secondary-color); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }
.br-table .muted { color: var(--text-muted); font-size: 0.75rem; }

.status {
    display: inline-block;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}
.status-pending { background: #fff3cd; color: #856404; }
.status-won { background: rgba(11,143,78,0.15); color: var(--success-color); }
.status-lost { background: rgba(214,69,69,0.15); color: var(--error-color); }
.status-void { background: #e9ecef; color: #495057; }

.br-settle { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.br-settle button {
    border: 1px solid var(--border-color);
    background: #fff;
    border-radius: 6px;
    padding: 0.25rem 0.4rem;
    font-size: 0.72rem;
    cursor: pointer;
    font-weight: 650;
}

/* Match insight chips */
.insight-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.85rem;
}
.insight-chip {
    font-size: 0.72rem;
    font-weight: 750;
    padding: 0.28rem 0.5rem;
    border-radius: 6px;
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}
.insight-chip.hot { background: var(--primary-soft); color: var(--primary-color); border-color: rgba(11,143,78,0.3); }

.odds-careful {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #fff;
}
.odds-careful h3 { margin-bottom: 0.35rem; font-size: 1rem; }
.odds-careful .warn {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}
.odds-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}
.odds-cell {
    text-align: center;
    padding: 0.65rem;
    background: var(--secondary-color);
    border-radius: 8px;
}
.odds-cell span { display: block; font-size: 0.72rem; color: var(--text-muted); }
.odds-cell strong { font-size: 1.1rem; }

.momentum-box {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
}
.momentum-box h4 { margin-bottom: 0.35rem; }
.momentum-note { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.momentum-meter {
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    display: flex;
    background: #dde5e0;
}
.momentum-meter .h { background: #0B8F4E; }
.momentum-meter .a { background: #1F6B4A; }
.momentum-sides {
    display: flex;
    justify-content: space-between;
    margin-top: 0.4rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}
.momentum-timeline {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.35rem;
    margin-top: 0.85rem;
    height: 88px;
}
.mt-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}
.mt-bars {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    min-height: 0;
}
.mt-h, .mt-a {
    width: 40%;
    min-height: 4px;
    border-radius: 3px 3px 0 0;
}
.mt-h { background: #0B8F4E; }
.mt-a { background: #2d6a4f; opacity: 0.75; }
.mt-col span {
    font-size: 0.62rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    white-space: nowrap;
}
.viz-stats { margin-top: 0.5rem; display: flex; flex-direction: column; gap: 0.55rem; }
.viz-vals {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.5rem;
    font-size: 0.82rem;
    margin-bottom: 0.2rem;
    align-items: center;
}
.viz-vals span { text-align: center; color: var(--text-muted); font-size: 0.75rem; }
.viz-vals strong:last-child { text-align: right; }
.viz-bar {
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    display: flex;
    background: #dde5e0;
}
.viz-bar .h { background: #0B8F4E; }
.viz-bar .a { background: #94a3b8; }

.match-card.goal-flash {
    animation: goalFlash 2.4s ease;
}
@keyframes goalFlash {
    0%, 100% { box-shadow: none; }
    20%, 60% { box-shadow: 0 0 0 2px #0B8F4E, 0 0 18px rgba(11, 143, 78, 0.35); }
}

.hit-rate-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 1rem 0 1.25rem;
}
.hit-rate-card {
    padding: 0.9rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: linear-gradient(160deg, #eef8f2 0%, #fff 70%);
    font-family: 'Roboto', sans-serif;
}
.hit-rate-card .label { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.2rem; font-weight: 500; letter-spacing: 0.03em; }
.hit-rate-card .rate { font-size: 1.45rem; font-weight: 700; color: #0B8F4E; line-height: 1.15; letter-spacing: normal; }
.hit-rate-card .meta { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.25rem; font-weight: 400; }
@media (max-width: 640px) {
    .hit-rate-strip { grid-template-columns: 1fr; }
    .momentum-timeline { height: 72px; }
}

/* TheStatsAPI xG / shotmap / odds compare */
.tsa-xg-box {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: #fff;
}
.tsa-xg-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}
.tsa-xg-head h3 { margin: 0; font-size: 1rem; font-family: 'Roboto', sans-serif; }
.tsa-src {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    background: rgba(11,143,78,0.12);
    color: #0B8F4E;
}
.tsa-xg-nums {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.85rem;
}
.tsa-xg-nums > div { text-align: center; }
.tsa-xg-nums span { display: block; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.15rem; }
.tsa-xg-nums strong { font-size: 1.45rem; font-weight: 700; color: #0B8F4E; font-family: 'Roboto', sans-serif; }
.tsa-xg-nums .mid { font-weight: 800; color: var(--text-muted); font-size: 0.85rem; }
.shotmap-pitch {
    position: relative;
    width: 100%;
    aspect-ratio: 68 / 105;
    max-height: 320px;
    margin: 0 auto;
    border-radius: 10px;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.08) 49.5%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0.08) 50.5%),
        repeating-linear-gradient(0deg, #1f7a45 0 12%, #218a4d 12% 24%);
    border: 2px solid rgba(255,255,255,0.35);
    overflow: hidden;
}
.shot-dot {
    position: absolute;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.25);
}
.shot-dot.goal { background: #0B8F4E; }
.shot-dot.on { background: #3b82f6; }
.shot-dot.off { background: rgba(255,255,255,0.55); }
.tsa-note { margin: 0.5rem 0 0; font-size: 0.72rem; color: var(--text-muted); }
.odds-compare { display: flex; flex-direction: column; gap: 0.4rem; }
.odds-compare-row {
    display: grid;
    grid-template-columns: 1.2fr repeat(3, 1fr);
    gap: 0.4rem;
    align-items: center;
    padding: 0.45rem 0.55rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.82rem;
}
.odds-compare-row .bm { font-weight: 700; color: var(--text-secondary); }
.odds-compare-row strong { color: #0B8F4E; }
