/* --- GENEL SAYFA YAPISI --- */
body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    /* Toprak kort rengi */
    background-color: #c06035; 
    margin: 0; 
    display: flex; 
    justify-content: center; 
    align-items: flex-start; 
    min-height: 100vh; 
    padding: 0; 
    box-sizing: border-box; 
}

/* --- ANA KONTEYNERLAR --- */
#main-app { 
    background-color: #ffffff; 
    width: 100%; 
    max-width: 450px; 
    padding: 20px; 
    border-radius: 0; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.2); 
    box-sizing: border-box; 
    display: flex; 
    flex-direction: column; 
    min-height: 10vh; 
    margin: 0; 
}

@media (min-width: 480px) {
    #main-app {
        margin-top: 20px;
        margin-bottom: 20px;
        border-radius: 15px;
        min-height: 90vh;
        padding: 25px;
    }
}

/* --- YENİ MODERN GİRİŞ EKRANI (AUTH SCREEN) --- */
#auth-screen {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #c06035 0%, #8d4020 100%); /* Toprak kort gradyanı */
    padding: 20px;
    box-sizing: border-box;
}

.auth-wrapper {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.logo-area {
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.logo-area h2 { color: white; margin: 5px 0; font-size: 1.8rem; }
.logo-area p { color: rgba(255,255,255,0.9) !important; margin: 0; }

.auth-card {
    background: white;
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    width: 100%;
    box-sizing: border-box;
}

/* AUTH TABS (Giriş/Kayıt Geçişi) */
.auth-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
}

.auth-tab {
    flex: 1;
    padding: 10px;
    cursor: pointer;
    font-weight: 600;
    color: #999;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.auth-tab.active {
    color: #c06035; /* Toprak rengi uyumu */
    border-bottom: 3px solid #c06035;
}

/* INPUT GRUPLARI (İkonlu Girdiler) */
.input-group {
    position: relative;
    margin-bottom: 15px;
    text-align: left;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    z-index: 10;
}

.input-group input, .input-group select {
    padding-left: 45px !important; /* İkon için yer aç */
    background-color: #f9f9f9;
    border: 1px solid #eee;
    transition: all 0.3s;
}

.input-group input:focus, .input-group select:focus {
    background-color: #fff;
    border-color: #c06035;
    box-shadow: 0 0 0 3px rgba(192, 96, 53, 0.1);
}

.btn-main {
    background: linear-gradient(to right, #c06035, #a04020);
    color: white;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(160, 64, 32, 0.3);
}
.btn-main:hover { opacity: 0.95; transform: translateY(-1px); }

/* --- METİNLER --- */
h1 { text-align: center; color: #2c3e50; font-size: 24px; margin: 0; }
h2 { color: #34495e; font-size: 20px; margin-top: 0; margin-bottom: 15px; text-align: center; }
h3 { color: #555; font-size: 16px; margin-top: 15px; margin-bottom: 10px; border-left: 4px solid #c06035; padding-left: 10px; }
h4 { color: #34495e; font-size: 15px; margin-bottom: 10px; border-bottom: 1px dashed #ccc; padding-bottom: 5px; }

/* --- HEADER --- */
.header-container { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #f0f0f0; padding-bottom: 10px; margin-bottom: 10px; }

/* --- LOBİ --- */
.lobby-card { background-color: #f8f9fa; border: 1px solid #e9ecef; border-radius: 10px; padding: 15px; margin-bottom: 15px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.lobby-card h4 { margin-top: 0; border: none; padding: 0; font-size: 1.1em; color: #333; }
.lobby-card p { margin-bottom: 0; color: #666; font-size: 0.9em; }

.lobby-scroll-list {
    /* 3 öğe görünecek şekilde yükseklik ayarı (yaklaşık 100px öğe başı) */
    max-height: 320px;
    overflow-y: auto;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 10px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 15px;
}
.lobby-scroll-list::-webkit-scrollbar { width: 4px; }
.lobby-scroll-list::-webkit-scrollbar-thumb { background-color: #ccc; border-radius: 4px; }

/* --- HABER AKIŞI: GÖRSEL ŞÖLEN (KART TASARIMI) --- */
#lobby-announcements-container {
    background-color: transparent; /* Arka planı temizle */
    border: none;
    box-shadow: none;
    padding: 0;
    max-height: 500px; /* Görsellik arttığı için alanı biraz büyüttük */
    overflow-y: auto;
}

#lobby-announcements-container::-webkit-scrollbar {
    width: 4px;
}
#lobby-announcements-container::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}

.news-card {
    background: #fff;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1); /* Modern, yumuşak gölge */
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0,0,0,0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: slideInUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Hafif yaylanarak gelme */
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.news-card:active { transform: scale(0.98); }

/* Kartın Üst Başlık Kısmı (Degrade Renkler) */
.news-header-strip {
    padding: 10px 15px;
    color: white;
    font-size: 0.75em;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Olay Tipine Göre Renkler */
.strip-match { background: linear-gradient(135deg, #4b6cb7 0%, #182848 100%); } /* Mavi - Standart Maç */
.strip-upset { background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%); } /* Kırmızı - Sürpriz/Eziş */
.strip-thriller { background: linear-gradient(135deg, #f12711 0%, #f5af19 100%); } /* Turuncu - Çekişmeli */
.strip-ad { background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%); } /* Yeşil - İlan */
.strip-badge { background: linear-gradient(135deg, #834d9b 0%, #d04ed6 100%); } /* Mor - Rozet */

.news-body {
    padding: 18px;
}

/* Oyuncu Fotoğrafları ve İsimleri */
/* --- style.css Dosyasındaki Güncel Kodlar --- */

.news-players-row {
  display: flex;
  /* flex-wrap: wrap;  Kaldırıldı: Elemanların alt satıra düşmesini engeller */
  align-items: center; /* Eklendi: Avatarları ve isimleri dikeyde ortalar */
  margin-bottom: 12px;
}

.news-avatars-stack {
  display: flex;
  position: relative;
  width: 70px; /* İki avatarın toplam genişliğini sabitler */
  height: 50px;
  /* margin-bottom kaldırıldı, artık gerek yok */
}

.news-highlight-names {
  font-size: 1.2em;
  font-weight: bold;
  color: #333;
  /* padding-top: 20px; Kaldırıldı: Artık gereksiz */
  margin-left: 15px; /* Eklendi: Avatarlardan sonra temiz bir boşluk bırakır */
  flex-grow: 1; /* Eklendi: Kalan alanı kaplayarak sağa yaslanmayı önler */
  line-height: 1.3; /* Eklendi: İsimler arasındaki satır aralığını düzeltir */
}

/* Yorum Metni */
.news-commentary {
    font-size: 0.95em;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    border-left: 3px solid #ddd;
}

.news-commentary strong { color: #333; }

/* Skor Rozeti */
.news-score-badge {
    display: inline-flex;
    align-items: center;
    background: #e9ecef;
    color: #495057;
    font-weight: bold;
    font-size: 0.85em;
    padding: 6px 10px;
    border-radius: 20px;
    margin-top: 5px;
    border: 1px solid #dee2e6;
}

/* Aksiyon Butonu */
.news-action-btn {
    width: 100%;
    background-color: transparent;
    color: #007bff;
    border: 1px dashed #cce5ff;
    padding: 10px;
    font-size: 0.9em;
    border-radius: 10px;
    margin-top: 10px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    font-weight: 600;
}
.news-action-btn:hover {
    background-color: #f0f8ff;
    border-color: #007bff;
    transform: translateY(-2px);
}


/* --- ALT NAVİGASYON --- */
.bottom-nav { 
    position: fixed; bottom: 0; left: 0; width: 100%; height: 65px; background-color: #ffffff; 
    display: flex; align-items: center; box-shadow: 0 -2px 10px rgba(0,0,0,0.1); z-index: 1000; border-top: 1px solid #eee; 
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch; 
}
.bottom-nav::-webkit-scrollbar { display: none; }
.bottom-nav { -ms-overflow-style: none; scrollbar-width: none; }

.nav-item { 
    display: flex; flex-direction: column; align-items: center; justify-content: center; 
    color: #999; font-size: 10px; cursor: pointer; height: 100%; transition: color 0.2s; 
    min-width: 60px; /* Biraz daha küçülttük ki 8-9 item sığsın */
    flex-shrink: 0;
    padding: 0 5px;
}
.nav-icon { font-size: 20px; margin-bottom: 2px; }
.nav-item.active { color: #c06035; font-weight: bold; }
.nav-item:active { background-color: #f9f9f9; }

/* --- TAB ANİMASYONU --- */
.tab-section { animation: fadeIn 0.3s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- FORM --- */
.profile-upload-container { display: flex; flex-direction: column; align-items: center; margin-bottom: 15px; }
#profile-preview, #edit-profile-preview { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin-bottom: 10px; border: 3px solid #eee; background-color: #f0f0f0; }
.profile-preview-large { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin-bottom: 10px; }
.upload-label { cursor: pointer; color: #c06035; font-weight: bold; font-size: 0.9em; }
.upload-label-blue { cursor: pointer; color: #007bff; font-size: 0.9em; }

input, select { width: 100%; padding: 14px; margin-bottom: 0; /* Margin input-group ile yönetiliyor */ border: 1px solid #ddd; border-radius: 8px; box-sizing: border-box; font-size: 16px; background-color: #f9f9f9; transition: border-color 0.3s; }
input:focus, select:focus { border-color: #28a745; outline: none; background-color: #fff; }
.input-label { font-size: 0.85em; color: #666; margin-bottom: 5px; display: block; margin-top: 10px; }

/* --- BUTONLAR --- */
button { width: 100%; padding: 14px; border: none; border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer; transition: background-color 0.2s, transform 0.1s; margin-bottom: 10px; color: white; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
button:active { transform: scale(0.98); }
button:hover { opacity: 0.9; }
.btn-save { background-color: #007bff; color: white; }
.btn-save-profile { background-color: #28a745; margin-top: 20px; }
.btn-save-schedule { background-color: #6f42c1; color: white; } 
.btn-accept { background-color: #28a745; color: white; }
.btn-reject { background-color: #dc3545; color: white; }
.btn-withdraw { background-color: #ffc107; color: #333; }
.btn-approve { background-color: #17a2b8; color: white; }
.btn-purple { background-color: #6f42c1; color: white; } .btn-purple:hover { background-color: #59359a; }
.btn-filter-apply { background-color: #28a745; flex: 2; }
.btn-filter-clear { background-color: #dc3545; flex: 1; }
.btn-chat { background-color: #17a2b8; color: white; margin-top: 5px; font-size: 0.9em; padding: 8px; width: auto; }
.btn-chat-small { background-color: #17a2b8; color: white; padding: 8px; font-size: 0.9em; margin-bottom: 15px; width: 100%; }
.btn-delete-chat { background: none; border: none; color: #dc3545; font-size: 1.2em; padding: 0 10px; margin: 0; width: auto; box-shadow: none; }

/* MAÇ DETAY GERİ DÖN BUTONU İÇİN YENİ STİL */
#back-to-list-btn {
    background-color: #4a69bd; /* Daha görünür lacivert/mor tonu */
    color: white;
    margin-top: 15px;
    font-weight: 600;
    margin-bottom: 120px !important; /* Navigasyonun üstüne çıkması için alt boşluk */
    position: relative; /* Z-index'in çalışması için */
    z-index: 5; /* Navigasyonun altında kalsa bile tıklanabilsin diye */
}

/* --- MAÇ AKIŞI STİLLERİ --- */
.section-container { background-color: #fff; border-radius: 12px; padding: 15px; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); border: 1px solid #eee; }
.section-title { margin-top: 0; margin-bottom: 12px; font-size: 1.1em; font-weight: 700; color: #444; border-bottom: none; display: flex; align-items: center; }
.active-matches-section { border-left: 5px solid #28a745; }
.pending-matches-section { border-left: 5px solid #ffc107; }
.history-matches-section { border-left: 5px solid #6c757d; }

#fixture-active-container, #fixture-pending-container, #fixture-history-container { max-height: 270px; overflow-y: auto; padding-right: 2px; }
#fixture-active-container::-webkit-scrollbar, #fixture-pending-container::-webkit-scrollbar, #fixture-history-container::-webkit-scrollbar { width: 4px; }
#fixture-active-container::-webkit-scrollbar-thumb, #fixture-pending-container::-webkit-scrollbar, #fixture-history-container::-webkit-scrollbar-thumb { background-color: #ccc; border-radius: 4px; }

.history-filters-box { background-color: #f8f9fa; padding: 10px; border-radius: 8px; margin-bottom: 15px; border: 1px solid #e9ecef; }
.history-filters-box input, .history-filters-box select { background-color: #fff; border: 1px solid #ced4da; color: #495057; margin-bottom: 0; }

.match-card { background-color: #fff; border: 1px solid #e0e0e0; border-radius: 10px; padding: 15px; padding-right: 85px; margin-bottom: 10px; position: relative; box-shadow: 0 1px 3px rgba(0,0,0,0.05); box-sizing: border-box; }
.match-card p { margin: 5px 0; font-size: 14px; color: #555; }
.match-action-btn { background-color: #007bff; color: white; width: auto; padding: 6px 12px; font-size: 13px; border-radius: 4px; position: absolute; right: 15px; top: 50%; transform: translateY(-50%); float: none; margin: 0; }
.match-plan-info { font-size: 0.85em; color: #d63384; margin-top: 5px; font-weight: 500; }

/* --- MAÇ DETAY KUTULARI --- */
.score-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; padding: 5px; background-color: #fff; border-radius: 6px; }
.score-row span { font-weight: bold; color: #555; flex: 1; }
.score-box { width: 60px !important; text-align: center; margin-bottom: 0 !important; padding: 8px !important; font-weight: bold; }
#score-input-section, #schedule-input-section { margin-bottom: 15px; background-color: #f9f9f9; padding: 10px; border-radius: 8px; }
#score-display-section { margin-bottom: 15px; text-align: center; font-weight: bold; font-size: 1.2em; color: #333; }

/* --- SOHBET LİSTESİ --- */
.chat-list-item { background: #fff; border: 1px solid #eee; border-radius: 10px; padding: 15px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.chat-list-name { font-weight: bold; color: #333; margin-bottom: 3px; }
.chat-list-msg { font-size: 0.85em; color: #777; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.chat-list-time { font-size: 0.75em; color: #999; }

/* --- FİLTRE --- */
#filters-container { background-color: #f1f3f5; padding: 15px; border-radius: 10px; margin-bottom: 20px; border: 1px solid #e9ecef; }
.filter-row { display: flex; gap: 10px; margin-bottom: 10px; }
.filter-row input, .filter-row select { flex: 1; margin-bottom: 0; padding: 8px; font-size: 14px; }
.filter-actions { display: flex; gap: 10px; }

/* --- LİG SIRALAMASI --- */
#leaderboard { max-height: 75vh; overflow-y: auto; margin-bottom: 20px; padding-right: 5px; border: 1px solid #f0f0f0; border-radius: 8px; }
.player-card { background-color: #fff; border-bottom: 1px solid #eee; padding: 12px 15px; display: flex; justify-content: space-between; align-items: center; transition: background-color 0.2s; cursor: pointer; }
.player-card:last-child { border-bottom: none; } .player-card:hover { background-color: #f9f9f9; }

/* --- YENİ EN'LER SEKMESİ (BESTS) --- */
.bests-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding-bottom: 20px;
}
.best-card {
    background: #fff;
    border-radius: 12px;
    padding: 15px 10px;
    text-align: center;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}
.best-card:active { transform: scale(0.98); }
.best-icon { font-size: 2.2em; margin-bottom: 8px; display: block; }
.best-title { font-size: 0.75em; color: #888; font-weight: 700; margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.5px; }
.best-value { font-size: 1.1em; font-weight: 800; color: #333; margin-bottom: 4px; }
.best-player { font-size: 0.9em; color: #c06035; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* --- YENİ ROZET SİSTEMİ STİLLERİ --- */
.badges-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 10px;
    padding: 10px 0;
}
.badge-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    position: relative;
}
.badge-item.locked {
    opacity: 0.5;
    background: #f5f5f5;
    filter: grayscale(100%);
}
.badge-item.earned {
    border-color: #ffc107;
    background: #fff9e6;
    box-shadow: 0 2px 5px rgba(255, 193, 7, 0.2);
}
.badge-icon {
    font-size: 1.8em;
    margin-bottom: 4px;
}
.badge-name {
    font-size: 0.65em;
    font-weight: bold;
    color: #444;
    line-height: 1.2;
}
/* Tooltip benzeri bilgi */
.badge-item:hover::after {
    content: attr(data-desc);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.7em;
    width: 120px;
    z-index: 10;
    pointer-events: none;
    margin-bottom: 5px;
}

/* --- MEYDAN OKUMA --- */
.challenge-center-wrapper {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.challenge-actions { width: 100%; max-width: 300px; }


/* --- MODAL --- */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1100; justify-content: center; align-items: center; }
.modal-content { background: white; padding: 20px; border-radius: 10px; width: 90%; max-width: 400px; position: relative; max-height: 90vh; overflow-y: auto; box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
.close-modal { position: absolute; top: 10px; right: 15px; font-size: 24px; cursor: pointer; }
.modal-header-center { text-align: center; }
.modal-photo { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; border: 3px solid #eee; }

/* --- SOHBET MODAL --- */
.chat-content { height: 80vh; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.chat-header { padding: 15px; background: #f8f9fa; border-bottom: 1px solid #ddd; display: flex; justify-content: space-between; align-items: center; }
.close-modal-x { font-size: 24px; cursor: pointer; color: #666; }
.chat-messages { flex: 1; padding: 15px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; background-color: #fff; }
.chat-input-area { padding: 10px; border-top: 1px solid #ddd; display: flex; gap: 10px; background: #f8f9fa; }
.chat-input-area input { flex: 1; padding: 10px; border: 1px solid #ccc; border-radius: 20px; margin-bottom: 0; }
.chat-input-area button { width: auto; padding: 10px 20px; border-radius: 20px; margin-bottom: 0; background-color: #007bff; }
.message-bubble { max-width: 75%; padding: 10px 15px; border-radius: 15px; font-size: 14px; line-height: 1.4; position: relative; word-wrap: break-word; }
.message-sent { align-self: flex-end; background-color: #007bff; color: white; border-bottom-right-radius: 2px; }
.message-received { align-self: flex-start; background-color: #e9ecef; color: #333; border-bottom-left-radius: 2px; }
.message-time { font-size: 0.7em; margin-top: 5px; text-align: right; opacity: 0.7; display: block; }

/* --- BİLDİRİM --- */
#notification-container { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.notification-toast { background-color: #333; color: #fff; padding: 15px 20px; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.3); font-size: 14px; animation: slideIn 0.3s ease-out; display: flex; align-items: center; justify-content: space-between; min-width: 250px; }
.notification-toast.success { background-color: #28a745; } .notification-toast.info { background-color: #007bff; } .notification-toast.warning { background-color: #ffc107; color: #333; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* --- YENİ İSTATİSTİK SİSTEMİ STİLLERİ --- */
.stat-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 0;
}
.stat-card h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #444;
    text-align: center;
    border-bottom: none;
}

/* Dairesel Grafikler (CSS Conic Gradient) */
.stats-grid-charts {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
}
.chart-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}
.chart-circle {
    width: 65px; /* Kompakt boyut */
    height: 65px;
    border-radius: 50%;
    /* Değişkenler JS'den gelecek: --p:yüzde, --c:renk */
    background: conic-gradient(var(--c) calc(var(--p) * 1%), #f0f0f0 0);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.chart-circle::before {
    content: "";
    position: absolute;
    width: 50px; /* İçteki beyaz daire */
    height: 50px;
    border-radius: 50%;
    background: white;
}
.chart-circle span {
    position: relative;
    z-index: 2;
    font-weight: bold;
    font-size: 0.9em;
    color: #333;
}
.chart-box label {
    font-size: 0.8em;
    color: #666;
    font-weight: 600;
}

/* Basit Bar Grafik (Kort Performansı) */
.bar-chart-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.bar-label {
    width: 50px;
    font-size: 0.8em;
    color: #555;
    font-weight: 600;
    text-align: right;
}
.bar-track {
    flex: 1;
    height: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
    overflow: hidden;
}
.bar-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.5s ease;
}
.bar-val {
    width: 35px;
    font-size: 0.8em;
    color: #333;
    text-align: left;
}

/* Eski Modal İstatistik Parçaları */
.stats-container { display: flex; flex-direction: column; gap: 15px; margin-top: 15px; }
.h2h-box { background-color: #e3f2fd; color: #0d47a1; padding: 8px; border-radius: 8px; text-align: center; font-weight: bold; font-size: 0.9em; border: 1px solid #bbdefb; }
.form-container { display: flex; flex-direction: column; align-items: center; }
.form-title { font-size: 0.8em; color: #666; margin-bottom: 5px; text-transform: uppercase; letter-spacing: 1px; }
.form-badges { display: flex; gap: 5px; }
.form-badge { width: 25px; height: 25px; border-radius: 50%; color: white; display: flex; align-items: center; justify-content: center; font-size: 0.75em; font-weight: bold; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.form-w { background-color: #28a745; }
.form-l { background-color: #dc3545; }
.pies-container { display: flex; justify-content: space-around; align-items: center; background-color: #f8f9fa; padding: 10px; border-radius: 10px; border: 1px solid #eee; }
.pie-wrapper { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.stat-pie { width: 60px; height: 60px; border-radius: 50%; background: conic-gradient(#28a745 var(--p), #e9ecef 0); display: flex; align-items: center; justify-content: center; position: relative; }
.stat-pie::before { content: ""; position: absolute; width: 44px; height: 44px; border-radius: 50%; background: white; }
.stat-pie span { position: relative; z-index: 1; font-size: 0.85em; font-weight: bold; color: #333; }
.pie-label { font-size: 0.75em; color: #777; font-weight: 600; }
#detail-match-info { background-color: #f1f3f5; padding: 15px; border-radius: 8px; margin-bottom: 20px; font-size: 15px; line-height: 1.6; color: #333; }
#auth-error, #challenge-message, #result-message { font-size: 14px; margin-top: 10px; font-weight: bold; text-align: center; min-height: 20px; }
#auth-error { color: red; } #challenge-message { color: blue; } #result-message { color: red; }
.highlight-text { color: #007bff; }

@media (max-width: 400px) { h1 { font-size: 20px; } .filter-row { flex-direction: column; gap: 5px; } }

/* --- LİG ROZETLERİ (YENİ) --- */
.league-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 800;
    color: white;
    margin-left: 5px;
    text-shadow: 0 1px 1px rgba(0,0,0,0.2);
    vertical-align: middle;
}
.league-bronze { background: linear-gradient(135deg, #cd7f32 0%, #a05a2c 100%); }
.league-silver { background: linear-gradient(135deg, #bdc3c7 0%, #95a5a6 100%); }
.league-gold { background: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%); text-shadow:none; color:#333;}

/* --- YENİ GALERİ SEKMESİ VE FOTOĞRAF KUTUCUKLARI --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Mobilde 2 sütun */
    gap: 10px;
    padding-bottom: 20px;
}

@media (min-width: 600px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr); /* Tablette 3 sütun */
    }
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background: #000;
    aspect-ratio: 1 / 1; /* Kare format */
    cursor: pointer;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.95;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-img { opacity: 0.8; }

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    color: white;
    padding: 10px 8px;
    box-sizing: border-box;
    font-size: 0.75em;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    pointer-events: none;
}

.gallery-date-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.65em;
    font-weight: 600;
}

#my-photos-container {
    margin-top: 15px;
}
/* --- MAÇ ETKİLEŞİM ALANLARI (ANKET & YORUM) --- */
.interaction-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 15px;
}

/* Anket Stilleri */
.btn-poll-option {
    display: block;
    width: 100%;
    margin-bottom: 8px;
    padding: 10px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-poll-option:hover {
    background: #e2e6ea;
}

.poll-result-row {
    margin-bottom: 10px;
}
.poll-bar-bg {
    width: 100%;
    height: 10px;
    background: #e9ecef;
    border-radius: 5px;
    margin-top: 5px;
    overflow: hidden;
}
.poll-bar-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.5s ease;
}

/* Yorum Stilleri */
.comments-list {
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.comment-item {
    background: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #eee;
    font-size: 0.9em;
}
.comment-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8em;
    color: #888;
    margin-bottom: 2px;
}
.comment-author {
    font-weight: bold;
    color: #555;
}
.comment-text {
    color: #333;
    line-height: 1.3;
}
.comment-input-area {
    display: flex;
    gap: 5px;
}
.comment-input-area input {
    flex: 1;
    margin-bottom: 0;
    padding: 10px;
    border-radius: 20px;
    border: 1px solid #ccc;
}
.comment-input-area button {
    border-radius: 20px;
    background-color: #c06035; /* Tema rengi */
}
/* --- LİG SEÇİM KUTULARI --- */
.league-selector-container {
    margin-bottom: 10px;
    text-align: left;
}
.checkbox-group {
    display: flex;
    gap: 10px;
    justify-content: space-around;
    background: #fff;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
}
.checkbox-label {
    font-size: 0.9em;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}
.checkbox-label input {
    width: auto !important; /* Genel input stilini ezmek için */
    margin: 0;
}
/* Renklendirme */
.league-bronze-text { color: #a05a2c; }
.league-silver-text { color: #7f8c8d; }
.league-gold-text { color: #f39c12; }
/* --- SPAM UYARI KARTI STİLLERİ --- */
.warning-banner {
    background: linear-gradient(to right, #fff3cd, #fff8e1); /* Tatlı bir sarı tonu */
    border-left: 5px solid #ffc107;
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    animation: fadeIn 0.5s;
    position: relative;
}

.warning-icon {
    font-size: 1.5em;
    padding-top: 2px;
}

.warning-content {
    flex: 1;
}

.warning-content strong {
    display: block;
    color: #856404;
    font-size: 0.95em;
    margin-bottom: 3px;
}

.warning-content p {
    margin: 0;
    font-size: 0.85em;
    color: #666;
    line-height: 1.4;
}

.warning-close {
    background: none;
    border: none;
    color: #999;
    font-size: 1.5em;
    line-height: 0.8;
    cursor: pointer;
    padding: 0;
    margin: 0;
    width: auto;
    box-shadow: none;
    align-self: flex-start;
}

.warning-close:hover {
    color: #333;
    background: none;
}
/* --- ONBOARDING (REHBER) STİLLERİ --- */
.onboarding-content {
    text-align: center;
    padding: 30px 20px;
    background: white;
    max-width: 350px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.onboarding-slide {
    display: none;
    animation: fadeIn 0.5s;
}

.onboarding-slide.active-slide {
    display: block;
}

.slide-icon {
    font-size: 3em;
    margin-bottom: 10px;
}

.onboarding-content h3 {
    color: #c06035;
    font-size: 1.4em;
    margin-bottom: 15px;
    border: none;
    padding: 0;
}

.onboarding-content p {
    color: #555;
    font-size: 0.95em;
    line-height: 1.6;
    min-height: 80px; /* Metinler değişince zıplamayı önler */
}

.slide-image-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.onboarding-footer {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.dots-container {
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: #ddd;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: #c06035;
    transform: scale(1.2);
}
/* --- PROFİL UYARISI İÇİN MAVİ TEMA --- */
.warning-banner.info-banner {
    background: linear-gradient(to right, #e3f2fd, #f1f8ff);
    border-left: 5px solid #0d47a1;
}

.warning-banner.info-banner .warning-icon {
    font-size: 1.8em; /* İkonu biraz büyüttük */
}

.warning-banner.info-banner strong {
    color: #0d47a1;
}
/* Modern Font ve Arka Plan */
body {
    font-family: 'Poppins', sans-serif !important; /* Yeni font */
    background-color: #f4f6f8; /* Daha yumuşak bir gri-beyaz tonu */
    /* Toprak rengi arka planı sadece üst kısımda tutabiliriz, 
       ama modern app'lerde temiz beyaz/gri arka plan daha ferah durur. */
}

h1, h2, h3, h4 {
    letter-spacing: -0.5px; /* Başlıkları modernleştirir */
    color: #1a1a1a;
}
/* Kartları Modernleştirme */
.lobby-card, .match-card, .player-card, .stat-card, .section-container {
    border: none !important; /* Çizgileri kaldır */
    border-radius: 20px !important; /* Daha yuvarlak köşeler */
    background: #ffffff;
    /* Apple stili yumuşak gölge */
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Karta dokununca hafifçe yukarı kalksın */
.match-card:active, .player-card:active {
    transform: scale(0.98);
}
/* Modern Yüzen Navigasyon */
.bottom-nav {
    position: fixed;
    bottom: 20px; /* Alttan boşluk bırak */
    left: 50%;
    transform: translateX(-50%); /* Ortala */
    width: 90%; /* Ekranın %90'ını kaplasın */
    max-width: 400px;
    height: 70px;
    background: rgba(255, 255, 255, 0.95); /* Hafif şeffaf */
    backdrop-filter: blur(10px); /* Buzlu cam efekti */
    border-radius: 25px; /* Tam yuvarlak köşeler */
    box-shadow: 0 15px 35px rgba(0,0,0,0.15); /* Derin gölge */
    border: 1px solid rgba(255,255,255,0.5);
    padding: 0 10px;
    box-sizing: border-box;
    z-index: 2000;
}

.nav-item {
    color: #b0b0b0; /* Pasif ikon rengi */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Yaylanma efekti */
}

.nav-item.active {
    color: #c06035;
    transform: translateY(-5px); /* Seçilince yukarı zıplasın */
}

.nav-item.active .nav-icon {
    font-size: 24px;
    filter: drop-shadow(0 4px 6px rgba(192, 96, 53, 0.3)); /* İkona gölge ver */
}
/* Modern Butonlar */
button {
    border-radius: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 14px !important;
    padding: 16px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

/* Ana Buton (Giriş vb.) */
.btn-main, .btn-save, .btn-save-profile {
    background: linear-gradient(135deg, #c06035 0%, #ff8c61 100%) !important;
    box-shadow: 0 8px 20px rgba(192, 96, 53, 0.3) !important;
}

button:active {
    transform: scale(0.96); /* Tıklama hissi */
    box-shadow: 0 2px 10px rgba(192, 96, 53, 0.2) !important;
}

/* --- AYLIK/YILLIK ÖZET STİLLERİ --- */
.recap-content {
    max-width: 320px;
    border-radius: 25px !important;
    padding: 30px 20px !important;
    position: relative;
    overflow: hidden;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.recap-stat-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 15px 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.2);
}

.recap-val {
    font-size: 1.8em;
    font-weight: 800;
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.recap-lbl {
    font-size: 0.75em;
    text-transform: uppercase;
    opacity: 0.8;
    letter-spacing: 1px;
}

.recap-photo-thumb {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid white;
    transform: rotate(-5deg);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}
.recap-photo-thumb:nth-child(even) { transform: rotate(5deg); }
/* Maç Detay Sayfası Alt Boşluk Ayarı */
#match-detail-view {
    padding-bottom: 120px !important;
}
/* --- YENİ MODERN SIRALAMA KARTI TASARIMI --- */

.player-card {
    display: flex; /* Yan yana dizilim */
    align-items: center; /* Dikey ortalama */
    background: #fff;
    border-radius: 16px; /* Yuvarlak köşeler */
    padding: 15px;
    margin-bottom: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* Hafif gölge */
    transition: transform 0.2s ease, box-shadow 0.2s;
    border: 1px solid transparent; /* Varsayılan kenarlık */
    position: relative;
    overflow: hidden;
}

.player-card:active {
    transform: scale(0.98);
}

/* İlk 3 için özel kenarlıklar */
.card-gold-border { border-left: 5px solid #ffd700; background: linear-gradient(to right, #fffff0, #fff); }
.card-silver-border { border-left: 5px solid #c0c0c0; }
.card-bronze-border { border-left: 5px solid #cd7f32; }

/* --- SOL TARA (Sıra & Foto) --- */
.leaderboard-left {
    display: flex;
    align-items: center;
    min-width: 90px; /* Sabit genişlik: Kaymayı önler */
}

.leaderboard-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    margin-left: 10px; /* Sıra numarasından uzaklaştır */
}

/* Sıra Numarası Rozetleri */
.rank-badge-gold, .rank-badge-silver, .rank-badge-bronze, .rank-badge-normal {
    font-weight: 800;
    font-size: 0.9em;
    padding: 2px 0;
    width: 30px;
    text-align: center;
}
.rank-badge-gold { color: #d4af37; font-size: 1.1em; } /* Altın Rengi */
.rank-badge-silver { color: #7f8c8d; font-size: 1.1em; }
.rank-badge-bronze { color: #a05a2c; font-size: 1.1em; }
.rank-badge-normal { color: #aaa; font-style: italic; }

/* --- ORTA KISIM (İsim & Detay) --- */
.leaderboard-info {
    flex: 1; /* Kalan boşluğu doldur */
    padding-left: 15px; /* Fotoğraftan uzaklaştır (ÖNEMLİ: Yazı binmesini engeller) */
    overflow: hidden; /* Uzun isimleri kesmek için */
}

.leaderboard-name {
    font-weight: 700;
    color: #333;
    font-size: 1em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* İsim sığmazsa ... koy */
    margin-bottom: 2px;
}

.leaderboard-club {
    font-size: 0.75em;
    color: #666;
    margin-bottom: 2px;
}

.leaderboard-duration {
    font-size: 0.7em;
    color: #999;
}

/* --- SAĞ TARAF (Puan) --- */
.leaderboard-right {
    text-align: right;
    min-width: 70px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
}

.leaderboard-points {
    font-weight: 800;
    color: #c06035; /* Tema rengi */
    font-size: 1.1em;
    margin-bottom: 4px;
}
/* --- YENİ MODERN EN'LER (BESTS) STİLLERİ --- */

.bests-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 Sütun */
    gap: 15px;
    padding-bottom: 20px;
}

.best-card-modern {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
}

.best-card-modern:active {
    transform: scale(0.98);
}

/* Kartın Üst Renkli Kısmı */
.best-card-header {
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: white;
    font-size: 0.8em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Renk Temaları */
.best-accent-gold { background: linear-gradient(135deg, #f1c40f, #f39c12); }
.best-accent-fire { background: linear-gradient(135deg, #ff416c, #ff4b2b); }
.best-accent-green { background: linear-gradient(135deg, #56ab2f, #a8e063); }
.best-accent-blue { background: linear-gradient(135deg, #4b6cb7, #182848); }
.best-accent-gray { background: linear-gradient(135deg, #bdc3c7, #2c3e50); }

.best-card-icon { font-size: 1.4em; }

/* Kartın İçeriği */
.best-card-body {
    padding: 15px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    justify-content: space-between;
}

.best-card-value {
    font-size: 1.1em;
    font-weight: 800;
    color: #333;
    margin-bottom: 10px;
}

/* Oyuncu Bilgisi */
.best-player-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    padding: 5px 10px;
    border-radius: 20px;
    width: 90%;
    justify-content: center;
}

.best-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #ddd;
}

.best-player-name {
    font-size: 0.85em;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
}
/* --- MODERN MEYDAN OKUMA MENU TASARIMI --- */

.challenge-center-wrapper {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.challenge-menu-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

/* Aksiyon Kartları (Menü Öğeleri) */
.action-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid transparent;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.action-card:active { transform: scale(0.98); }

/* Renk Temaları */
.action-card-green { border-left: 5px solid #28a745; }
.action-card-green .action-icon { background: #e8f5e9; color: #28a745; }

.action-card-red { border-left: 5px solid #dc3545; }
.action-card-red .action-icon { background: #fce4ec; color: #dc3545; }

.action-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    flex-shrink: 0;
}

.action-content { flex: 1; }

.action-content h4 {
    margin: 0 0 5px 0;
    font-size: 1.1em;
    color: #333;
    border: none;
    padding: 0;
}

.action-content p {
    margin: 0;
    font-size: 0.85em;
    color: #777;
    line-height: 1.3;
}

.action-arrow {
    font-size: 1.2em;
    color: #ccc;
    font-weight: bold;
}

/* Modern Form Kutusu */
.modern-form-container {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    animation: slideInUp 0.3s ease;
}

.form-header-row {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.form-header-row h4 {
    margin: 0;
    border: none;
    flex: 1;
    text-align: center;
    font-size: 1.2em;
    padding-right: 30px; /* Geri butonu kadar boşluk bırak ki ortalansın */
}

.btn-back-small {
    background: none;
    border: none;
    color: #007bff;
    font-size: 0.9em;
    padding: 0;
    margin: 0;
    width: auto;
    box-shadow: none;
    cursor: pointer;
    font-weight: 600;
}

.form-hint {
    font-size: 0.9em;
    color: #666;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
}
/* --- GENEL MODERN KART TASARIMI (Tüm Sekmeler İçin) --- */

/* Liste Elemanları (Sohbet, Maçlar vb.) */
.modern-list-item {
    background: #fff;
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.02);
    display: flex;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.modern-list-item:active { transform: scale(0.98); }

/* Sol Taraf (Avatar/İkon) */
.list-item-left { margin-right: 15px; position: relative; }
.list-item-avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 2px solid #f8f9fa; }
.list-item-icon { width: 45px; height: 45px; border-radius: 12px; background: #e3f2fd; color: #0d47a1; display: flex; align-items: center; justify-content: center; font-size: 1.5em; }

/* Orta Taraf (Metin) */
.list-item-content { flex: 1; overflow: hidden; }
.list-item-title { font-weight: 700; font-size: 1em; color: #333; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item-subtitle { font-size: 0.85em; color: #777; line-height: 1.3; }

/* Sağ Taraf (Tarih/Durum) */
.list-item-right { text-align: right; min-width: 60px; font-size: 0.75em; color: #999; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; }

/* --- MAÇ KARTLARI (ÖZELLEŞTİRİLMİŞ) --- */
.match-status-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5px;
    display: inline-block;
}
.status-green { background: #e8f5e9; color: #28a745; } /* Oynanıyor */
.status-yellow { background: #fff3cd; color: #856404; } /* Bekliyor */
.status-gray { background: #f8f9fa; color: #6c757d; } /* Bitti */
.status-blue { background: #e3f2fd; color: #0d47a1; } /* Onay */

/* --- İSTATİSTİK KARTLARI --- */
.modern-stat-card {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    margin-bottom: 15px;
}

/* --- PROFİL ALANI --- */
.profile-header-card {
    background: white;
    border-radius: 20px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}
/* --- HABER VE İLAN KARTLARI KÜÇÜLTME & DÜZELTME --- */

/* 1. Kartın dış boşluklarını azaltalım */
.news-card {
    margin-bottom: 12px !important; /* Kartlar arası boşluğu düşürdük */
    border-radius: 12px !important; /* Köşeleri biraz daha keskinleştirdik */
}

/* 2. Kartın Başlık Şeridi (Renkli Kısım) */
.news-header-strip {
    padding: 6px 12px !important; /* Şerit yüksekliğini azalttık */
    font-size: 0.65em !important; /* Yazıyı küçülttük */
}

/* 3. Kartın İçeriği (Gövde) */
.news-body {
    padding: 10px !important; /* İç boşluğu azalttık (Eskisi 18px idi) */
}

/* 4. RESİM BOYUTU SORUNU ÇÖZÜMÜ (En Önemli Kısım) */
/* .news-avatar sınıfına boyut vermediğimiz için resimler devasa çıkıyordu */
.news-avatar {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    object-fit: cover; /* Resmi yuvarlağa sığdır */
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* İkili avatar yapısı (Maç sonuçları için) */
.news-avatars-stack {
    width: 60px !important; /* Genişliği azalttık */
    height: 40px !important;
}

/* 5. İsimlerin Boyutu */
.news-highlight-names {
    font-size: 0.95em !important; /* İsimleri küçülttük */
    margin-left: 10px !important;
    line-height: 1.2 !important;
}

/* 6. Yorum / Açıklama Alanı */
.news-commentary {
    font-size: 0.8em !important; /* Yorum yazısını küçülttük */
    line-height: 1.4 !important;
    padding: 8px !important;
    margin-bottom: 8px !important;
}

/* 7. Aksiyon Butonu (Detay Gör vb.) */
.news-action-btn {
    padding: 6px !important; /* Butonu incelttik */
    font-size: 0.8em !important;
    margin-top: 5px !important;
    border-radius: 6px !important;
}

/* 8. Kaydırma Alanı Yüksekliği */
/* Böylece en az 2.5 kart ekranda görünür */
.lobby-scroll-list {
    max-height: 400px !important; 
    padding: 8px !important;
}

/* Ekstra: İlanlardaki tarih ve bahis rozetini hizalama */
.news-body div[style*="display:flex"] {
    margin-top: 5px !important;
}
/* --- AVATAR DÜZELTMELERİ VE GÜZELLEŞTİRME --- */

/* Avatar Kapsayıcısı: Esnek kutu yapısı */
.news-avatars-stack {
    display: flex !important;
    align-items: center !important;
    width: auto !important; /* Sabit genişliği kaldırdık */
    height: 50px !important;
    position: relative;
    margin-right: 15px; /* İsimlerle araya mesafe */
}

/* Avatar Resimleri: Sabit yuvarlak ve şık */
.news-avatars-stack .news-avatar {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff; /* Beyaz çerçeve ayırıcı görevi görür */
    box-shadow: 0 4px 6px rgba(0,0,0,0.15); /* Hafif gölge */
    background-color: #eee; /* Resim yüklenmezse gri zemin */
}

/* İkinci Resim: İlk resmin hafifçe üzerine biner */
.news-avatars-stack .news-avatar:nth-child(2) {
    margin-left: -18px; /* Sola doğru çekerek üst üste bindirir */
    z-index: 1; /* Üstte kalmasını sağlar */
}

/* Mobilde isimlerin hizalanması */
.news-players-row {
    align-items: center !important;
}
/* --- INSTAGRAM PAYLAŞIM KARTI TASARIMI --- */

/* Paylaşım Kartı Konteyneri (Gizli oluşturulup resim çekilecek) */
#share-card-temp {
    width: 1080px;  /* Instagram Standart Genişlik */
    height: 1920px; /* Instagram Hikaye Yüksekliği (9:16) */
    position: fixed;
    top: -9999px;   /* Ekranda gözükmesin, arkada oluşsun */
    left: -9999px;
    background-color: #f4f6f8;
    z-index: 99999;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
    overflow: hidden;
}

/* 1. DURUM: FOTOĞRAF VARSA (Arka Plan Resimli) */
.share-card-photo-mode {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Resmin üzerine gelen karartma (Yazı okunsun diye) */
.share-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Alttan ve üstten hafif siyah gradyan */
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 20%, rgba(0,0,0,0) 60%, rgba(0,0,0,0.9) 100%);
}

/* 2. DURUM: FOTOĞRAF YOKSA (Ortalanmış Tasarım) */
.share-card-clean-mode {
    width: 100%;
    height: 100%;
    /* Tenis kortu rengi gradyan */
    background: linear-gradient(135deg, #c06035 0%, #8d4020 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* --- ORTAK ELEMANLAR --- */

/* Üst Kısım: Logo ve Link */
.share-header {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 10;
}

.share-logo-img {
    width: 180px;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
    margin-bottom: 20px;
}

.share-link-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 10px 30px;
    border-radius: 50px;
    font-size: 24px;
    font-weight: 600;
    border: 2px solid rgba(255,255,255,0.4);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Alt Kısım: Kazanan ve Skor (Fotoğraf Modu İçin) */
.share-footer-split {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 100%;
    padding: 0 60px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    z-index: 10;
}

.share-winner-box {
    text-align: left;
}
.share-winner-label {
    color: #ffd700; /* Altın rengi */
    font-size: 32px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}
.share-winner-name {
    color: white;
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 4px 10px rgba(0,0,0,0.8);
}

.share-score-box {
    text-align: right;
    background: rgba(0,0,0,0.6); /* Yarı saydam siyah kutu */
    padding: 20px 30px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
}

.share-score-row {
    color: white;
    font-size: 36px;
    font-weight: 600;
    margin: 5px 0;
    display: block;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.share-score-val {
    color: #28a745; /* Yeşil skor rengi */
    font-weight: 800;
    margin-left: 15px;
}

/* Ortalanmış İçerik (Fotoğrafsız Mod İçin) */
.share-center-content {
    text-align: center;
    color: white;
    z-index: 10;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    border: 2px solid rgba(255,255,255,0.2);
    width: 80%;
}
/* --- COMPACT (SIKIŞTIRILMIŞ) LOBİ TASARIMI --- */

/* Kart yerine daha ince satırlar */
.compact-news-row {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s;
}

.compact-news-row:active {
    background-color: #f9f9f9;
}

/* Sol Taraf: İkon veya Küçük Avatar */
.compact-left {
    margin-right: 12px;
    display: flex;
    align-items: center;
}

.compact-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #ddd;
}

/* Orta Taraf: Başlık ve Alt Bilgi */
.compact-mid {
    flex: 1;
    overflow: hidden;
}

.compact-title {
    font-size: 0.9em;
    font-weight: 700;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.compact-subtitle {
    font-size: 0.75em;
    color: #777;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sağ Taraf: Tarih veya Rozet */
.compact-right {
    text-align: right;
    min-width: 60px;
    font-size: 0.7em;
    color: #999;
}

.compact-badge {
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.9em; /* Badge içi yazı */
}

/* Renkler */
.bg-green-light { background: #e8f5e9; color: #28a745; }
.bg-blue-light { background: #e3f2fd; color: #0d47a1; }
.bg-orange-light { background: #fff3e0; color: #e65100; }
.bg-purple-light { background: #f3e5f5; color: #6a1b9a; }
/* Arka Plan Renkleri (Sade Tasarım İçin) */
.bg-gray-light { background: #f8f9fa; color: #6c757d; }
.bg-green-light { background: #e8f5e9; color: #28a745; }
.bg-blue-light { background: #e3f2fd; color: #0d47a1; }
.bg-orange-light { background: #fff3e0; color: #e65100; }
.bg-purple-light { background: #f3e5f5; color: #6a1b9a; }
.bg-red-light { background: #ffebee; color: #c62828; }

/* Modal Detay Stilleri */
#lobby-detail-content {
    text-align: center;
}
.detail-big-icon {
    font-size: 3em;
    margin-bottom: 10px;
}
.detail-players {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
}
.detail-player-box {
    text-align: center;
}
.detail-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 5px;
    border: 3px solid #eee;
}
.detail-vs {
    font-weight: bold;
    color: #ccc;
    font-size: 1.2em;
}
.detail-commentary {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    font-size: 0.9em;
    color: #555;
    line-height: 1.5;
    margin-bottom: 20px;
    border-left: 4px solid #c06035;
    text-align: left;
}
.bg-red-light { background: #ffebee; color: #c62828; }
/* --- ÖZEL TURNUVA AĞACI (BRACKET) STİLLERİ --- */
.custom-bracket-container {
    display: flex;
    overflow-x: auto;
    padding: 20px 10px;
    gap: 30px;
    background: #f8f9fa;
    border-radius: 16px;
    border: 1px solid #e9ecef;
    -webkit-overflow-scrolling: touch;
    min-height: 250px;
}

.bracket-round {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 15px;
    min-width: 180px;
}

.round-header {
    text-align: center;
    font-weight: 800;
    color: #c06035;
    margin-bottom: 10px;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bracket-match {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.bracket-match:active {
    transform: scale(0.98);
}

.match-player {
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    font-size: 0.85em;
    color: #555;
}

.match-player:last-child {
    border-bottom: none;
}

.player-winner {
    font-weight: bold;
    color: #333;
    background-color: #f0fdf4; /* Hafif yeşil zemin */
}

.player-winner span:last-child {
    color: #28a745;
    font-weight: 800;
}

/* Çizgiler için hazırlık (İleride ::after/::before ile bağlayacağız) */
.bracket-match::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 50%;
    width: 15px;
    height: 2px;
    background-color: #ccc;
    display: none; /* Şimdilik gizli, JS ile aktif edeceğiz */
}
/* Alt menünün içeriğin üstüne binmesini engeller */
.tab-section {
    padding-bottom: 110px !important; 
}