/* --- 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 0px 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
}
.stat-card h3 .fas { margin-right: 8px; }
.stat-card p {
    margin: 0px;
    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 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 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;/* display: flex; *//* justify-content: space-between; */font-size: 0.9rem;margin: 4px 0;padding: 4px 0;/* border-bottom: 1px dotted #0d4cff; */}
.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);
}

.tasks-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.task-item {
    display: flex;
    gap: 15px;
    background-color: #f9fafb;
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--secondary-accent); /* VarsayÄ±lan mavi kenarlÄ±k */
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.task-item.completed {
    border-left-color: var(--success-color); /* TamamlanÄ±nca yeÅŸil */
    background-color: #f0fdf4;
}

.task-icon {
    font-size: 1.8rem;
    color: var(--secondary-accent);
    margin-top: 5px;
}
.task-item.completed .task-icon {
    color: var(--success-color);
}

.task-details {
    flex-grow: 1;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 5px;
}

.task-name {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.task-reward {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    background-color: #e5e7eb;
    padding: 3px 8px;
    border-radius: 12px;
}
.task-reward .fas {
    color: var(--warning-color);
    margin-right: 5px;
}
.task-item.completed .task-reward {
    text-decoration: line-through;
}

.task-description {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.task-progress-bar-container {
    background-color: var(--border-color);
    border-radius: 10px;
    padding: 3px;
    border: 1px solid #d1d5db;
    position: relative;
    height: 22px;
}
.task-progress-bar {
    background: linear-gradient(90deg, #60a5fa, #3b82f6);
    height: 100%;
    border-radius: 8px;
    transition: width 0.5s ease-in-out;
}
.task-item.completed .task-progress-bar {
    background: linear-gradient(90deg, #4ade80, #16a34a);
}
.task-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.4);
}

/* Item Modal Header'Ä±nÄ± Flexbox yapalÄ±m ki sayaÃ§ saÄŸa yaslanabilsin */
#item-detail-content .item-detail-header {
    display: flex;
    align-items: center;
    /* justify-content: space-between; // Bu, baÅŸlÄ±ÄŸÄ± ortada bÄ±rakmaz */
}
/* BaÅŸlÄ±k grubunun esneyerek boÅŸluÄŸu doldurmasÄ±nÄ± saÄŸlayalÄ±m */
#item-detail-content .item-detail-title-group {
    flex-grow: 1;
}

/* DolaÅŸÄ±m SayacÄ± Widget'Ä± */
.item-circulation-widget {
    position: relative; /* Tooltip'in konumlanmasÄ± iÃ§in */
    margin-left: 20px;
    padding: 0px 20px;
    border-left: 2px solid var(--border-color);
    text-align: center;
    cursor: help;
    margin-right: 15px;
    margin-top: 4px;
}

.circulation-count {
    font-size: 2.2rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: #4e84d7;
    line-height: 1;
}

.circulation-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* DolaÅŸÄ±m Tooltip'i */
.circulation-tooltip {
    display: none; /* VarsayÄ±lan olarak gizli */
    position: absolute;
    top: 100%; /* Widget'Ä±n altÄ±nda baÅŸlasÄ±n */
    right: 0;
    z-index: 10;
    width: 200px;
    background-color: var(--bg-header);
    color: var(--text-light);
    border-radius: 6px;
    padding: 10px;
    box-shadow: var(--shadow-lg);
    border: 1px solid #4b5563;
}

/* Ãœzerine gelince tooltip'i gÃ¶ster */
.item-circulation-widget:hover .circulation-tooltip {
    display: block;
}

.circulation-tooltip .tooltip-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    padding: 4px 0;
}
.circulation-tooltip .tooltip-line:not(:last-child) {
    border-bottom: 1px solid #374151;
}
.circulation-tooltip .tooltip-line span {
    color: #9ca3af;
}
.circulation-tooltip .tooltip-line strong {
    font-weight: 600;
}

.stat-subtitle {
    display: block;
    font-size: 1rem; /* Ana sayÄ±dan daha kÃ¼Ã§Ã¼k */
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: 0px;
    font-family: var(--font-sans); /* Mono font olmasÄ±n */
}

.passive-user-notice {
    margin-top: 20px;
    padding: 15px 20px;
    background-color: #fffbeb; /* Hafif sarÄ± */
    border: 1px solid #fde68a;
    border-left: 5px solid var(--warning-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.passive-user-notice .fas {
    font-size: 1.5rem;
    color: var(--warning-color);
}
.passive-user-notice p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: #92400e; /* Koyu sarÄ± metin */
}

#live-stream-container {
    background-color: #000;
    padding: 20px 0;
    border-bottom: 4px solid var(--primary-accent);
    transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out;
    overflow: hidden;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
}
#live-stream-container:not(.hidden) {
    max-height: 700px; /* Veya videonun sÄ±ÄŸacaÄŸÄ± bir yÃ¼kseklik */
    /* padding: 20px 0; */
}
.stream-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 oran iÃ§in */
    height: 0;
}
.stream-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}