/* --- GOOGLE FONTS ENTEGRASYONU --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;800&family=Poppins:wght@700;800&display=swap');

/* --- DEĞİŞKENLER (CSS VARIABLES) --- */
:root {
    --bg-dark: #0a0b1a;
    --bg-panel: #141529;
    --bg-card: rgba(30, 31, 59, 0.65);
    --accent-purple: #7c3aed;
    --accent-hover: #6d28d9;
    --gold: #fbbf24;
    --blue: #3b82f6;
    --red: #ef4444;
    --admin-red: #ff3e3e;
    --green: #4ade80;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --glass: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --nav-height: 75px;
}

/* --- TEMEL RE-SET AYARLARI --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    background-image: radial-gradient(circle at top right, #1e1f3b 0%, #0a0b1a 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- RÜTBE TASARIMLARI (RANK SİSTEMİ) --- */
.rank-founder { color: #ff0000; text-shadow: 0 0 10px rgba(255, 0, 0, 0.6); font-weight: 800; }
.rank-admin { color: #ff8000; font-weight: 700; text-shadow: 0 0 5px rgba(255, 128, 0, 0.3); }
.rank-mod { color: #4ade80; font-weight: 700; }
.rank-legendary { color: var(--gold); text-shadow: 0 0 8px var(--gold); font-weight: 800; }
.rank-lord { color: #a855f7; font-weight: 700; }
.rank-captain { color: #3b82f6; font-weight: 700; }
.rank-native { color: var(--text-muted); }

/* --- NAVBAR (ÜST MENÜ) --- */
.navbar {
    height: var(--nav-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background: rgba(10, 11, 26, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo a {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    color: white;
    text-decoration: none;
    letter-spacing: -1px;
    background: linear-gradient(to right, #fff, var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
}

.nav-links a:hover, .nav-links a.active { 
    color: white; 
}

/* --- NAVBAR KULLANICI KARTI VE CÜZDAN --- */
.user-profile {
    display: flex;
    align-items: center;
}

.user-info-panel {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stats-group {
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.4);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.stat-item {
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

.user-card-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--glass);
    padding: 4px 4px 4px 12px;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    transition: 0.3s;
    cursor: pointer;
}
.user-card-btn:hover {
    background: rgba(255,255,255,0.08);
}

.user-text {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.user-text span { 
    font-weight: 700; 
    font-size: 0.85rem; 
    color: white;
}
.user-text small { 
    font-size: 0.65rem; 
    font-weight: 800; 
    color: var(--gold); 
}

.avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-panel);
    border: 1px solid var(--glass-border);
}

.avatar-circle img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.logout-mini {
    background: rgba(239, 68, 68, 0.1);
    color: var(--red);
    border: 1px solid rgba(239, 68, 68, 0.2);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logout-mini:hover { 
    background: var(--red); 
    color: white; 
}

/* --- ANA GRID SARMALI (MAIN WRAPPER) --- */
.main-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 25px;
    padding: 30px 5%;
    max-width: 1600px;
    margin: 0 auto;
}

.card {
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    padding: 25px;
    position: relative;
    overflow: hidden;
}

/* --- LOBİ STAGE VE GÖRSEL ALAN --- */
.center-stage {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 500px;
}

.hero-content { 
    flex: 1.2; 
    z-index: 2; 
}

.hero-content h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 20px;
}

.badge {
    background: rgba(124, 58, 237, 0.2);
    color: #a78bfa;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 15px;
    display: inline-block;
}

.avatar-display {
    flex: 0.8;
    height: 450px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

model-viewer {
    width: 100%;
    height: 100%;
    --poster-color: transparent;
}

.platform-shadow {
    position: absolute;
    bottom: 30px;
    width: 220px;
    height: 35px;
    background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.4) 0%, transparent 70%);
    border-radius: 50%;
}

/* --- PREMIUM BUTON SİSTEMİ --- */
.btn-main {
    background: linear-gradient(135deg, var(--accent-purple), #9333ea);
    color: white;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.btn-main:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 10px 22px rgba(124, 58, 237, 0.5); 
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
    cursor: pointer;
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
}

.pulse { animation: pulse-shadow 2s infinite; }
@keyframes pulse-shadow {
    0% { box-shadow: 0 0 0 0px rgba(124, 58, 237, 0.6); }
    100% { box-shadow: 0 0 0 15px rgba(124, 58, 237, 0); }
}

/* --- ENVANTER VE AKILLI MAĞAZA GRİD YAPISI --- */
.avatar-store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 15px;
}

/* --- MODAL TASARIMI --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(12px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}

.modal-content {
    background: var(--bg-panel);
    width: 100%;
    max-width: 500px;
    border-radius: 25px;
    padding: 30px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}

/* --- MOBİL ALT GEZİNTİ BAR (MOBILE NAV) --- */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(10, 11, 26, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    justify-content: space-around;
    align-items: center;
    padding-bottom: 10px;
    z-index: 1001;
}

.mobile-nav a { 
    color: var(--text-muted); 
    font-size: 1.4rem; 
    transition: 0.3s; 
    padding: 10px;
}
.mobile-nav a.active { 
    color: var(--gold); 
}

/* --- RESPONSIVE OPTİMİZASYONLARI --- */
@media (max-width: 1100px) {
    .main-wrapper { 
        grid-template-columns: 1fr; 
    }
}

@media (max-width: 768px) {
    .navbar { 
        padding: 15px 20px; 
    }
    .nav-links, .stats-group, .user-card-btn .user-text { 
        display: none !important; 
    }
    .mobile-nav { 
        display: flex; 
    }
    .main-wrapper { 
        padding: 15px; 
        padding-bottom: 100px; 
    }
    .center-stage { 
        flex-direction: column; 
        text-align: center; 
        min-height: auto; 
    }
    .hero-content { 
        order: 2; 
        margin-top: 20px; 
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .avatar-display { 
        order: 1; 
        height: 300px; 
        width: 100%; 
    }
    .platform-shadow { 
        bottom: 10px; 
        width: 150px; 
    }
}