:root {
    --combat: #ff1a1a;
    --offense: #f39c12;
    --defense: #2ecc71;
    --support: #3498db;
}

.list-content::-webkit-scrollbar { width: 3px; }

.content-wrap { 
    max-width: 1400px; margin: 0 auto; 
    width: 100%; position: relative; z-index: 10; 
    flex: 1; 
    display: flex; flex-direction: column;
}

#landing-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
    justify-content: flex-start; 
    padding-top: 180px; 
    align-items: center;
    transition: all 0.5s ease;
}

#landing-wrapper.compact {
    min-height: auto;
    justify-content: flex-start;
    padding-top: 100px; 
    margin-bottom: 30px;
}

#landing-view { 
    text-align: center; 
    animation: fadeIn 0.8s ease-out;
    margin-bottom: 50px; 
}

.landing-title { font-family: 'Teko', sans-serif; font-weight: 300; font-size: 4.5rem; color: #fff; text-shadow: 0 0 30px rgba(255, 26, 26, 0.3); margin-bottom: 10px; line-height: 1; letter-spacing: 2px; }
.landing-subtitle { font-family: 'Rajdhani'; font-size: 1.2rem; color: #888; text-transform: uppercase; letter-spacing: 4px; font-weight: 600; margin-bottom: 30px; }
.system-status { display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.05); padding: 5px 15px; border-radius: 50px; border: 1px solid rgba(255,255,255,0.1); font-family: 'Chakra Petch'; font-size: 0.9rem; color: #aaa; }
.status-dot { width: 8px; height: 8px; background: #2ecc71; border-radius: 50%; box-shadow: 0 0 10px #2ecc71; }

.search-area { position: relative; width: 100%; max-width: 650px; z-index: 50; }
.search-container-oval {
    position: relative; height: 60px;
    background: rgba(15,15,20,0.8);
    border: 2px solid var(--primary);
    border-radius: 50px;
    display: flex; align-items: center;
    box-shadow: 0 0 20px rgba(255, 26, 26, 0.2);
    transition: all 0.3s ease;
}
.search-container-oval:focus-within { background: rgba(20,20,25,0.95); box-shadow: 0 0 35px rgba(255, 26, 26, 0.4); }
.search-input { flex: 1; height: 100%; background: transparent; border: none; color: #fff; font-family: 'Rajdhani'; font-size: 1.5rem; font-weight: 600; letter-spacing: 1px; padding: 0 30px; outline: none; text-transform: uppercase; }
.search-input::placeholder { color: #555; text-transform: none; font-weight: 400; font-size: 1.3rem; }
.search-actions { padding-right: 25px; display: flex; align-items: center; gap: 10px; height: 100%; }
.search-icon { color: #666; font-size: 1.4rem; transition: 0.3s; }
.search-container-oval:focus-within .search-icon { color: var(--primary); transform: scale(1.1); }
.loader-ring { width: 24px; height: 24px; border: 2px solid rgba(255,255,255,0.1); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; display: none; }

.search-results { 
    position: absolute; top: 115%; left: 20px; right: 20px; 
    background: #0e0e10; border: 1px solid var(--primary); border-radius: 12px; 
    display: none; overflow-y: auto; max-height: 400px;
    z-index: 100; box-shadow: 0 20px 60px rgba(0,0,0,0.9); 
}
.search-result-item { padding: 15px 25px; border-bottom: 1px solid rgba(255,255,255,0.05); cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: #ccc; font-size:1.1rem; transition: 0.2s; }
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: rgba(255, 26, 26, 0.1); color: #fff; padding-left: 35px; border-left: 3px solid var(--primary); }

#profile-view { display: none; margin-top: 0px; animation: slideUp 0.6s ease; padding-bottom: 50px; }
.main-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 25px; }

.card { 
    background: rgba(10, 10, 12, 0.6); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05); 
    border-radius: 20px; padding: 25px;
    position: relative; overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}
.card:hover { border-color: rgba(255, 26, 26, 0.2); box-shadow: 0 15px 40px rgba(0,0,0,0.6); }
.card-header { 
    font-family: 'Teko'; font-size: 1.3rem; color: #bbb; margin-bottom: 20px; 
    display: flex; justify-content: space-between; align-items: center; 
    border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 10px; 
    text-transform: uppercase; letter-spacing: 1px; 
}
.card-header i { color: var(--primary); }

.hero-section { 
    grid-column: span 12; display: flex; gap: 40px; align-items: center; 
    padding: 35px 40px; border-top: 3px solid var(--primary); 
    background: linear-gradient(90deg, rgba(20,20,28,0.8) 0%, rgba(20,20,28,0.5) 100%); 
}
.hero-avatar-box { width: 120px; height: 120px; position: relative; display: flex; justify-content: center; align-items: center; flex-shrink: 0; }
.hero-img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.2); position: relative; z-index: 2; }
.hero-avatar-box::before { content: ''; position: absolute; width: 100%; height: 100%; border-radius: 50%; border: 2px dashed var(--primary); border-top-color: transparent; border-left-color: transparent; animation: spin 8s linear infinite; z-index: 1; opacity: 0.8; }
.hero-info { flex: 1; }
.hero-name { font-family: 'Black Ops One'; font-size: 3rem; line-height: 1; color: #fff; text-shadow: 0 4px 15px rgba(0,0,0,0.5); }
.hero-steam { color: var(--primary); font-family: 'Chakra Petch'; font-size: 0.9rem; background: rgba(255, 26, 26, 0.1); padding: 3px 10px; border-radius: 4px; display: inline-block; margin-top: 8px; border: 1px solid rgba(255, 26, 26, 0.2); }
.hero-stat-grid { display: flex; gap: 20px; margin-top: 20px; flex-wrap: wrap; }

.hs-box-new { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); border-radius: 12px; padding: 10px 20px; min-width: 110px; text-align: center; transition: all 0.3s ease; cursor: default; }
.hs-box-new:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.hs-val { font-family: 'Chakra Petch'; font-size: 1.6rem; font-weight: 700; color: #fff; line-height: 1; display: block; transition: 0.3s; }
.hs-lbl { font-family: 'Rajdhani'; font-size: 0.8rem; color: #888; text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; display: block; }
.hs-red:hover { border-color: var(--primary); box-shadow: 0 0 15px rgba(255,26,26,0.2); } .hs-red:hover .hs-val { color: var(--primary); }
.hs-green:hover { border-color: var(--defense); box-shadow: 0 0 15px rgba(46,204,113,0.2); } .hs-green:hover .hs-val { color: var(--defense); }
.hs-blue:hover { border-color: var(--support); box-shadow: 0 0 15px rgba(52,152,219,0.2); } .hs-blue:hover .hs-val { color: var(--support); }
.hs-yellow:hover { border-color: var(--offense); box-shadow: 0 0 15px rgba(243,156,18,0.2); } .hs-yellow:hover .hs-val { color: var(--offense); }

.score-master-panel { grid-column: span 12; background: linear-gradient(180deg, rgba(25,25,30,0.6) 0%, rgba(15,15,20,0.8) 100%); border: 1px solid rgba(255,255,255,0.05); border-radius: 20px; padding: 30px; display: flex; flex-direction: column; gap: 25px; position: relative; overflow: hidden; }
.score-master-panel::before { content:''; position: absolute; top:0; left:0; width:4px; height:100%; background: var(--primary); }
.smp-header { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 15px; }
.smp-title { font-family: 'Black Ops One'; font-size: 1.8rem; color: #fff; }
.smp-subtitle { color: #888; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }
.smp-total-val { font-family: 'Chakra Petch'; font-size: 2.5rem; font-weight: 700; color: #fff; line-height: 1; text-align: right; }
.smp-total-lbl { font-size: 0.8rem; color: var(--primary); font-weight: 700; text-transform: uppercase; text-align: right; }
.smp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.mini-score-box { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); border-radius: 12px; padding: 15px 20px; display: flex; align-items: center; gap: 15px; transition: 0.3s; }
.mini-score-box:hover { background: rgba(255, 26, 26, 0.05); transform: translateY(-3px); border-color: var(--primary) !important; box-shadow: 0 5px 20px rgba(255, 26, 26, 0.15); }
.mini-score-box:hover .msb-icon { color: var(--primary) !important; transform: scale(1.1); }
.mini-score-box:hover .msb-fill { background: var(--primary) !important; box-shadow: 0 0 10px var(--primary) !important; }

.msb-icon { font-size: 1.8rem; color: #555; width: 45px; text-align: center; transition:0.3s; }
.msb-info { display: flex; flex-direction: column; flex: 1; }
.msb-lbl { font-family: 'Teko'; font-size: 1.1rem; color: #aaa; text-transform: uppercase; line-height: 1; }
.msb-val { font-family: 'Chakra Petch'; font-size: 1.5rem; font-weight: 700; color: #fff; margin-top: 2px; }
.msb-bar { width: 100%; height: 4px; background: rgba(255,255,255,0.05); margin-top: 8px; border-radius: 2px; overflow: hidden; }
.msb-fill { height: 100%; background: var(--color); box-shadow: 0 0 5px var(--color); transition: 0.3s; }

.chart-box { grid-column: span 6; height: 400px; display: flex; flex-direction: column; }
.chart-container { flex: 1; position: relative; width: 100%; height: 100%; }
.list-box { grid-column: span 4; height: 400px; display: flex; flex-direction: column; }
.list-content { flex: 1; overflow-y: auto; padding-right: 5px; margin-top: 10px; }
.data-row { display: flex; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.03); font-size: 0.95rem; margin-right: 5px; }
.dr-name { flex: 1; color: #ccc; font-weight: 500; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dr-bar-con { width: 70px; height: 5px; background: rgba(255,255,255,0.05); border-radius: 3px; margin: 0 15px; overflow: hidden; }
.dr-bar { height: 100%; border-radius: 3px; }
.dr-val { width: 45px; text-align: right; font-family: 'Chakra Petch'; font-weight: 700; color: #fff; }

.records-wrapper { grid-column: span 12; }
.rec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.rec-card { height: 180px; border-radius: 12px; overflow: hidden; position: relative; border: 1px solid rgba(255,255,255,0.05); cursor: default; background: #000; }
.rec-bg { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s, opacity 0.6s; opacity: 0.5; filter: grayscale(30%); }
.rec-card:hover .rec-bg { transform: scale(1.1); opacity: 0.8; filter: grayscale(0%); }
.rec-card:hover { border-color: rgba(255,255,255,0.2); }
.rec-overlay { position: absolute; inset: 0; padding: 15px; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; z-index: 2; background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, transparent 40%, rgba(0,0,0,0.9) 100%); }
.rec-top { display: flex; gap: 8px; align-items: center; }
.rec-pill-top { background: rgba(0,0,0,0.7); backdrop-filter: blur(5px); border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; padding: 3px 10px; font-family: 'Teko'; font-size: 1rem; color: #ccc; text-transform: uppercase; letter-spacing: 0.5px; }
.rec-pill-top i { color: var(--primary); }
.rec-footer { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; width: 100%; }
.rec-map-name { font-family: 'Rajdhani'; font-weight: 700; color: #fff; text-transform: uppercase; font-size: 1.1rem; text-shadow: 0 2px 5px #000; line-height: 1.1; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-pill-val { background: rgba(0, 0, 0, 0.85); border: 1px solid var(--primary); border-radius: 50px; padding: 3px 15px; font-family: 'Chakra Petch'; font-weight: 700; font-size: 1.2rem; color: #fff; box-shadow: 0 0 8px rgba(255,26,26,0.3); white-space: nowrap; flex-shrink: 0; }

.history-wrapper { grid-column: span 12; }
.match-card { display: grid; grid-template-columns: 100px 1fr 380px 90px; gap: 20px; align-items: center; background: rgba(255,255,255,0.02); margin-bottom: 8px; padding: 12px 20px; border-radius: 12px; border-left: 3px solid #555; transition: 0.3s; border: 1px solid rgba(255,255,255,0.02); border-left-width: 4px; }
.match-card:hover { background: rgba(255,255,255,0.05); transform: translateX(5px); border-color: rgba(255,255,255,0.1); }
.mc-img { width: 100px; height: 60px; object-fit: cover; border-radius: 6px; opacity: 0.7; transition: 0.3s; filter: grayscale(30%); }
.match-card:hover .mc-img { opacity: 1; filter: grayscale(0%); }
.mc-info h4 { font-family: 'Rajdhani', sans-serif; font-weight: 500; font-size: 1.2rem; color: #fff; margin: 0; text-transform: uppercase; letter-spacing: 1px;}
.mc-info span { font-size: 0.85rem; color: #888; font-weight: 600; }
.mc-stats-boxes { display: flex; gap: 15px; justify-content: flex-end; }
.match-stat-box { background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.05); border-radius: 8px; padding: 5px 15px; min-width: 70px; text-align: center; display: flex; flex-direction: column; justify-content: center; }
.msb-val { font-family: 'Chakra Petch'; font-weight: 700; font-size: 1.3rem; color: #fff; line-height: 1; }
.msb-lbl { font-family: 'Teko'; font-size: 0.8rem; color: #777; text-transform: uppercase; margin-top: 3px; letter-spacing: 1px; }
.kill-box .msb-val { color: var(--primary); } .death-box .msb-val { color: #aaa; }
.kd-tag { text-align: right; }
.kd-tag span { font-size: 1.6rem; font-family: 'Chakra Petch'; font-weight: 700; }
.kd-tag small { display: block; font-size: 0.75rem; color: #666; font-weight: 600; }

@keyframes fadeIn { from{opacity:0;}to{opacity:1;} }
@keyframes slideUp { from{opacity:0; transform:translateY(30px);}to{opacity:1; transform:translateY(0);} }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* MOBİL MEDYA SORGULARI */
@media (max-width: 1200px) {
    .main-grid { grid-template-columns: 1fr 1fr; }
    .hero-section, .score-master-panel, .records-wrapper, .history-wrapper { grid-column: span 2; }
    .list-box { grid-column: span 2; }
}

@media (max-width: 900px) {
    .main-grid { grid-template-columns: 1fr; }
    .hero-section, .score-master-panel, .records-wrapper, .history-wrapper, .chart-box, .list-box { grid-column: span 1; }
    .hero-section { flex-direction: column; text-align: center; padding: 25px; }
    .hero-stat-grid { justify-content: center; }
    .smp-grid { grid-template-columns: 1fr; }
    .landing-title { font-size: 2.5rem; }
    
    /* Masaüstündeki orta sütunu (skorları) mobilde gizliyoruz, sadece Harita ve K/D kalıyor */
    .match-card { grid-template-columns: 90px 1fr 70px; gap: 15px; padding: 12px; } 
    .mc-stats-boxes { display: none; }
}

@media (max-width: 768px) {
    #landing-wrapper { padding-top: 130px; }
    .search-area { max-width: 100%; padding: 0 16px; }
    .search-container-oval { height: 52px; }
    .search-input { font-size: 1.2rem; padding: 0 20px; }
    .search-input::placeholder { font-size: 1.05rem; }
    
    .hero-section { padding: 20px 18px; gap: 20px; }
    .hero-name { font-size: 2.2rem; }
    .hero-stat-grid { gap: 12px; }
    .hs-box-new { padding: 8px 14px; min-width: 90px; }
    .hs-val { font-size: 1.3rem; }
    
    .score-master-panel { padding: 20px; gap: 18px; }
    .smp-header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .smp-total-val { font-size: 2rem; }
    
    .chart-box, .list-box { height: 320px; }
    
    /* RECENT MATCHES - MOBİL KART DÜZENİ */
    .history-wrapper .match-card {
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 12px 15px;
        gap: 15px;
        position: relative;
    }
    
    .history-wrapper .mc-img {
        width: 80px; 
        height: 55px;
        flex-shrink: 0; /* Görselin ezilmesini engeller */
    }
    
    .history-wrapper .mc-info {
        flex: 1; /* Yazı alanının kalan tüm boşluğu almasını sağlar */
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-width: 0; /* Taşmaları önler */
    }
    
    .history-wrapper .mc-info h4 {
        font-size: 1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis; /* Çok uzun harita isimlerine ... koyar */
    }
    
    .history-wrapper .kd-tag {
        flex-shrink: 0;
        text-align: right;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }
    
    .history-wrapper .kd-tag span {
        font-size: 1.4rem;
        line-height: 1;
    }
}