/* =========================================
   1. TEMEL AYARLAR VE DEĞİŞKENLER
   ========================================= */
:root {
    /* Varsayılan Değerler (Elementor Panelinden Ezilir) */
    --fp-card-width: 320px;
    --fp-gap: 20px;
    
    /* Responsive Navigasyon */
    --fp-nav-margin: 10px;
    --fp-nav-width: 100%;

    /* Renk Tanımları (Varsayılan) */
    --fp-arrow-color: #ffffff;
    --fp-nav-bg: #333333;
    --fp-accent: #00d084;
    --fp-counter-color: #ffffff;
}

.fp-wrapper {
    position: relative;
    width: 100%;
    /* Sayfa taşmasını engelle ama slider taşmasına izin ver */
    overflow: hidden; 
    font-family: 'Roboto', sans-serif;
    padding: 10px 0; /* Dikey güvenlik boşluğu */
}

/* Tüm alt elemanların kutu modelini sabitle (Kaymaları önler) */
.fp-wrapper *,
.fp-wrapper *::before,
.fp-wrapper *::after {
    box-sizing: border-box;
}

/* =========================================
   2. SLIDER (SWIPER) YAPISI
   ========================================= */
.fp-swiper {
    width: 100%;
    /* KRİTİK: Mobilde sola kaymayı önlemek için yatay padding 0 yapıldı.
       Dikey padding (40px 60px) hover/elevation efektinin kesilmemesi için gerekli. */
    padding: 40px 0 60px 0 !important; 
    overflow: visible !important; /* Yan kartların görünmesi için şart */
    margin: 0 auto; /* Konteynerı ortala */
}

.fp-slide {
    /* Genişlik Elementor'dan gelir */
    width: var(--fp-card-width) !important;
    max-width: 100%; /* Taşmayı önle */
    
    /* ÖNEMLİ DÜZELTME: margin-right CSS'ten SİLİNDİ. 
       Böylece JS'in verdiği style="margin-right: 30px" çalışacak. */
    
    /* KRİTİK: Kartların sıkışmasını ve hesaplamanın bozulmasını önler */
    flex-shrink: 0 !important;
    
    height: auto; /* Tüm kartları eşit yükseklikte tut */
    
    /* İçerik Hizalama */
    display: flex; 
    justify-content: center; /* Kartı kendi alanında ortala */
    
    /* Animasyonlar */
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.4s ease;
    
    /* Aktif olmayan kartlar biraz sönük ve küçük dursun */
    opacity: 0.5;
    transform: scale(0.92);
}

/* AKTİF KART (ORTADAKİ) */
.fp-slide.swiper-slide-active {
    opacity: 1;
    transform: scale(1);
    z-index: 10; /* Aktif kart en üstte */
}

/* =========================================
   3. TEK KART MODU (SINGLE MODE FIX)
   ========================================= */
/* Tek maç kaldığında slider mantığını devre dışı bırakıp ortalar */
.fp-single-mode .fp-swiper {
    display: flex;
    justify-content: center; 
    padding-bottom: 20px !important;
}

.fp-single-mode .swiper-wrapper {
    display: flex;
    justify-content: center;
    width: auto !important;
    transform: none !important; /* Swiper'ın JS kaydırmasını iptal et */
}

.fp-single-mode .fp-slide {
    margin-right: 0 !important;
    opacity: 1 !important;
    transform: scale(1) !important;
    flex-shrink: 0;
}

/* Tek kart modunda okları ve barı gizle */
.fp-single-mode .fp-controls {
    display: none !important;
}

/* =========================================
   4. KART TASARIMI (CARD DESIGN)
   ========================================= */
.fp-card {
    width: 100%;
    background: #1a1a1a; 
    border: 1px solid #333;
    border-radius: 16px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden; 
    
    /* Derinlik Hissi */
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* HOVER & AKTİF EFEKTİ: Yükselme (Elevation) */
.fp-slide.swiper-slide-active .fp-card,
.fp-card:hover {
    transform: translateY(-12px); /* Yukarı kaldır */
    box-shadow: 0 25px 50px rgba(0,0,0,0.4); /* Gölgeyi derinleştir */
    border-color: var(--fp-accent); /* Kenarlığı parlat */
}

/* Glassmorphism (Cam Efekti) Modu */
.fp-glass-mode .fp-card {
    background: rgba(30, 30, 30, 0.60) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.fp-card img {
    pointer-events: none; /* Sürüklemeyi engelle */
    user-select: none;
    -webkit-user-drag: none;
    max-width: 100%;
    height: auto;
}

/* =========================================
   5. KART İÇERİĞİ (DETAILS)
   ========================================= */

/* Üst Kısım: Tarih ve Durum */
.fp-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.9rem; /* Elementor buradan ezer */
    color: #aaa;
    font-weight: 500;
}

/* Durum Rozeti (Badge) */
.fp-status {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.75rem; /* Elementor buradan ezer */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.fp-status.upcoming {
    background: #333; /* Varsayılan */
    color: #fff;
}

.fp-status.played {
    background: transparent !important;
    color: var(--fp-accent);
    padding: 0;
    font-style: italic;
    font-weight: 900;
}

/* Takımlar ve Skor Alanı */
.fp-teams {
    display: flex;
    align-items: flex-start; /* Logoları üstten hizala */
    justify-content: space-between;
    margin-bottom: 25px;
    flex-grow: 1; /* Alanı doldur */
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 35%;
    text-align: center;
}

.team img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Mobilde aktif kartın logosu da büyüsün */
.fp-slide.swiper-slide-active .team img,
.fp-card:hover .team img {
    transform: scale(1.15); 
}

.team span {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    text-transform: uppercase;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Çok uzun isimleri kes */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Skor / VS Bölümü */
.fp-score {
    width: 30%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70px; /* Logo yüksekliği ile eşitle */
}

.scores {
    font-size: 2.4rem;
    font-weight: 900;
    color: #fff;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 2px;
}

.vs-badge {
    font-size: 1.8rem;
    color: #555;
    font-style: italic;
    font-weight: 900;
    font-family: 'Oswald', sans-serif;
    opacity: 0.5;
}

/* Footer (Konum/Stadyum) - FLEXBOX DÜZELTMESİ */
.fp-footer {
    /* İkon ve metni tam ortalamak için Flexbox */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* İkon ve metin arası boşluk */
    
    text-align: center;
    font-size: 0.85rem;
    color: #777;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 15px;
    margin-top: auto;
    
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* DÜZELTME: İkon hizalaması ve boyutlandırması */
.fp-footer .dashicons {
    font-family: "dashicons" !important;
    /* Font boyutuna göre orantılı büyüme (1.2 katı) */
    font-size: 1.2em; 
    width: 1.2em;
    height: 1.2em;
    line-height: 1; /* Satır yüksekliğini sıfırla */
    
    color: inherit;
    text-decoration: none;
    
    /* Flex içinde dikey ortalama */
    display: inline-flex; 
    align-items: center;
    justify-content: center;
}

/* =========================================
   6. ALT KONTROLLER (NAVİGASYON)
   ========================================= */

/* Elementor'dan "Gizle" seçilirse */
.fp-nav-hidden .fp-controls {
    display: none !important;
}

.fp-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 10px;
    position: relative;
    z-index: 20;
    
    /* Elementor Responsive Kontrolleri */
    margin-top: var(--fp-nav-margin); 
    width: var(--fp-nav-width);
    
    /* Ortalamak için */
    margin-left: auto;
    margin-right: auto;
    max-width: 100%; 
}

/* İlerleme Çubuğu (Bar) */
.fp-progress {
    flex-grow: 1;
    height: 4px;
    background: var(--fp-nav-bg);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.swiper-pagination-progressbar {
    background: transparent !important;
}

.swiper-pagination-progressbar-fill {
    background: var(--fp-accent) !important;
    border-radius: 0 4px 4px 0;
}

/* Ok Butonları (Next/Prev) */
.fp-wrapper .swiper-button-next,
.fp-wrapper .swiper-button-prev {
    position: static !important;
    width: 36px !important;
    height: 36px !important;
    border: 1px solid var(--fp-nav-bg);
    border-radius: 50%;
    margin: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
}

/* Ok İkonları */
.fp-wrapper .swiper-button-next::after,
.fp-wrapper .swiper-button-prev::after {
    font-size: 14px !important;
    font-weight: 900;
    color: var(--fp-arrow-color) !important;
}

/* Ok Hover */
.fp-wrapper .swiper-button-next:hover,
.fp-wrapper .swiper-button-prev:hover {
    border-color: var(--fp-accent);
    background: rgba(255,255,255,0.08);
}

.fp-wrapper .swiper-button-next:hover::after,
.fp-wrapper .swiper-button-prev:hover::after {
    color: var(--fp-accent) !important;
}

/* Sayaç (1/12) */
.fp-counter {
    font-family: 'Oswald', sans-serif;
    font-weight: bold;
    font-size: 1rem;
    color: var(--fp-counter-color);
    min-width: 45px;
    text-align: center;
    user-select: none;
}

/* =========================================
   7. MOBİL UYUMLULUK (RESPONSIVE)
   ========================================= */
@media (max-width: 767px) {
    .fp-slide {
        /* Ekranın %85'ini kapla (Reels hissi için yan taraflar görünsün) */
        width: 85vw !important;
        /* Ama Elementor'daki max-width'i aşma */
        max-width: var(--fp-card-width) !important; 
    }
    
    /* DÜZELTME: Paddingleri sıfırla ki hizalama bozulmasın */
    .fp-swiper {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .fp-card {
        padding: 25px 15px; /* Mobilde padding azalt */
    }

    .team span {
        font-size: 0.9rem; /* İsimleri küçült */
    }
    
    .scores {
        font-size: 2rem;
    }
    
    .fp-controls {
        width: 100% !important; /* Mobilde bar hep %100 olsun */
    }
}

/* =========================================
   8. SAYAÇ WIDGET (COUNTDOWN)
   ========================================= */
.fp-countdown-wrapper {
    text-align: left;
    font-family: 'Roboto', sans-serif;
}

.fp-countdown-wrapper.fp-expired {
    opacity: 0.5;
    filter: grayscale(1);
}

.fp-cd-header {
    margin-bottom: 25px;
}

.fp-cd-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: #fff; /* Elementor ezer */
}

.fp-cd-match {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ccc;
    line-height: 1.2;
}

.fp-cd-timer {
    display: flex;
    /* İki nokta hizası için ortala */
    align-items: center; 
    /* Gap Elementor'dan gelir */
}

.cd-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cd-num {
    font-family: 'Oswald', sans-serif;
    font-size: 3.8rem; /* Rakam boyutu */
    font-weight: 900;
    line-height: 1;
    color: #fff;
    font-variant-numeric: tabular-nums; /* Rakam oynatmalarını engelle */
}

.cd-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #888;
    margin-top: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
}

/* DÜZELTME: İki nokta işareti hizalaması */
.cd-sep {
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    color: #444;
    line-height: 1;
    /* Label olmadığı için dikey eksende yukarı kaçar. 
       Bunu margin-top ile aşağı iterek RAKAMLARIN ortasına getiriyoruz */
    margin-top: -18px; 
    margin-bottom: 10px; /* Label boşluğunu dengele */
    position: relative;
    top: 0;
}

/* =========================================
   YENİ EKLENTİ STİLLERİ (DİKEY LİSTE)
   ========================================= */

.fp-list-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.fp-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff; /* Varsayılan beyaz */
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03); /* Hafif gölge */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fp-list-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

/* 1. Sol Kısım: Bilgi */
.fp-list-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 25%;
    border-right: 1px solid #f0f0f0;
    padding-right: 15px;
}

.fp-l-date {
    font-size: 0.85rem;
    font-weight: 700;
    color: #333;
}

.fp-l-stad {
    font-size: 0.75rem;
    color: #888;
}

/* 2. Orta Kısım: Takımlar ve Skor */
.fp-list-match {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    gap: 20px;
}

.fp-l-team {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 35%;
}

.fp-l-team.home { justify-content: flex-end; text-align: right; }
.fp-l-team.away { justify-content: flex-start; text-align: left; }

.fp-l-team img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.fp-l-team .t-name {
    font-weight: 700;
    color: #222;
    font-size: 0.95rem;
}

/* Skor / Saat Kutusu */
.fp-l-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

.fp-l-score {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: #222;
    line-height: 1;
}

.fp-l-center.played .fp-l-score { color: #222; }
.fp-l-center.upcoming .fp-l-score { color: #007cba; }

/* --- MOBİL UYUMLULUK (VERTICAL LIST) --- */
@media (max-width: 768px) {
    .fp-list-item {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 15px;
    }
    
    .fp-list-info {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
        padding-bottom: 10px;
        padding-right: 0;
        flex-direction: row;
        justify-content: center;
        gap: 10px;
    }

    .fp-list-match {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }

    /* Takım kapsayıcısı genel ayar */
    .fp-l-team {
        gap: 5px;
        width: 40%;
        display: flex;
    }

    .fp-l-team.home {
        flex-direction: column-reverse;
    }

    .fp-l-team.away {
        flex-direction: column;
    }
    
    .fp-l-team.home, 
    .fp-l-team.away {
        justify-content: flex-start;
        text-align: center;
    }

    /* Mobilde isimleri görünür yap */
    .fp-l-team .t-name {
        display: block !important;
        font-size: 0.8rem; 
        line-height: 1.2;
    }
}