/* ============================================================
   World Cup Predictions & Polls
   ============================================================ */

.pred-error { color: #6b7280; font-size: 13px; text-align: center; padding: 20px 0; }

/* ── Section wrapper ── */
.pred-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 16px 48px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
@media (min-width: 1024px) {
    .pred-section { padding: 40px 32px 64px; }
}

/* ── Shared header ── */
.pred-header,
.pred-matches-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #fff;
}
.pred-header iconify-icon,
.pred-matches-header iconify-icon { color: #fbbf24; }

.pred-total {
    margin-left: auto;
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    text-transform: none;
    letter-spacing: 0;
}

/* ════════════════════════════════════════════
   CHAMPION POLL
   ════════════════════════════════════════════ */
.pred-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
    gap: 6px;
}
@media (min-width: 640px) {
    .pred-grid { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 7px; }
}
@media (min-width: 1024px) {
    .pred-grid { grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 8px; }
}

.pred-option {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 10px 6px 8px;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, transform 0.15s;
    overflow: hidden;
    text-align: center;
}
.pred-option:hover:not(:disabled) {
    border-color: rgba(251,191,36,0.4);
    background: rgba(251,191,36,0.07);
    transform: translateY(-2px);
}
.pred-option:disabled { cursor: default; }

.pred-option--chosen {
    border-color: #fbbf24 !important;
    background: rgba(251,191,36,0.12) !important;
}

.pred-option--hidden { display: none; }

.pred-show-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.pred-show-more:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

/* Desktop: show all teams, no show-more limit */
@media (min-width: 1024px) {
    .pred-option--hidden { display: flex; }
    .pred-show-more { display: none; }
}

.pred-flag { font-size: 1.3rem; line-height: 1; }
.pred-flag-img {
    width: 32px;
    height: 22px;
    object-fit: cover;
    border-radius: 3px;
    display: block;
}
.pred-label {
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.2;
}
.pred-check {
    position: absolute;
    top: 6px;
    right: 6px;
    color: #fbbf24;
}

/* Result bars (shown after voting) */
.pred-bar-wrap {
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.08);
    border-radius: 99px;
    overflow: hidden;
    margin-top: 4px;
}
.pred-bar {
    display: block;
    height: 100%;
    background: #fbbf24;
    border-radius: 99px;
    transition: width 0.6s cubic-bezier(0.16,1,0.3,1);
    min-width: 2px;
}
.pred-pct {
    font-size: 10px;
    font-weight: 800;
    color: #fbbf24;
}

/* ════════════════════════════════════════════
   MATCH PREDICTIONS
   ════════════════════════════════════════════ */
/* Yatay slider — tüm ekran boyutlarında */
.pred-matches-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 12px;
    overflow-x: auto !important;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 8px;
}
.pred-matches-grid::-webkit-scrollbar { display: none; }

.pred-match-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color 0.2s;
    /* Sabit genişlik + snap */
    flex-shrink: 0;
    width: 85vw;
    max-width: 380px;
    scroll-snap-align: start;
}
@media (min-width: 768px) {
    .pred-match-card {
        width: 310px;
    }
}
.pred-match-card:hover { border-color: rgba(255,255,255,0.14); }

.pred-match-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.pred-match-league {
    font-size: 10px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
}
.pred-match-time {
    font-size: 10px;
    font-weight: 700;
    color: #9ca3af;
    white-space: nowrap;
}
.pred-live {
    color: #00ff87;
    animation: pred-blink 1.5s ease-in-out infinite;
}
@keyframes pred-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Takımlar — üstte karşılıklı, tek satır (uzun isim taşmaz) */
.pred-match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.pred-team {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1 1 0;
    min-width: 0;
}
.pred-team img {
    width: 21px;
    height: 21px;
    object-fit: contain;
    border-radius: 50%;
    flex-shrink: 0;
    background: rgba(255,255,255,0.06);
}
.pred-team-name {
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pred-team--away { justify-content: flex-end; text-align: right; }
.pred-vs {
    font-size: 10px;
    font-weight: 900;
    color: #4b5563;
    flex-shrink: 0;
}

/* 1 / X / 2 — alt alta satırlar, sabit kolonlar = her şey hizalı */
.pred-match-buttons {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pred-btn {
    position: relative;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) 44px 38px;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.15s, background 0.15s;
    text-align: left;
    width: 100%;
}
.pred-btn:hover:not(:disabled) {
    border-color: rgba(56,189,248,0.35);
    background: rgba(56,189,248,0.07);
}
.pred-btn:disabled { cursor: default; }
.pred-btn--chosen {
    border-color: #38bdf8 !important;
}

.pred-btn-label {
    font-size: 12px;
    font-weight: 900;
    color: #fff;
    position: relative;
    z-index: 1;
    text-align: center;
}
.pred-btn-name {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.55);
    position: relative;
    z-index: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pred-btn-odd {
    font-size: 12px;
    font-weight: 800;
    color: #fbbf24;
    font-variant-numeric: tabular-nums;
    position: relative;
    z-index: 1;
    text-align: right;
}
.pred-btn-pct {
    font-size: 11px;
    font-weight: 800;
    color: #38bdf8;
    font-variant-numeric: tabular-nums;
    position: relative;
    z-index: 1;
    text-align: right;
}
/* Oy payı — dolan arka plan */
.pred-btn-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(56,189,248,0.1);
    transition: width 0.6s cubic-bezier(0.16,1,0.3,1);
}
.pred-btn--chosen .pred-btn-bar { background: rgba(56,189,248,0.18); }

/* Nav arrows — promotions stilinde */
.pred-track-outer {
    position: relative;
}
.pred-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    z-index: 20;
    width: 44px;
    height: 80px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: color 0.2s ease, background 0.2s ease;
}
.pred-nav-btn--right {
    right: -2px;
    border-radius: 14px 0 0 14px;
    background: linear-gradient(to left, rgba(10,12,22,0.92) 0%, rgba(10,12,22,0.5) 60%, transparent 100%);
    padding-right: 4px;
}
.pred-nav-btn--left {
    left: -2px;
    border-radius: 0 14px 14px 0;
    background: linear-gradient(to right, rgba(10,12,22,0.92) 0%, rgba(10,12,22,0.5) 60%, transparent 100%);
    padding-left: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.pred-nav-btn--left.visible {
    opacity: 1;
    pointer-events: auto;
}
.pred-nav-btn iconify-icon {
    color: rgba(255,255,255,0.5);
    animation: pred-nav-pulse 2s ease-in-out infinite;
}
@keyframes pred-nav-pulse {
    0%, 100% { color: rgba(255,255,255,0.5); }
    50%       { color: #00ff87; }
}
.pred-nav-btn:hover iconify-icon {
    color: #00ff87;
    animation: none;
    transform: scale(1.2);
}

.pred-match-total {
    font-size: 10px;
    color: #4b5563;
    text-align: center;
    margin: -4px 0 0;
}

@media (prefers-reduced-motion: reduce) {
    .pred-bar,
    .pred-btn-bar { transition: none; }
    .pred-live { animation: none; }
}
