/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Roboto+Mono:wght@500&display=swap');

/* --- CSS Değişkenleri (Renk Paleti ve Temel Ayarlar) --- */
:root {
    --bg-main: #f0f2f5;
    --bg-card: #ffffff;
    --bg-header: #1f2937;
    --border-color: #e5e7eb;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-light: #f9fafb;
    --primary-accent: #ef4444; /* Kırmızı Kep Kırmızısı */
    --secondary-accent: #3b82f6; /* Mavi */
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --font-sans: 'Poppins', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -2px rgb(0 0 0 / 0.1);
    --rarity-sıradan: #9ca3af;
    --rarity-sıradışı: #22c55e;
    --rarity-nadir: #3b82f6;
    --rarity-epik: #8b5cf6;
    --rarity-efsanevi: #f97316;
}

/* --- Genel Sıfırlama ve Body Stilleri --- */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    margin: 0;
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Yükleme Ekranı --- */
.loading-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: var(--bg-main);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}
.loading-overlay:not(.show) {
    opacity: 0;
    pointer-events: none;
}
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--primary-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
.loading-overlay p {
    margin-top: 15px;
    font-weight: 500;
    color: var(--text-secondary);
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- Header --- */
header {
    background-color: var(--bg-header);
    padding: 15px 0;
    box-shadow: var(--shadow-md);
    position: sticky; /* Sayfa kaydırılınca üstte sabit kalır */
    top: 0;
    z-index: 1000;
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
}
.last-updated {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Arama Çubuğu */
.search-bar {
    position: relative;
    width: 40%;
}
#search-input {
    width: 100%;
    padding: 10px 15px 10px 40px; /* Sol boşluk ikon için */
    border-radius: 20px;
    border: 2px solid transparent;
    background-color: #374151;
    color: var(--text-light);
    font-size: 1rem;
    transition: background-color 0.2s, border-color 0.2s;
}
#search-input::placeholder { color: #9ca3af; }
#search-input:focus {
    outline: none;
    background-color: #4b5563;
    border-color: var(--primary-accent);
}
.search-bar::before {
    content: '\f002'; /* Font Awesome search icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}
#search-results {
    position: absolute;
    top: 110%;
    left: 0;
    width: 100%;
    background-color: var(--bg-card);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1001;
    display: none; /* JS ile gösterilecek */
}
.search-result-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background-color: var(--bg-main); }
.search-result-item .trade-id { font-size: 0.8rem; color: var(--text-secondary); margin-left: 8px; }

/* --- Ana İçerik --- */
main.container {
    padding-top: 30px;
    padding-bottom: 30px;
}
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

/* Genel Kart Stilleri (İstatistik ve Liderlik için) */
.stat-card, .leaderboard-card {
    background-color: var(--bg-card);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
}

.stat-card {
    text-align: center;
}
.stat-card h3 {
    margin: 0 0 10px 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
}
.stat-card h3 .fas { margin-right: 8px; }
.stat-card p {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-accent);
    font-family: var(--font-mono);
}

.leaderboard-card {
    grid-column: span 1; /* Varsayılan */
}
.leaderboard-card h4 {
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.1rem;
}
.leaderboard-card h4 .fas { margin-right: 8px; color: var(--secondary-accent); }
.leaderboard-card ul { list-style: none; padding: 0; margin: 0; flex-grow: 1;}
.leaderboard-card li {
    display: flex;
    align-items: center;
    padding: 10px 10px;
    border-bottom: 1px solid #f3f4f6; /* Çok yumuşak ayırıcı */
    cursor: pointer;
    transition: background-color 0.2s;
    border-radius: 4px;
}
.leaderboard-card li:last-child { border-bottom: none; }
.leaderboard-card li:hover { background-color: var(--bg-main); }
.leaderboard-card li .rank { font-weight: 700; color: var(--text-secondary); min-width: 30px; text-align: center; }
.leaderboard-card li .name { flex-grow: 1; margin: 0 10px; font-weight: 500; }
.leaderboard-card li .score { font-weight: 600; color: var(--primary-accent); font-family: var(--font-mono); }


@media (min-width: 1280px) {
    #points-leaderboard, #quiz-leaderboard, #richest-leaderboard {
        grid-column: span 1;
    }
    #shop-listings-card {
        grid-column: 1 / -1; /* Geniş ekranlarda tam genişlik kaplar */
    }
}

/* YENİ: Mağaza Vitrini Stilleri */
#shop-listings-card .shop-list-public {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.shop-item-public {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: var(--bg-main);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.shop-item-public:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.shop-item-public .item-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    margin-right: 12px;
}
.shop-item-public .item-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.shop-item-public .item-info {
    flex-grow: 1;
}

.shop-item-public .item-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}

.shop-item-public .item-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--success-color);
}

.shop-item-public .item-stock {
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.shop-item-public .item-stock.unlimited {
    color: var(--success-color);
}
.shop-item-public .item-stock.limited {
    color: var(--warning-color);
    font-weight: 600;
}
.shop-item-public .item-stock.sold-out {
    color: var(--primary-accent);
    font-weight: 600;
}

/* --- Oyuncu Profili ve Eşya Detay Modalı --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: none; /* JS ile 'flex' yapılacak */
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
    overflow-y: auto;
}
.modal-content {
    background-color: var(--bg-card);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 900px; /* Profil modalı için genişlik */
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.modal-overlay.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-close-btn {
    position: absolute;
    top: 10px; right: 15px;
    background: none; border: none;
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
    z-index: 10;
}
.modal-close-btn:hover { color: var(--text-primary); }

#profile-content { padding: 30px; }


/* ============================================= */
/* ====== PROFİL MODALI SEKMELERİ VE İÇERİĞİ ====== */
/* ============================================= */
.profile-container { padding: 20px; }
.profile-header { display: flex; align-items: center; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border-color); }
.profile-avatar { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg-card); box-shadow: var(--shadow-md); }
.profile-main-info h1 { margin: 0; font-size: 1.8rem; color: var(--text-primary); }
.profile-main-info h2 { margin: 0; font-size: 1.2rem; font-weight: 500; color: var(--text-secondary); }
.profile-meta {margin-top: 10px;display: flex;gap: 15px;font-size: 1.05rem;}
.profile-meta .score { color: var(--primary-accent); font-weight: 700; }
.profile-tabs { display: flex; border-bottom: 1px solid var(--border-color); margin: 20px 0; }
.tab-link { padding: 10px 20px; cursor: pointer; border: none; background: none; font-size: 1rem; font-weight: 500; color: var(--text-secondary); border-bottom: 3px solid transparent; transition: color 0.2s, border-color 0.2s; }
.tab-link:hover { color: var(--text-primary); }
.tab-link.active { color: var(--primary-accent); border-bottom-color: var(--primary-accent); }
.profile-content-area .tab-content { display: none; animation: fadeIn 0.5s ease; }
.profile-content-area .tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Diğer Tab Stilleri (Envanter, Başarımlar, Pro Info vb.) buraya gelecek... */

/* ============================================= */
/* ====== YENİ: EŞYA DETAY MODALI STİLLERİ ====== */
/* ============================================= */

#item-detail-modal .modal-content {
    max-width: 500px; /* Eşya detayı için daha dar bir modal */
    padding: 0;
    overflow: hidden; /* Kenarlık rengi için */
    border-left: 5px solid transparent; /* Nadirlik rengi için yer */
    transition: border-color 0.3s ease;
}

/* Modal içeriğine nadirlik rengini uygulama */
#item-detail-modal .rarity-sıradan { border-left-color: var(--rarity-sıradan); }
#item-detail-modal .rarity-sıradışı { border-left-color: var(--rarity-sıradışı); }
#item-detail-modal .rarity-nadir { border-left-color: var(--rarity-nadir); }
#item-detail-modal .rarity-epik { border-left-color: var(--rarity-epik); }
#item-detail-modal .rarity-efsanevi { border-left-color: var(--rarity-efsanevi); }


/* market-style.css'den alınan ve adapte edilen tooltip stilleri */
#item-detail-content .item-detail-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    gap: 15px;
    background-color: #f9fafb;
    border-bottom: 1px solid var(--border-color);
}
#item-detail-content .item-detail-icon {
    flex-shrink: 0;
    width: 60px; height: 60px;
}
#item-detail-content .item-detail-icon img {
    width: 100%; height: 100%; object-fit: contain;
}
#item-detail-content .item-detail-title-group { flex-grow: 1; }
#item-detail-content .item-detail-name {
    font-size: 1.3rem; font-weight: 700; color: var(--text-primary); margin: 0;
}
/* Nadirlik rengini isme uygulama */
#item-detail-name.rarity-sıradan { color: var(--rarity-sıradan); }
#item-detail-name.rarity-sıradışı { color: var(--rarity-sıradışı); }
#item-detail-name.rarity-nadir { color: var(--rarity-nadir); }
#item-detail-name.rarity-epik { color: var(--rarity-epik); }
#item-detail-name.rarity-efsanevi { color: var(--rarity-efsanevi); }

#item-detail-content .item-detail-id {
    font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-secondary); margin: 0;
}
#item-detail-content .item-detail-body { padding: 20px; }
#item-detail-content .item-detail-description {
    font-style: italic; color: #64748b; margin: 0 0 15px 0; padding-bottom: 15px;
    border-bottom: 1px dashed var(--border-color);
}
#item-detail-content .item-detail-attributes {
    display: flex; justify-content: space-around; margin-bottom: 15px; font-weight: 500;
}
#item-detail-content .attr-yes { color: var(--success-color); }
#item-detail-content .attr-no { color: var(--primary-accent); }
#item-detail-content .item-detail-attributes .fas {margin-right: 5px;}

#item-detail-content .item-detail-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed var(--border-color);
    max-height: 350px;
    overflow-y: auto;
}
#item-detail-content .item-detail-section h4 {
    margin: 0 0 10px 0; font-size: 1rem; color: var(--text-primary);
    display: flex; align-items: center;
}
#item-detail-content .item-detail-section h4 .fas {
    color: var(--secondary-accent); margin-right: 8px;
}
#item-detail-content .item-detail-bonus {
    display: flex; align-items: center; gap: 8px; font-size: 0.95rem;
    background-color: #f8fafc; padding: 8px 12px; border-radius: 6px;
}
#item-detail-content .item-detail-bonus:not(:last-child) { margin-bottom: 8px; }
#item-detail-content .item-detail-bonus .fas { color: var(--secondary-accent); width: 16px; text-align: center; }

#item-detail-content .level-list {
    display: flex; flex-direction: column; gap: 8px;
}
#item-detail-content .level-entry {
    position: relative; overflow: hidden; display: flex; align-items: flex-start; gap: 10px;
    padding: 10px; background-color: #f8fafc; border-radius: 6px; border-left: 3px solid var(--secondary-accent);
    background-size: contain; background-repeat: no-repeat; background-position: center right 15px;
}
#item-detail-content .level-entry::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(248, 250, 252, 0.8); z-index: 1;
}
#item-detail-content .level-indicator, #item-detail-content .level-bonuses {
    position: relative; z-index: 2;
}
#item-detail-content .level-indicator {
    background-color: var(--secondary-accent); color: white; font-weight: bold;
    font-size: 0.8rem; padding: 3px 8px; border-radius: 4px; flex-shrink: 0; margin-top: 2px;
}
#item-detail-content .level-bonuses {
    display: flex; flex-direction: column; gap: 6px; flex-grow: 1;
}
#item-detail-content .level-bonus {
    display: flex; align-items: center; gap: 8px; font-size: 0.9rem;
}
#item-detail-content .level-bonus.milestone {
    margin-top: 6px; padding-top: 6px; border-top: 1px dashed rgba(245, 158, 11, 0.5);
    color: var(--warning-color);
}
#item-detail-content .level-bonus.milestone .fas,
#item-detail-content .level-bonus .fas { color: inherit; }
#item-detail-content .max-level-info {
    text-align: center; font-size: 0.8rem; font-style: italic; color: var(--text-secondary); margin-top: 12px;
}


.inventory-bonus-summary-profile { margin-bottom: 20px; padding: 15px; background-color: #eef2ff; border: 1px solid #c7d2fe; border-radius: 8px; }
.inventory-bonus-summary-profile h5 { margin-top: 0; margin-bottom: 10px; color: #4338ca; font-size: 1rem; font-weight: 600; }
.inventory-bonus-summary-profile h5 .fas { margin-right: 8px; }
.inventory-bonus-summary-profile p { margin: 4px 0; font-size: 0.9rem; color: #312e81; }
.inventory-bonus-summary-profile strong { font-weight: 700; color: var(--success-color); }

.inventory-grid-profile { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; background-color: var(--bg-main); border-radius: 6px; border: 1px solid var(--border-color); min-height: 60px; }
.inventory-item-profile { position: relative; width: 52px; height: 52px; flex-shrink: 0; background-color: var(--bg-card); border: 1px solid var(--border-color); border-radius: 6px; display: flex; align-items: center; justify-content: center; cursor: help; transition: transform 0.2s, box-shadow 0.2s; }
.inventory-item-profile:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.inventory-item-profile img { width: 44px; height: 44px; object-fit: contain; }
.inventory-item-profile span { position: absolute; bottom: 2px; right: 2px; background-color: rgba(0, 0, 0, 0.75); color: #fff; font-size: 0.75rem; font-weight: 600; padding: 1px 5px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.7); }

/* Pro Bilgileri Alanı Grid Düzeni */
.pro-info-grid {
    display: grid;
    /* Varsayılan olarak (mobil için) tek sütunlu, bu sayede alt alta gelirler */
    grid-template-columns: 1fr; 
    gap: 30px; 
}

/* Daha geniş ekranlarda (örn: 768px ve üzeri) iki sütunlu düzene geç */
@media (min-width: 768px) {
    .pro-info-grid {
        /* Sol tarafı (1.5fr) sağ taraftan (1fr) daha geniş yap. */
        /* Bu oranı 2fr 1fr gibi değiştirerek farkı artırabilirsiniz. */
        grid-template-columns: 1.5fr 0.5fr;
    }
}

/* Başlık stilleri değişmeden kalabilir */
.pro-info-left h3, .pro-info-right h3 { 
    margin-top: 0; 
    font-size: 1.2rem; 
    color: var(--text-primary); 
    padding-bottom: 10px; 
    border-bottom: 1px solid var(--border-color); 
}
.info-line {display: flex;justify-content: space-between;align-items: center;padding: 5px 0;border-bottom: 1px solid #f3f4f6;font-size: 0.95rem;}
.info-line:last-child { border-bottom: none; }
.info-line strong {color: var(--text-secondary);flex-basis: 40%;flex-shrink: 0;}
.info-line span { text-align: right; flex-basis: 60%; font-weight: 500; display: flex; align-items: center; justify-content: flex-end; }
.info-line .badge-preview-icon { margin-right: 5px;}

/* Ortak Stiller (Pro Bilgileri & Başarımlar) */
.tooltip-field-container { width: 100%; }
.tooltip-field-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.tooltip-field-header .field-title { font-weight: bold; color: var(--text-secondary); }
.tooltip-awards-container { display: flex; gap: 8px; font-size: 1.1rem; }
.tooltip-mini-field {width: 100%;max-width: 200px;margin: 0 auto;aspect-ratio: 7 / 10;background-color: #22c55e;border: 2px solid var(--bg-card);border-radius: 6px;position: relative;box-shadow: inset 0 0 8px rgba(0,0,0,0.2);}
.tooltip-position-zone { position: absolute; transform: translate(-50%, -50%); background-color: rgba(0,0,0,0.6); color: #fff; border: 1px solid rgba(255,255,255,0.4); border-radius: 4px; padding: 2px 5px; font-size: 0.75rem; font-weight: bold; }
.tooltip-position-zone.selected { background-color: var(--primary-accent); color: var(--text-light); border-color: #fff; }
.tooltip-rank-progress-container { margin-top: 15px; text-align: center; }
.rank-icon-large-tooltip { width: 64px; height: 64px; object-fit: contain; margin-bottom: 5px; }
.rank-name-tooltip { font-size: 1.1rem; font-weight: 600; color: var(--primary-accent); }
.xp-progress-bar-container { background-color: var(--border-color); border-radius: 10px; padding: 3px; border: 1px solid #d1d5db; margin: 8px 0; position: relative; height: 20px; }
.xp-progress-bar { background: linear-gradient(90deg, #3b82f6, #60a5fa); height: 100%; border-radius: 8px; }
.xp-progress-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: var(--text-light); font-size: 0.8rem; font-weight: bold; text-shadow: 1px 1px 2px rgba(0,0,0,0.4); }
.xp-to-next-text { font-size: 0.8rem; color: var(--text-secondary); font-style: italic; }
.star-rating-css { display: inline-flex; vertical-align: middle; }
.star-container { position: relative; display: inline-block; font-size: 1.1em; margin-right: 2px; color: #ccc; }
.star-foreground { position: absolute; top: 0; left: 0; height: 100%; overflow: hidden; color: #ffc107; white-space: nowrap; }
.star-background-icon, .star-foreground-icon { display: block; }

/* Başarım Sekmesi */
.tooltip-badge-showcase.museum-style { padding: 8px; border: 1px solid var(--border-color); background-color: #f9fafb; border-radius: 5px; max-height: 400px; overflow-y: auto; }
.museum-badge-item { display: flex; flex-direction: column; align-items: stretch; background-color: var(--bg-card); border-radius: 4px; padding: 8px; margin-bottom: 8px; border: 1px solid var(--border-color); cursor: help; }
.badge-item-top-content { display: flex; align-items: center; margin-bottom: 6px; }
.badge-image-container { flex-shrink: 0; margin-right: 10px; }
.badge-icon-large { width: 40px; height: 40px; object-fit: contain; border-radius: 4px; background-color: rgba(0,0,0,0.03); padding: 3px; border: 1px solid #e5e7eb; }
.badge-details-container { flex-grow: 1; }
.badge-name { font-size: 0.9em; font-weight: 600; color: var(--text-primary); margin: 0; }
.badge-date { font-size: 0.75em; color: var(--text-secondary); margin: 0; }
.badge-rarity-bar-container { width: 100%; height: 14px; background-color: #e5e7eb; border-radius: 6px; position: relative; overflow: hidden; border: 1px solid #d1d5db; }
.badge-rarity-bar { height: 100%; background: linear-gradient(to right, #60a5fa, #3b82f6); border-radius: 6px; }
.rarity-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 0.7em; color: var(--text-primary); font-weight: 500; }
.badge-icon-large.rare-badge-glow { border-color: #f59e0b; box-shadow: 0 0 8px 2px rgba(251, 146, 60, 0.5); }
.museum-badge-item.contains-rare-badge { background-color: #fffbeb; border-color: #fde68a; }

/* XP Geçmişi Tooltip (Gizli) */
.xp-history-tooltip { position: fixed; z-index: 2002; background-color: var(--bg-card); color: var(--text-primary); border: 1px solid var(--secondary-accent); border-radius: 8px; padding: 12px 15px; font-size: 0.85rem; box-shadow: var(--shadow-lg); max-width: 350px; display: none; }
.xp-history-header h4 { margin: 0 0 8px 0; padding-bottom: 8px; border-bottom: 1px solid var(--border-color); text-align: center; color: var(--secondary-accent); }
.xp-history-list { list-style: none; padding: 0; margin: 0; max-height: 250px; overflow-y: auto; }
.xp-history-item { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; border-bottom: 1px dotted var(--border-color); }
.xp-history-item:last-child { border-bottom: none; }
.xp-history-item .xp-reason { flex-grow: 1; margin-right: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xp-history-item .xp-amount { font-weight: bold; color: var(--success-color); }
.xp-history-item .xp-date { font-size: 0.8em; color: var(--text-secondary); margin-left: 10px; }

/* EA Stats Tab Stilleri */
.ea-stats-tab-container { padding: 10px 0; }
.ea-stats-club-selector { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid var(--border-color); }
.ea-club-select-btn { padding: 6px 12px; font-size: 0.9rem; background-color: #e5e7eb; color: var(--text-secondary); border: 1px solid #d1d5db; border-radius: 15px; cursor: pointer; transition: all 0.2s; }
.ea-club-select-btn:hover { background-color: #d1d5db; color: var(--text-primary); }
.ea-club-select-btn.active { background-color: var(--primary-accent); color: #fff; border-color: var(--primary-accent); font-weight: 600; }
.ea-stats-columns-wrapper {display: grid;grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));gap: 20px;}
.ea-stats-column { background-color: #f9fafb; padding: 15px; border-radius: 6px; border: 1px solid var(--border-color); }
.ea-stats-title { font-weight: 600; color: var(--text-primary); margin: 0 0 10px 0; font-size: 1.1rem; padding-bottom: 8px; border-bottom: 1px solid var(--border-color); }
.ea-stats-item { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 5px; }
.ea-stats-item span:first-child { color: var(--text-secondary); }
.ea-stats-item span:last-child { font-weight: 500; color: var(--text-primary); }
.stat-career { color: var(--text-secondary); }
.stat-separator { margin: 0 5px; }
.stat-club { font-weight: 600; color: var(--text-primary); }

/* Scout Detay Tooltip Stili (Açık Tema) */
.scout-detail-tooltip {
    position: absolute; /* fixed yerine absolute, scroll ile hareket etmesi için */
    z-index: 2002; 
    background-color: var(--bg-card);
    color: var(--text-primary); 
    border: 1px solid var(--secondary-accent);
    border-radius: 8px; 
    padding: 12px; 
    font-size: 0.9em;
    box-shadow: var(--shadow-lg); 
    max-width: 320px; /* Genişliği biraz artırabiliriz */
    display: none;
    /* --- YENİ EKLENEN STILLER --- */
    max-height: 300px; /* Maksimum yükseklik, bu değeri geçince scrollbar çıkar */
    overflow-y: auto;  /* Dikeyde taşarsa scrollbar göster */
}
.scout-detail-header { 
    margin: 0 0 10px 0; /* Üst margini sıfırla */
    padding-bottom: 5px; 
    border-bottom: 1px solid var(--border-color); 
    text-align: center; 
    position: sticky; /* <<< YENİ: Başlığın kaydırılırken üstte sabit kalması için */
    top: -12px;       /* <<< YENİ: Padding kadar yukarıda başlasın */
    background-color: var(--bg-card); /* <<< YENİ: Alttaki içeriği gizlemek için */
    z-index: 1;       /* <<< YENİ: Diğer içeriğin üzerinde kalsın */
}
.scout-detail-header h4 { 
    margin: 0; 
    color: var(--primary-accent); 
    font-size: 1.1em; 
}
.scout-detail-list { list-style: none; padding: 0; margin: 0; }
.scout-detail-item { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; border-bottom: 1px dotted #f3f4f6; }
.scout-detail-item:last-child { border-bottom: none; }
.scout-name { font-weight: bold; color: var(--secondary-accent); flex-grow: 1; margin-right: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scout-points { font-weight: bold; color: var(--success-color); flex-shrink: 0; margin-left: 8px; }
.scout-date { font-size: 0.75em; color: var(--text-secondary); flex-shrink: 0; margin-left: 8px; }

/* Tek Bir İstatistik Satırı (örn: Maç: 100 | 200) */
.ea-stats-item {
    display: flex;
    justify-content: space-between; /* Etiket sola, değerler sağa */
    align-items: baseline; /* Düzgün hizalama */
    font-size: 0.9rem; /* Genel font boyutu */
    margin-bottom: 5px; /* Satırlar arası boşluk */
}

/* İstatistik Etiketi (örn: Maç:, Gol:) */
.ea-stats-item span:first-child {
    color: var(--text-secondary); /* Etiketler için ikincil renk */
    margin-right: 0px; /* Değerden biraz boşluk */
    flex-shrink: 0; /* Etiket daralmasın */
}

/* İstatistik Değerlerini Saran Span */
.ea-stats-item > span:last-child {
    display: flex; /* Kariyer ve Kulüp span'larını yan yana getirmek için */
    justify-content: flex-end; /* Değerleri sağa yasla */
    align-items: baseline;
    text-align: right; /* İçindeki span'lar için de genel hizalama */
    font-family: var(--font-mono); /* Sayılar için mono font */
}

/* Kariyer İstatistiği Değeri */
.ea-stats-item .stat-career {
    display: inline-block;
    color: var(--text-secondary); /* Kariyer istatistiğini daha soluk yap */
    min-width: 35px; /* Sayıların sığması için */
    text-align: right;
    font-weight: 500;
}

/* Kulüp İstatistiği Değeri */
.ea-stats-item .stat-club {
    display: inline-block;
    color: var(--text-primary); /* Kulüp istatistiğini daha belirgin yap */
    min-width: 35px;
    text-align: right;
    font-weight: 700; /* Daha kalın */
}

/* Ayırıcı (|) */
.ea-stats-item .stat-separator {
    color: var(--border-color); /* Ayırıcı için çerçeve rengi */
    margin: 0 4px; /* Sağdan ve soldan boşluk */
    font-weight: 400; /* Normal kalınlık */
}

/* İki özet kutusunu yan yana sarmak için bir konteyner */
.inventory-summary-container {
    display: flex;
    gap: 20px; /* Kutular arası boşluk */
    margin-bottom: 20px;
}

/* Mevcut bonus özetini ve yeni değer özetini esnek hale getiriyoruz */
.inventory-bonus-summary-profile,
.inventory-value-summary-profile {
    flex: 1; /* Mevcut alanı eşit olarak paylaşsınlar */
    padding: 15px;
    border-radius: 8px;
}

/* Mevcut bonus özeti stilinde küçük bir düzenleme */
.inventory-bonus-summary-profile {
    background-color: #eef2ff; /* Mavi tonu */
    border: 1px solid #c7d2fe;
}
.inventory-bonus-summary-profile h5 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #4338ca;
    font-size: 1rem;
    font-weight: 600;
}
.inventory-bonus-summary-profile h5 .fas { margin-right: 8px; }
.inventory-bonus-summary-profile p { margin: 4px 0; font-size: 0.9rem; color: #312e81; }
.inventory-bonus-summary-profile strong { font-weight: 700; color: #166534; } /* Başarı yeşili */

/* Yeni Envanter Değeri Özeti Kutusu Stili */
.inventory-value-summary-profile {
    background-color: #fffbeb; /* Sarı tonu */
    border: 1px solid #fde68a;
}
.inventory-value-summary-profile h5 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #b45309; /* Koyu sarı */
    font-size: 1rem;
    font-weight: 600;
}
.inventory-value-summary-profile h5 .fas { margin-right: 8px; }
.inventory-value-summary-profile .summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin: 4px 0;
    padding: 4px 0;
    border-bottom: 1px dotted #fcd34d;
}
.inventory-value-summary-profile .summary-line:last-child {
    border-bottom: none;
}
.inventory-value-summary-profile .summary-line span {
    color: #78350f; /* Daha koyu sarı */
}
.inventory-value-summary-profile .summary-line strong {
    font-weight: 700;
    font-family: var(--font-mono); /* Sayılar için mono font */
    color: var(--primary-accent); /* Kırmızı Kep kırmızısı */
}



/* Üyelik Bilgi Kartı - Genel Kapsayıcı */
.profile-membership-card {
    margin-left: auto;
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    border-left-width: 5px; /* Sol kenarlık kalınlığı */
    min-width: 314px; /* Biraz daha genişletelim */
}

/* Aktif Üye Kartı Stilleri */
.profile-membership-card.status-aktif {
    background-color: #f0fdf4; /* Hafif yeşil arka plan */
    border-color: #bbf7d0;
}
/* Pasif Üye Kartı Stilleri */
.profile-membership-card.status-pasif {
    background-color: #fef2f2; /* Hafif kırmızı arka plan */
    border-color: #fecaca;
    opacity: 0.8; /* Biraz soluk gösterelim */
}

/* Seviyeye göre kenarlık renkleri (hem aktif hem pasif için) */
.profile-membership-card.rarity-bronz { border-left-color: #cd7f32; }
.profile-membership-card.rarity-gümüş { border-left-color: #c0c0c0; }
.profile-membership-card.rarity-altın { border-left-color: #ffd700; }
.profile-membership-card.rarity-platin { border-left-color: #007bff; }
/* Diğer seviyeler için... */

/* Üyelik İkonu (Yıldız yerine resim) */
.membership-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    margin-right: 12px;
}
.membership-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Resmin orantısını koru */
}

/* Detaylar Bölümü */
.membership-details {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 2px; /* Satırlar arası boşluk */
}

/* Seviye ve Durumun olduğu üst satır */
.membership-title-line {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.membership-level {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}
.membership-status {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}
/* Duruma göre etiket renkleri */
.membership-status.status-aktif {
    background-color: var(--success-color);
    color: white;
}
.membership-status.status-pasif {
    background-color: var(--primary-accent);
    color: white;
}

/* Toplam Üyelik Süresi */
.membership-duration {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}
.membership-duration .fas {
    margin-right: 4px;
}

/* Bilgi Satırları (Toplam Süre, Mevcut Seviye, Son Güncelleme) */
.membership-info-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.membership-info-line span {
    display: flex;
    align-items: center;
}
.membership-info-line i.fas {
    margin-right: 6px;
    width: 12px; /* İkonların hizalı durması için */
    text-align: center;
}
.membership-info-line strong {
    font-weight: 600;
    font-family: var(--font-mono);
    color: var(--text-primary);
}


/* Mevcut .profile-header stiliniz aynı kalabilir */
.profile-header {
    align-items: stretch;
}

.inventory-item-clickable {
    cursor: pointer; /* Fare imlecini el işareti yap */
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; /* Geçiş efektini zenginleştir */
}

.inventory-item-clickable:hover {
    transform: translateY(-2px) scale(1.05); /* Biraz daha belirgin bir hover efekti */
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-accent); /* Tıklanabilirliği vurgulamak için mavi kenarlık */
}

.shop-item-public.rarity-siradan {
    background-color: #f9fafb; /* Çok hafif gri */
    border-left: 4px solid var(--rarity-sıradan);
}
.shop-item-public.rarity-siradisi {
    background-color: #f0fdf4; /* Çok hafif yeşil */
    border-left: 4px solid var(--rarity-sıradışı);
}
.shop-item-public.rarity-nadir {
    background-color: #eff6ff; /* Çok hafif mavi */
    border-left: 4px solid var(--rarity-nadir);
}
.shop-item-public.rarity-epik {
    background-color: #f5f3ff; /* Çok hafif mor */
    border-left: 4px solid var(--rarity-epik);
}
.shop-item-public.rarity-efsanevi {
    background-color: #fffbeb; /* Çok hafif turuncu/sarı */
    border-left: 4px solid var(--rarity-efsanevi);
}

/* Hover efektini biraz daha belirgin hale getirelim */
.shop-item-public:hover {
    transform: translateY(-3px) scale(1.02); /* Hafifçe büyüsün */
    box-shadow: var(--shadow-md);
}

/* Başlık ve kontrolleri yan yana getiren kapsayıcı */
.card-header-with-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}
/* Ana h4 başlığının altındaki boşluğu kaldıralım */
.card-header-with-controls h4 {
    margin: 0;
    padding: 0;
    border: none;
}

/* Sıralama menüsü stilleri */
.sort-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}
.sort-controls label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}
#shop-sort-select {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-main);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    cursor: pointer;
}
#shop-sort-select:focus {
    outline: none;
    border-color: var(--secondary-accent);
}

/* İki küçük stat kartını yan yana gruplamak için */
.stat-card-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}
/* İçindeki stat kartlarının padding'ini sıfırlayalım ki grup padding'i geçerli olsun */
.stat-card-group .stat-card {
    padding: 20px; /* Padding'i tekrar verelim */
}

/* Tıklanabilir stat kartı stili */
.clickable-card {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: linear-gradient(135deg, #28a745, #218838); /* Yeşil gradient */
}
.clickable-card h3 {
    color: rgba(255, 255, 255, 0.9);
}
.clickable-card p {
    color: #ffffff;
}
.clickable-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Modal stilleri */
.modal-content.large-modal { max-width: 1000px; }
.modal-content.x-large-modal { max-width: 1200px; }

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}
.modal-header h4 {
    margin: 0;
    font-size: 1.3rem;
}
.modal-body {
    padding: 20px;
}

/* Maç Arşivi Filtreleri */
.match-archive-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}
.match-archive-filters select,
.match-archive-filters input[type="date"] {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-main);
    font-size: 0.9rem;
}

/* Maç Arşivi Listesi */
#match-archive-list-container {
    max-height: 60vh;
    overflow-y: auto;
}
.match-archive-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background-color 0.2s;
}
.match-archive-item:hover { background-color: var(--bg-main); }
.match-result-indicator {
    width: 8px;
    height: 60px;
    border-radius: 4px;
    margin-right: 15px;
}
.match-result-indicator.win { background-color: var(--success-color); }
.match-result-indicator.loss { background-color: var(--primary-accent); }
.match-result-indicator.draw { background-color: var(--text-secondary); }

.match-info-main { flex-grow: 1; }
.match-teams { font-size: 1.1rem; font-weight: 600; }
.match-score { font-size: 1.3rem; font-weight: 700; margin: 0 10px; font-family: var(--font-mono); }
.match-meta { font-size: 0.85rem; color: var(--text-secondary); }

/* Maç Detayları Modalı */
#match-details-content { padding: 20px; }
.match-summary-header { text-align: center; margin-bottom: 20px; }
.match-summary-header .match-teams { font-size: 1.5rem; }
.match-summary-header .match-score { font-size: 2.5rem; }
.match-details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.team-stats-table { width: 100%; border-collapse: collapse; }
.team-stats-table th, .team-stats-table td { padding: 8px; text-align: left; border-bottom: 1px solid var(--border-color); }
.team-stats-table th { font-weight: 600; }
.team-stats-table th[data-sort-key] { cursor: pointer; }
.team-stats-table th .fas { margin-left: 5px; color: var(--text-secondary); }
.team-stats-table .mom-icon { color: var(--warning-color); }

/* Maç Arşivi Listesi - Gelişmiş Görünüm */
.match-archive-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto; /* Tarih | Fikstür | Sonuç | Tip */
    gap: 15px;
    align-items: center;
    border: none;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    margin-bottom: 0;
    padding: 12px 8px;
}
.match-archive-item:last-child {
    border-bottom: none;
}
.mai-date { font-size: 0.8rem; color: var(--text-secondary); }
.mai-fixture { display: flex; align-items: center; justify-content: center; }
.mai-team { text-align: right; flex: 1; font-weight: 500; }
.mai-team.away-team { text-align: left; }
.mai-team.my-team .team-name-archive {font-weight: 700;color: #447fef;}
.mai-score { font-size: 1.2rem; font-weight: 700; font-family: var(--font-mono); margin: 0 15px; }
.mai-result {
    width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    color: white; font-weight: 700; font-size: 0.8rem;
}
.mai-result.win { background-color: var(--success-color); }
.mai-result.loss { background-color: var(--primary-accent); }
.mai-result.draw { background-color: var(--text-secondary); }
.mai-type {
    /* Mevcut stilleriniz aynı kalabilir */
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    background-color: var(--bg-main);
    padding: 3px 8px;
    border-radius: 4px;
    
    /* --- YENİ EKLENEN STILLER --- */
    display: flex;             /* 1. Flexbox'ı aktif et */
    align-items: center;       /* 2. Dikeyde ortala */
    justify-content: center;   /* 3. Yatayda ortala */
    white-space: nowrap;       /* 4. "Play-off" gibi uzun metinlerin alt satıra kaymasını engelle */
}


/* Analitik Maç Raporu Stilleri (Maç Detayları Modalı) */
#match-details-content { padding: 0; }
.analytical-match-report {
    display: grid;
    grid-template-columns: 3fr 4fr; /* Sol ve Orta/Sağ Panel */
    min-height: 75vh;
}

/* Geri Butonu */
.modal-back-btn {
    position: absolute;
    top: 15px; left: 20px;
    background: none; border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 5px 10px; border-radius: 6px; cursor: pointer;
}
.modal-back-btn:hover { background-color: var(--bg-main); color: var(--text-primary); }

/* Sol Panel: Meta ve Skor */
.amr-left-panel {
    background-color: #f9fafb;
    border-right: 1px solid var(--border-color);
    padding: 20px;
    display: flex;
    flex-direction: column;
    /* justify-content: space-between; */
}

.mvp-title { font-weight: 600; color: var(--text-secondary); font-size: 0.8rem; text-transform: uppercase; }
.mvp-team-rating { font-size: 0.9rem; color: var(--text-secondary); }
.mvp-key-stats { margin-top: 10px; display: flex; justify-content: center; gap: 15px; }

.amr-player-tables-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.amr-player-table {
    width: 100%; border-collapse: collapse; font-size: 0.85rem;
}

.amr-player-table .mvp-row-highlight { background-color: #fffbeb; }
.amr-player-table .mvp-star-table { color: var(--warning-color); }

/* Takım İstatistikleri */
.mdv-section-title { text-align: center; font-size: 1.2rem; margin-bottom: 15px; }
.mdv-stats-comparison-grid {display: flex;flex-direction: column;gap: 5px;}


.bar-container {
    display: flex; height: 18px; background-color: var(--border-color);
    margin: 0 10px; border-radius: 4px; overflow: hidden;
}
.bar.home-bar { background-color: var(--primary-accent); }
.bar.away-bar { background-color: var(--secondary-accent); }

.match-archive-item {
    display: grid;
    /* YENİ SÜTUN TANIMI: 
       Tarih(otomatik) | Ev Sahibi(esnek) | Skor(otomatik) | Deplasman(esnek) | Sonuç(otomatik) | Tip(otomatik) */
    grid-template-columns: auto 1fr auto 1fr auto 0.25fr;
    gap: 15px;
    align-items: center;
    border: none;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    margin-bottom: 0;
    padding: 12px 8px;
}
.match-archive-item:last-child {
    border-bottom: none;
}

/* Ev sahibi takım adını sağa yasla */
.mai-team.home-team {
    text-align: right;
}

/* Takım isimlerinin çok uzaması durumunda ... ile kısalt (opsiyonel ama önerilir) */
.team-name-archive {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.mai-date { font-size: 0.8rem; color: var(--text-secondary); }
.mai-score { font-size: 1.2rem; font-weight: 700; font-family: var(--font-mono); white-space: nowrap; }

/* Ana Rapor Konteyneri - 2 Sütunlu Grid */
.analytical-match-report {
    display: grid;
    /* Sol sütun (genel bakış) için sabit bir genişlik, sağ sütun (oyuncular) için kalan tüm alan */
    grid-template-columns: 320px 1fr; 
    min-height: 75vh;
}

/* Sol Panel: Genel Bakış */
.amr-left-panel {
    background-color: #f9fafb;
    border-right: 1px solid var(--border-color);
    padding: 20px;
    display: flex;
    flex-direction: column; /* İçerikleri alt alta diz */
    gap: 25px; /* Bölümler arası boşluk */
}

.mdv-stat-bar-item {
    display: grid;
    grid-template-columns: 45px 1fr 45px;
    align-items: center;
    position: relative;
}
.stat-value-left { text-align: right; font-weight: 700; font-size: 0.9rem; }
.stat-value-right { text-align: left; font-weight: 700; font-size: 0.9rem; }
.stat-label-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    font-weight: 500;
    color: #fff;
    border-radius: 3px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}
.bar-container {
    display: flex; height: 16px; background-color: var(--border-color);
    margin: 0 8px; border-radius: 4px; overflow: hidden;
}
.bar.home-bar { background-color: var(--primary-accent); }
.bar.away-bar { background-color: var(--secondary-accent); }

.mvp-title { font-weight: 600; color: var(--text-secondary); font-size: 0.8rem; text-transform: uppercase; }
.mvp-name { font-size: 1.3rem; font-weight: 700; color: var(--warning-color); }
.mvp-team-rating {font-size: 0.rem;color: var(--text-secondary);}
.mvp-key-stats { margin-top: 10px; display: flex; justify-content: center; gap: 15px; }

.amr-player-table th { font-weight: 600; cursor: pointer; }
.amr-player-table .mvp-row-highlight { background-color: #fffbeb; }
.amr-player-table .mvp-star-table { color: var(--warning-color); margin-left: 5px; }

/* LÜTFEN MEVCUT .modal-content.x-large-modal STİLİNİ BU ŞEKİLDE GÜNCELLEYİN VEYA EKLEYİN */
.modal-content.x-large-modal {max-width: 1015px;} /* Daha fazla sütun için modalı genişletelim */

/* Oyuncu tablosu hücrelerini biraz daha düzenleyelim */
.amr-player-table th, .amr-player-table td {
    padding: 8px; /* Padding'i biraz artıralım */
    text-align: center; /* Sayısal veriler için merkez hizalama daha iyi durur */
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}
/* Oyuncu adı sola yaslı kalsın */
.amr-player-table td.player-name-cell, .amr-player-table th[data-sort-key="playername"] {
    text-align: left;
}
/* Kart ikonları */
.card-icon {
    display: inline-block;
    width: 10px;
    height: 14px;
    border-radius: 2px;
}
.card-icon.yellow { background-color: #facc15; }
.card-icon.red { background-color: var(--primary-accent); }

/* Ana Rapor Konteyneri - 2 Sütunlu Grid */
.analytical-match-report {
    display: grid;
    grid-template-columns: 273px 740px; 
    /* YÜKSEKLİK TANIMLAMALARI BURADA BAŞLIYOR */
    height: 75vh; /* 1. Konteynerin yüksekliğini ekranın %75'i olarak ayarla */
     /* Çok uzun ekranlarda aşırı büyümesini engelle */
    overflow: hidden; /* 2. Ana konteynerin kendisinin taşmasını engelle */
}

/* Sol Panel: Genel Bakış */
.amr-left-panel {
    background-color: #f9fafb;
    border-right: 1px solid var(--border-color);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto; /* 3. Sol panelin içeriği sığmazsa KENDİ içinde scroll olsun */
    max-width: 300px;
}

/* Sağ Panel: Oyuncu Performansları */
.amr-right-panel {
    display: flex;
    flex-direction: column;
    padding: 20px;
    overflow-y: auto; /* 4. Sağ panelin içeriği sığmazsa KENDİ içinde scroll olsun (EN ÖNEMLİ KISIM) */
}

/* Geri Butonu */
.modal-back-btn {
    position: absolute;
    top: 15px; left: 20px;
    background: none; border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 5px 10px; border-radius: 6px; cursor: pointer;
    z-index: 10; /* Diğer içeriklerin üstünde kalsın */
}
.modal-back-btn:hover { background-color: var(--bg-main); color: var(--text-primary); }

/* Sol Panel İçerikleri */
.amr-match-meta .meta-item {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0px;
    text-align: center;
}
.amr-main-scoreboard { text-align: center; }
.team-name-main {font-size: 1.3rem;margin: 0px 0;}
.score-display {font-size: 3rem;font-weight: 700;font-family: var(--font-mono);}
.score-separator {margin: 0 10px;}

.mdv-section-title {text-align: center;font-size: 1.1rem;margin-bottom: 0px;font-weight: 600;margin-top: 0px;}

/* MVP Kartı */
.amr-mvp-highlight {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    /* border-top: 4px solid var(--warning-color); */
    border-radius: 8px;
    padding: 5px;
    text-align: center;
}

/* Sağ Panel İçerikleri */
.amr-section-title-center {
    text-align: center; margin-bottom: 15px; font-size: 1.2rem;
}
.amr-player-tables-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.table-team-name {
    margin-top: 0; font-size: 1.1rem; text-align: left;
}
.amr-player-table {
    width: 100%; border-collapse: collapse; font-size: 0.85rem;
}

/* --- Site Footer --- */
.site-footer {
    background-color: var(--bg-header); /* Header ile aynı renk */
    color: var(--text-secondary);
    padding: 40px 0 20px 0;
    margin-top: 40px; /* Ana içerikten boşluk bırak */
    border-top: 4px solid var(--primary-accent); /* Üstte kırmızı bir çizgi */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap; /* Küçük ekranlarda alt alta gelmesi için */
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #374151; /* Header içindeki arama çubuğu rengi */
}

.footer-about, .footer-social {
    flex: 1;
    min-width: 250px; /* Küçük ekranlarda minimum genişlik */
}

.footer-about h3, .footer-social h3 {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 15px;
}

.footer-about p {
    margin: 0;
    line-height: 1.8;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #374151;
    color: var(--text-light);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    margin-right: 10px;
    transition: background-color 0.2s, transform 0.2s;
}

.footer-social a:hover {
    background-color: var(--primary-accent);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    font-size: 0.85rem;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    background-color: var(--primary-accent);
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 10px;
    /* animation: pulse 2s infinite; */
}

/* Yanıp sönme animasyonu */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* Eşit olmayan gruplar için özel grid tanımı (örn: Kayıtlı Oyuncu vs Forum) */
.stat-card-group.unequal-group {
    /* Alanı 2'ye 1 oranında böl */
    grid-template-columns: 2fr 1fr;
}

/* Forum kartı için özel renk ve stil */
.forum-card {
    background: linear-gradient(135deg, #007bff, #0056b3); /* Mavi tonları */
    text-decoration: none; /* Link alt çizgisini kaldır */
}

.forum-card h3 {
    color: rgba(255, 255, 255, 0.9);
}

.forum-card p {
    color: #ffffff;
    font-size: 2rem; /* İkonu biraz daha büyük yapalım */
}

/* Tıklanabilir kartların genel hover efekti */
.clickable-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Maç arşivi kartının yeşil rengini koruyalım */
#open-match-archive-btn {
    background: linear-gradient(135deg, #28a745, #218838);
}

/* Satışta Olmayanlar Bölümü İçin Ayırıcı Başlık */
.shop-section-divider {
    grid-column: 1 / -1; /* Tüm grid genişliğini kapla */
    text-align: center;
    font-weight: 600;
    /* color: var(--text-secondary); */
    margin: 25px 0 15px 0;
    /* border-top: 1px dashed var(--border-color); */
    padding-top: 0px;
    margin-bottom: 0px;
}
.shop-section-divider i {
    margin-right: 8px;
}

/* Satışta Olmayan Eşyaların Stili */
.shop-item-public.not-for-sale {
    /* Normal eşyalardan biraz daha soluk gösterelim */
    /* opacity: 0.85; */
    /* filter: grayscale(30%); */ /* Hafifçe rengini al */
    /* transition: opacity 0.2s, filter 0.2s; */
}
.shop-item-public.not-for-sale:hover {
    /* Üzerine gelince normal hale dönsün */
    /* opacity: 1; */
    /* filter: grayscale(0%); */
}

/* Satışta olmayan eşyanın "Fiyat" ve "Stok" alanları için özel stil */
.shop-item-public.not-for-sale .item-price,
.shop-item-public.not-for-sale .item-stock {
    font-style: italic;
    font-weight: 500;
    color: var(--text-secondary);
}