/**
 * FutbolTakip - Maç günü hava widget'ları
 * Koyu tema: site geneli ile uyumlu (#0a0e1a / koyu zemin)
 */

/* ═══════════════════════════════════════════════════
 *  Section kapsayıcı
 * ═══════════════════════════════════════════════════ */
.ft-mac-hava-section {
    margin: 0.5em 0 2em;
}

/* Wrap */
.ft-wth-wrap {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.ft-wth-fallback {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    padding: 1rem 1.15rem;
    font-style: italic;
    background: rgba(15, 23, 42, .45);
    border: 1px dashed rgba(255,255,255,.08);
    border-radius: 12px;
}

/* ═══════════════════════════════════════════════════
 *  Kart giriş animasyonu
 * ═══════════════════════════════════════════════════ */
@keyframes ft-wth-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════
 *  Ortak kart stili
 * ═══════════════════════════════════════════════════ */
.ft-wth-card {
    background: rgba(15, 23, 42, .7);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 14px;
    padding: 1.15rem 1.35rem;
    box-shadow: 0 2px 12px rgba(0,0,0,.22);
    animation: ft-wth-fade-in 0.4s ease-out backwards;
    color: #cbd5e1;
    line-height: 1.55;
}
.ft-wth-card:nth-child(1) { animation-delay: 0.04s; }
.ft-wth-card:nth-child(2) { animation-delay: 0.08s; }
.ft-wth-card:nth-child(3) { animation-delay: 0.12s; }
.ft-wth-card:nth-child(4) { animation-delay: 0.16s; }
.ft-wth-card:nth-child(5) { animation-delay: 0.20s; }
.ft-wth-card:nth-child(6) { animation-delay: 0.24s; }
.ft-wth-card:nth-child(7) { animation-delay: 0.28s; }

/* ─── Kart başlığı ─── */
.ft-wth-card-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 1rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0 0 0.85rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid rgba(255,255,255,.07);
    letter-spacing: -0.01em;
}
.ft-wth-title-icon {
    font-size: 1.15rem;
    line-height: 1;
    opacity: 0.85;
}

/* ═══════════════════════════════════════════════════
 *  Maç saati / günlük hava özet kartları
 * ═══════════════════════════════════════════════════ */
.ft-wth-hour-summary .ft-wth-hour-main {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    margin-bottom: 0.85rem;
}

/* Hava durumu ikon kutusu */
.ft-wth-hour-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    font-size: 2.5rem;
    line-height: 1;
    background: rgba(59,130,246,.08);
    border-radius: 14px;
    border: 1px solid rgba(59,130,246,.12);
    flex-shrink: 0;
}
.ft-wth-day-summary .ft-wth-hour-icon {
    background: rgba(16,185,129,.06);
    border-color: rgba(16,185,129,.12);
}

/* Sıcaklık ve açıklama */
.ft-wth-hour-values {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}
.ft-wth-hour-temp {
    font-size: 1.45rem;
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: -0.02em;
}
.ft-wth-hour-apparent {
    font-size: 0.85rem;
    color: #94a3b8;
}
.ft-wth-hour-desc {
    font-size: 0.9rem;
    color: #94a3b8;
}

/* Detaylar satırı (yağış, rüzgar, nem, UV) */
.ft-wth-hour-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.35rem;
    margin-bottom: 0.85rem;
    padding: 0.6rem 0.85rem;
    background: rgba(255,255,255,.025);
    border-radius: 10px;
}
.ft-wth-detail {
    display: inline-flex;
    align-items: baseline;
    gap: 0.25rem;
    font-size: 0.88rem;
    color: #e2e8f0;
}
.ft-wth-detail-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Özet metin paragrafları */
.ft-wth-hour-sentence {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #94a3b8;
    margin: 0 0 0.5rem;
}
.ft-wth-hour-sentence:last-child { margin-bottom: 0; }

.ft-wth-day-summary-text .ft-wth-hour-sentence,
.ft-wth-hour-summary-text .ft-wth-hour-sentence {
    margin-bottom: 0.55rem;
}
.ft-wth-day-summary-text .ft-wth-hour-sentence:last-child,
.ft-wth-hour-summary-text .ft-wth-hour-sentence:last-child {
    margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════
 *  Gün içi grafik (saatlik çubuklar)
 * ═══════════════════════════════════════════════════ */
.ft-wth-chart-card .ft-wth-chart {
    padding: 0.5rem 0;
}
.ft-wth-chart--scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(148,163,184,.25) transparent;
    padding-bottom: 0.5rem;
    margin: 0 -0.25rem;
}
.ft-wth-chart--scroll::-webkit-scrollbar { height: 5px; }
.ft-wth-chart--scroll::-webkit-scrollbar-track { background: transparent; }
.ft-wth-chart--scroll::-webkit-scrollbar-thumb {
    background: rgba(148,163,184,.2);
    border-radius: 3px;
}
.ft-wth-chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 3px;
    min-height: 140px;
    min-width: min-content;
    padding: 0 0.25rem 1.5rem;
}
.ft-wth-chart-bar-wrap {
    flex: 0 0 auto;
    width: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    border-radius: 4px;
    transition: background .2s;
}
.ft-wth-chart-bar-wrap:hover {
    background: rgba(255,255,255,.03);
}
.ft-wth-chart-bar-wrap.ft-wth-chart-bar--match {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 4px;
    background: rgba(59,130,246,.06);
}
.ft-wth-chart-bar-group {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    height: 100px;
}

@keyframes ft-wth-bar-grow {
    from { transform: scaleY(0); }
    to   { transform: scaleY(1); }
}

/* Sıcaklık çubuğu */
.ft-wth-chart-bar-temp {
    width: 12px;
    min-height: 8px;
    background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 100%);
    border-radius: 4px 4px 1px 1px;
    transform-origin: bottom;
    animation: ft-wth-bar-grow 0.5s ease-out backwards;
}
.ft-wth-chart-bar-wrap:nth-child(1) .ft-wth-chart-bar-temp { animation-delay: 0.02s; }
.ft-wth-chart-bar-wrap:nth-child(2) .ft-wth-chart-bar-temp { animation-delay: 0.04s; }
.ft-wth-chart-bar-wrap:nth-child(3) .ft-wth-chart-bar-temp { animation-delay: 0.06s; }
.ft-wth-chart-bar-wrap:nth-child(4) .ft-wth-chart-bar-temp { animation-delay: 0.08s; }
.ft-wth-chart-bar-wrap:nth-child(5) .ft-wth-chart-bar-temp { animation-delay: 0.10s; }
.ft-wth-chart-bar-wrap:nth-child(6) .ft-wth-chart-bar-temp { animation-delay: 0.12s; }
.ft-wth-chart-bar-wrap:nth-child(7) .ft-wth-chart-bar-temp { animation-delay: 0.14s; }
.ft-wth-chart-bar-wrap:nth-child(8) .ft-wth-chart-bar-temp { animation-delay: 0.16s; }
.ft-wth-chart-bar-wrap:nth-child(n+9) .ft-wth-chart-bar-temp { animation-delay: 0.18s; }

/* Yağış ihtimali çubuğu */
.ft-wth-chart-bar-precip {
    width: 12px;
    min-height: 4px;
    max-height: 100%;
    background: rgba(6,182,212,.55);
    border-radius: 2px;
    transform-origin: bottom;
    animation: ft-wth-bar-grow 0.5s ease-out 0.15s backwards;
}
.ft-wth-chart-bar-wrap:nth-child(n+9) .ft-wth-chart-bar-precip { animation-delay: 0.25s; }

/* Saat etiketi */
.ft-wth-chart-label {
    font-size: 0.62rem;
    color: #64748b;
    margin-top: 2px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* Grafik lejant */
.ft-wth-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
    font-size: 0.75rem;
    color: #94a3b8;
    margin: 0.5rem 0 0;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255,255,255,.05);
}
.ft-wth-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.ft-wth-legend-item.ft-wth-legend-temp::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    border-radius: 2px;
}
.ft-wth-legend-item.ft-wth-legend-precip::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    background: rgba(6,182,212,.65);
    border-radius: 2px;
}
.ft-wth-legend-item.ft-wth-legend-match {
    color: #60a5fa;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════
 *  Mini kart (saatlik yoksa günlük özet)
 * ═══════════════════════════════════════════════════ */
.ft-wth-mini-card .ft-wth-mini-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.ft-wth-mini-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    font-size: 2.15rem;
    background: rgba(6,182,212,.06);
    border-radius: 14px;
    border: 1px solid rgba(6,182,212,.1);
    flex-shrink: 0;
}
.ft-wth-mini-text {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.85rem;
    min-width: 0;
}
.ft-wth-mini-desc {
    font-weight: 600;
    color: #e2e8f0;
    font-size: 0.95rem;
}
.ft-wth-mini-temps {
    font-size: 1.1rem;
    font-weight: 700;
    color: #60a5fa;
}
.ft-wth-mini-precip {
    font-size: 0.88rem;
    color: #94a3b8;
}

/* ═══════════════════════════════════════════════════
 *  Taraftar ipuçları
 * ═══════════════════════════════════════════════════ */
.ft-wth-fan-tips {
    border-left: 3px solid rgba(59,130,246,.35);
}
.ft-wth-tips-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ft-wth-tip {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.55rem 0;
    font-size: 0.92rem;
    color: #e2e8f0;
    line-height: 1.5;
    border-bottom: 1px solid rgba(255,255,255,.04);
}
.ft-wth-tip:last-child { border-bottom: none; padding-bottom: 0; }
.ft-wth-tip:first-child { padding-top: 0; }
.ft-wth-tip-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 1.15rem;
    background: rgba(255,255,255,.035);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.06);
    margin-top: 0.1rem;
}

/* ═══════════════════════════════════════════════════
 *  Maça olası etkiler
 * ═══════════════════════════════════════════════════ */
.ft-wth-impact {
    border-left: 3px solid rgba(52,211,153,.35);
}
.ft-wth-impact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ft-wth-impact-list li {
    position: relative;
    padding: 0.35rem 0 0.35rem 1.25rem;
    font-size: 0.92rem;
    color: #cbd5e1;
    line-height: 1.5;
}
.ft-wth-impact-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 6px;
    height: 6px;
    background: #34d399;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(52,211,153,.2);
}
.ft-wth-impact-list li + li {
    border-top: 1px solid rgba(255,255,255,.035);
}

/* ═══════════════════════════════════════════════════
 *  İddaa / bahis bilgi kutusu
 * ═══════════════════════════════════════════════════ */
.ft-wth-betting-note {
    border-left: 3px solid rgba(251,191,36,.4);
    background: rgba(251,191,36,.03);
}
.ft-wth-betting-text {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #e2e8f0;
    margin: 0 0 0.55rem;
}
.ft-wth-betting-text:last-of-type { margin-bottom: 0.75rem; }
.ft-wth-betting-disclaimer {
    font-size: 0.78rem;
    color: #64748b;
    margin: 0;
    padding-top: 0.55rem;
    border-top: 1px solid rgba(255,255,255,.05);
    font-style: italic;
}

/* ═══════════════════════════════════════════════════
 *  Responsive (640px ve altı)
 * ═══════════════════════════════════════════════════ */
@media (max-width: 640px) {
    .ft-wth-card {
        padding: 0.95rem 1rem;
        border-radius: 12px;
    }
    .ft-wth-hour-summary .ft-wth-hour-main {
        gap: 0.85rem;
    }
    .ft-wth-hour-icon {
        width: 50px;
        height: 50px;
        font-size: 2.15rem;
        border-radius: 12px;
    }
    .ft-wth-hour-temp { font-size: 1.25rem; }
    .ft-wth-hour-details {
        gap: 0.4rem 1rem;
        padding: 0.5rem 0.7rem;
    }
    .ft-wth-chart-card--hourly .ft-wth-chart-bars {
        min-height: 120px;
        padding-left: 0.4rem;
        padding-right: 0.4rem;
    }
    .ft-wth-chart-bar-wrap { width: 28px; }
    .ft-wth-chart-bar-group { height: 88px; }
    .ft-wth-chart-bar-temp,
    .ft-wth-chart-bar-precip { width: 10px; }
    .ft-wth-chart-label { font-size: 0.58rem; }
    .ft-wth-chart-legend { flex-direction: column; gap: 0.35rem; }
    .ft-wth-mini-icon { width: 46px; height: 46px; font-size: 1.85rem; }
    .ft-wth-tip { gap: 0.55rem; }
    .ft-wth-tip-icon { width: 32px; height: 32px; font-size: 1rem; }
}
