/* =========================================
   PREMIUM GENEL AYARLAR
========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

body { 
    background: radial-gradient(circle at top center, #111827 0%, #030712 100%);
    background-attachment: fixed;
    color: #e2e8f0; 
    font-family: 'Inter', sans-serif; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    min-height: 100vh; 
    margin: 0; 
    flex-direction: column; 
    padding: 20px;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

/* =========================================
   ANA KUTU (Buzlu Cam - Geniş Tasarım)
========================================= */
.card { 
    background: rgba(17, 24, 39, 0.6); 
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px; 
    border-radius: 24px; 
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7); 
    width: 100%; 
    max-width: 1000px; 
    margin-bottom: 20px;
    box-sizing: border-box;
}

.search-card {
    max-width: 600px;
    text-align: center;
    padding: 50px 40px;
}

.title-gradient {
    background: linear-gradient(to right, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    color: transparent;
    font-size: 32px;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 16px; 
    color: #94a3b8; 
    margin-bottom: 35px; 
}

.section-title {
    font-size: 14px;
    color: #f8fafc;
    margin-bottom: 15px;
    margin-top: 35px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 10px;
}

/* =========================================
   PROFİL HEADER EKRANI
========================================= */
.profile-header {
    display: flex;
    align-items: center;
    padding-bottom: 25px;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 16px;
    border: 3px solid;
    margin-right: 25px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}
.profile-info h1 {
    color: #f8fafc;
    margin: 0 0 5px 0;
    font-size: 26px;
    font-weight: 800;
}
.profile-info a {
    color: #3b82f6;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}
.profile-info a:hover { color: #60a5fa; }

.status-bar {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 4px solid;
    padding: 18px 25px;
    border-radius: 12px;
    margin-bottom: 30px;
}
.status-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.status-desc { font-size: 14px; color: #94a3b8; }

/* =========================================
   PC İÇİN GENİŞ IZGARA SİSTEMİ
========================================= */
.stats-grid { display: grid; gap: 16px; }
.faceit-grid { grid-template-columns: repeat(3, 1fr); }
.general-grid { grid-template-columns: repeat(3, 1fr); }
.weapons-grid { grid-template-columns: repeat(3, 1fr); }
.maps-grid { grid-template-columns: repeat(3, 1fr); } 
.security-grid { grid-template-columns: repeat(3, 1fr); }

.stat-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.3s ease;
}
.stat-box:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.5);
}
.stat-title {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}
.stat-value {
    font-size: 22px;
    font-weight: 700;
    color: #f8fafc;
}

.bar-bg {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    height: 4px;
    width: 100%;
    margin-top: 10px;
    overflow: hidden;
}
.bar-fill { height: 100%; border-radius: 10px; }

.steam-level-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    flex-shrink: 0; 
    border-radius: 50%;
    border: 2px solid;
    font-size: 16px;
    font-weight: 800;
    color: white;
    background: rgba(0,0,0,0.2);
}

.highlight { color: #10b981; } 
.highlight-blue { color: #3b82f6; } 
.highlight-orange { color: #f97316; } 
.alert-text { color: #ef4444; } 

/* =========================================
   INPUT VE ANA BUTON ELEMENTLERİ
========================================= */
input[type="text"] { 
    width: 100%; padding: 18px 24px; border-radius: 14px; 
    border: 1px solid rgba(255, 255, 255, 0.1); outline: none; margin-bottom: 20px; 
    font-size: 16px; background: rgba(0, 0, 0, 0.4); color: white; box-sizing: border-box;
}
input[type="text"]:focus { 
    border-color: #3b82f6; box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

button { 
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); color: white; 
    border: none; padding: 18px; font-size: 16px; font-weight: 700; border-radius: 14px; 
    cursor: pointer; width: 100%; box-sizing: border-box;
}
button:hover { 
    transform: translateY(-2px); box-shadow: 0 10px 20px -10px rgba(59, 130, 246, 0.6);
}

.back-btn { 
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255,255,255,0.1);
    color: #e2e8f0; text-decoration: none; padding: 14px 28px; border-radius: 12px; 
    font-size: 14px; font-weight: 600; display: inline-block; 
}
.back-btn:hover { 
    background: rgba(255, 255, 255, 0.1); transform: translateY(-2px);
}

/* =========================================
   FİLTRE BUTONLARI
========================================= */
.filter-btn {
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255,255,255,0.1);
    color: #94a3b8; padding: 8px 16px; border-radius: 8px; font-size: 12px; font-weight: 600;
    cursor: pointer; transition: all 0.3s ease; display: inline-flex; align-items: center; 
    justify-content: center; text-align: center; width: auto !important; margin: 0;
}
.filter-btn:hover { background: rgba(255, 255, 255, 0.1); color: white; }
.filter-btn.active { background: rgba(59, 130, 246, 0.2); border-color: #3b82f6; color: #3b82f6; }

.filter-grid { display: flex; gap: 8px; flex-wrap: wrap; width: 100%; }

.weapon-filters {
    display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; 
    align-items: center; margin-bottom: 20px; width: 100%;
}

/* =========================================
   HARİTA KARTLARI
========================================= */
.map-card {
    position: relative; border-radius: 14px; overflow: hidden; height: 115px;
    background-color: #1e293b; border: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 4px 6px rgba(0,0,0,0.2);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    -webkit-backface-visibility: hidden; transform: translateZ(0); transition: all 0.3s ease;
    display: flex; flex-direction: column; justify-content: flex-end; padding: 15px;
}
.map-card:hover { transform: translateY(-3px) translateZ(0); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15), 0 10px 20px -5px rgba(0,0,0,0.5); }
.map-name { font-size: 16px; font-weight: 800; color: white; margin-bottom: 6px; text-shadow: 0 2px 4px rgba(0,0,0,0.8); position: relative; z-index: 2; }
.map-stats { display: flex; justify-content: space-between; font-size: 10px; color: #cbd5e1; text-transform: uppercase; letter-spacing: 0.5px; position: relative; z-index: 2; }
.map-stats b { font-size: 14px; display: block; margin-top: 2px; }

/* =========================================
   ENVANTER KUTULARI VE ROZETLER
========================================= */
a { text-decoration: none; }

.inventory-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px; margin-top: 20px;
}

.inv-item {
    background: rgba(255, 255, 255, 0.02);
    border: none !important; 
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
    border-radius: 12px; position: relative; 
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    -webkit-backface-visibility: hidden; transform: translateZ(0);
    padding: 12px 10px; transition: all 0.3s ease;
    display: flex; flex-direction: column; justify-content: flex-start;
    height: 100%; box-sizing: border-box;
    text-decoration: none !important; color: inherit !important; cursor: pointer;
    min-width: 0; 
}
.inv-item:hover {
    transform: translateY(-5px) translateZ(0);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1), 0 10px 20px -5px rgba(0,0,0,0.5);
}

.inv-img-wrap {
    height: 80px; width: 100%; display: flex; align-items: center;
    justify-content: center; margin-bottom: 12px;
}
.inv-item img {
    max-width: 100%; max-height: 100%; object-fit: contain;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.5));
}
.inv-info {
    display: flex; flex-direction: column; align-items: center;
    text-align: center; width: 100%; flex-grow: 1; min-width: 0; overflow: hidden;
}

.inv-name {
    font-size: 11.5px; font-weight: 700; margin-bottom: 4px;
    width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    display: block; text-decoration: none !important; 
}

.inv-type { 
    font-size: 10px; color: #64748b; width: 100%; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis; text-decoration: none !important;
}

/* KUSURSUZ SAYDAM SİYAH ROZETLER */
.badges-wrapper {
    position: absolute;
    top: 6px;
    right: 6px;
    display: flex;
    flex-direction: column;
    align-items: flex-end; 
    gap: 4px;
    z-index: 10;
    pointer-events: none;
}

.item-badge {
    background: rgba(0, 0, 0, 0.6); /* İstediğin o saydam koyu renk */
    color: #f8fafc !important;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 4px; /* Hafif oval köşeler */
    text-align: center;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none !important;
    border: none; /* Kenarlıklar tamamen uçuruldu */
    backdrop-filter: blur(4px); /* Arka planı hafif buzlu gösterir */
    -webkit-backdrop-filter: blur(4px);
}

/* =========================================
   KUSURSUZ MOBİL UYUM
========================================= */
@media (max-width: 850px) {
    .card { padding: 25px; border-radius: 20px; margin: 10px auto; }
    
    .faceit-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .faceit-grid > div:first-child { grid-column: 1 / -1; } 
    .general-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .weapons-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .maps-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .security-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    
    .map-card { height: 95px; padding: 12px; }
    .map-name { font-size: 14px; }
    .map-stats { font-size: 9px; }
    .map-stats b { font-size: 12px; }
    
    .stat-box { padding: 15px; }
    .weapon-box { padding: 10px; }
    .stat-title { font-size: 10px; margin-bottom: 6px; }
    .stat-value { font-size: 18px; }

    .inventory-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
    
    .profile-header { flex-direction: column; text-align: center; padding-bottom: 15px; margin-bottom: 15px; }
    .profile-avatar { width: 75px; height: 75px; margin-right: 0; margin-bottom: 15px; }
    .profile-info { display: flex; flex-direction: column; align-items: center; }
    .profile-info h1 { font-size: 22px; }
    .profile-info .back-btn { width: 100%; justify-content: center; }
    
    .section-title { font-size: 12px; flex-wrap: wrap; }
}

@media (max-width: 500px) {
    .weapons-grid { grid-template-columns: repeat(2, 1fr); }
    .security-grid { grid-template-columns: 1fr; } 
    
    .filter-grid {
        display: grid !important; grid-template-columns: repeat(2, 1fr); gap: 8px;
    }
    .filter-grid .filter-btn {
        width: 100% !important; margin: 0 !important; min-height: 48px; 
        padding: 8px; white-space: normal; flex-direction: column;
    }
    .filter-grid .filter-btn svg { margin: 0 0 4px 0 !important; }

    .weapon-filters {
        display: flex !important; flex-direction: row; flex-wrap: wrap; gap: 6px;
    }
    .weapon-filters .filter-btn {
        width: auto !important; flex: 0 1 auto; padding: 8px 12px; font-size: 11px;
    }

    .inventory-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 8px;}
    .inv-item { padding: 10px 5px; border-radius: 10px; border-bottom-width: 3px !important; }
    .inv-img-wrap { height: 60px; margin-bottom: 8px; }
    .inv-name { font-size: 9.5px; }
    .inv-type { font-size: 8px; }
}
