:root { 
    --primary: #00e699;       /* Elektrik Yeşili */
    --primary-dark: #009f69;  
    --christmas-red: #ff0033; /* Neon Noel Kırmızısı */
    --accent: #6a00ff;        /* Neon Mor */
    --bg: #020205;            /* Ultra Siyah */
}

/* --- ANA ATMOSFER & ARKA PLAN --- */
body {
    min-height: 100vh;
    margin: 0; padding: 0;
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: #f5f5ff;
    
    /* ESKİ SEVDİĞİN ARKA PLAN + YILBAŞI DOKUNUŞU */
    /* Mor, Yeşil, Kırmızı ve Siyah arasında yavaşça geçiş yapar */
    background: linear-gradient(-45deg, #050a05, #2b0000, #002e1f, #1a0b2e);
    background-size: 400% 400%;
    animation: auroraFlow 15s ease infinite;
    
    overflow-x: hidden;
    padding-top: 90px !important;
    display: flex; flex-direction: column; align-items: center;
}

@keyframes auroraFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


/* IZGARA (SİLİKLEŞTİRİLDİ) */
.grid-arka {
    position: fixed; inset: 0; z-index: -1;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    opacity: 0.4; /* Çok hafif, rahatsız etmez */
}

/* --- HEADER --- */
#app-header { 
    position: fixed; top: 0; left: 0; width: 100%; height: 80px; 
    background: rgba(2, 5, 2, 0.85); /* Hafif transparan */
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    z-index: 9000; 
    display: flex; align-items: center; justify-content: space-between; 
    padding: 0 20px; 
    border-bottom: 1px solid rgba(255, 0, 51, 0.3); /* Kırmızımsı alt çizgi */
    box-shadow: 0 5px 30px rgba(0,0,0,0.8); 
    box-sizing: border-box;
}

.app-logo { 
    font-weight: 900; font-size: 24px; color: #fff; 
    text-decoration: none; letter-spacing: 1px; text-transform: uppercase;
    text-shadow: 0 0 15px rgba(0, 230, 153, 0.6);
    flex-shrink: 0; display: flex; align-items: center;
} 
.app-logo span { color: var(--primary); }

.user-area { display: flex; align-items: center; justify-content: flex-end; flex: 1; min-width: 0; }

.user-btn { 
    background: linear-gradient(90deg, rgba(255, 0, 51, 0.15), transparent);
    border: 1px solid var(--christmas-red); 
    color: #fff; padding: 0 15px; border-radius: 6px; height: 42px; 
    cursor: pointer; display: flex; align-items: center; gap: 8px; 
    font-size: 13px; font-weight: 700; transition: all 0.3s;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
    box-shadow: 0 0 10px rgba(255, 0, 51, 0.2);
}
.user-btn:hover { 
    background: var(--christmas-red); color: #fff; 
    box-shadow: 0 0 30px var(--christmas-red); 
    transform: scale(1.05);
}

/* MENÜLER & MODALLAR */
.user-dropdown { 
    position: absolute; top: 70px; right: 15px; 
    background: #0a0a0a; border: 1px solid var(--christmas-red); 
    border-radius: 8px; width: 200px; 
    display: none; flex-direction: column; overflow: hidden; 
    box-shadow: 0 10px 50px rgba(0,0,0,0.9); z-index: 9100; 
}
.user-dropdown.active { display: flex; animation: slideDown 0.2s ease; }
.ud-item { padding: 15px; color: #ccc; text-decoration: none; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,0.05); cursor: pointer; display: block; transition: 0.2s; }
.ud-item:hover { background: var(--christmas-red); color: #fff; font-weight: bold; }

.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 10000; display: none; align-items: center; justify-content: center; backdrop-filter: blur(8px); }
.modal-box { 
    background: #050505; padding: 35px 25px; border-radius: 16px; 
    border: 1px solid var(--primary); text-align: center; 
    width: 90%; max-width: 380px; 
    box-sizing: border-box !important; overflow: hidden;
    box-shadow: 0 0 60px rgba(0, 230, 153, 0.2); 
}
.modal-title { font-size: 24px; font-weight: 900; color: #fff; margin-bottom: 25px; text-transform: uppercase; letter-spacing: 1px; }
.modal-input { 
    width: 100% !important; max-width: 100% !important; box-sizing: border-box !important;
    padding: 15px; background: #111; 
    border: 1px solid #333; border-radius: 8px; 
    color: #fff; margin-bottom: 20px; font-size: 16px; outline: none; 
    text-align: center; font-weight: bold; transition: 0.3s;
}
.modal-input:focus { border-color: var(--primary); box-shadow: 0 0 15px rgba(0, 230, 153, 0.2); }
.modal-btn { 
    width: 100% !important; max-width: 100% !important; box-sizing: border-box !important;
    padding: 15px; 
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)); 
    border: none; border-radius: 8px; color: #000; 
    font-weight: 900; cursor: pointer; font-size: 18px; 
    text-transform: uppercase; box-shadow: 0 5px 20px rgba(0, 230, 153, 0.3); 
    transition: 0.2s; 
}
.modal-btn:active { transform: scale(0.96); }

/* CHAT KUTUSU */
#chat-fab { 
    position: fixed; bottom: 30px; right: 25px; width: 60px; height: 60px; 
    background: #000; border: 2px solid var(--primary); border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; font-size: 28px; 
    cursor: pointer; z-index: 9500; color: var(--primary); 
    box-shadow: 0 0 20px rgba(0, 230, 153, 0.3); transition: transform 0.2s;
}
#chat-fab:hover { transform: scale(1.1) rotate(10deg); background: var(--primary); color: #000; }

.chat-panel { 
    position: fixed; bottom: 105px; right: 25px; width: 340px; height: 480px; 
    background: #0a0a0a; border: 1px solid var(--primary); border-radius: 12px; 
    display: none; flex-direction: column; z-index: 9500; overflow: hidden; 
    box-shadow: 0 20px 60px #000; 
}
.chat-panel.active { display: flex; animation: slideUp 0.3s ease; }
.chat-header { padding: 15px; background: rgba(0, 230, 153, 0.1); font-weight: bold; color: var(--primary); border-bottom: 1px solid rgba(0, 230, 153, 0.2); }
.chat-msgs { flex: 1; overflow-y: auto; padding: 15px; display: flex; flex-direction: column; gap: 8px; }
.chat-input-area { display: flex; border-top: 1px solid #222; padding: 10px; background: #000; }
.chat-input { flex: 1; background: #111; border: none; padding: 10px; color: #fff; outline: none; border-radius: 4px; }
.chat-send { background: transparent; border: none; color: var(--primary); padding: 0 15px; cursor: pointer; font-weight: bold; font-size: 20px; }
.c-msg { color: #eee; background: rgba(255,255,255,0.05); padding: 8px 12px; border-radius: 6px; font-size: 13px; border-left: 2px solid #333; }
.c-msg.admin { background: rgba(0, 230, 153, 0.1); border-left: 2px solid var(--primary); color: #fff; }
.chat-badge { position: absolute; top: -5px; right: -5px; background: #ff0055; color: #fff; font-size: 12px; font-weight: bold; min-width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid #000; opacity: 0; transform: scale(0); transition: all 0.3s; z-index: 9600; pointer-events: none; }
.chat-badge.visible { opacity: 1; transform: scale(1); box-shadow: 0 0 10px #ff0055; }
.chat-badge.pop { animation: badgePop 0.2s ease; }
@keyframes badgePop { 0% { transform: scale(1); } 50% { transform: scale(1.3); } 100% { transform: scale(1); } }

/* OYUN KARTLARI GENEL */
.games-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; width: 100%; max-width: 1100px; padding: 20px; box-sizing: border-box; z-index: 2; justify-content: center; }
.game-card { 
    background: rgba(20, 20, 20, 0.6); 
    border: 1px solid rgba(255,255,255,0.05); 
    border-radius: 16px; padding: 20px; 
    display: flex; align-items: center; gap: 15px; 
    text-decoration: none; color: #fff; transition: 0.3s; 
    backdrop-filter: blur(5px); position: relative; overflow: hidden;
}
.game-card:hover { 
    transform: translateY(-5px); 
    border-color: var(--primary); 
    background: rgba(0, 230, 153, 0.05); 
    box-shadow: 0 10px 30px rgba(0, 230, 153, 0.15); 
}

/* --- YILBAŞI ÖZEL KARTI (VURGULANMIŞ & BÜYÜK) --- */
.game-card.special {
    grid-column: 1 / -1; /* TÜM SATIRI KAPLAR */
    background: linear-gradient(135deg, rgba(255, 0, 51, 0.15), rgba(0,0,0,0.8));
    border: 2px solid var(--christmas-red);
    box-shadow: 0 0 40px rgba(255, 0, 51, 0.25);
    flex-direction: column; /* İÇERİK ORTALANSIN DİYE */
    text-align: center;
    padding: 40px;
    height: auto;
    animation: glowRed 3s infinite alternate;
}
.game-card.special:hover {
    box-shadow: 0 0 70px rgba(255, 0, 51, 0.5);
    border-color: #fff;
    transform: scale(1.02);
    background: linear-gradient(135deg, rgba(255, 0, 51, 0.25), rgba(10,10,10,0.9));
}
.game-card.special .card-icon {
    width: 80px; height: 80px; font-size: 45px;
    border-color: var(--christmas-red);
    color: var(--christmas-red);
    box-shadow: 0 0 30px rgba(255, 0, 51, 0.4);
    margin-bottom: 10px;
}
.game-card.special .card-title { 
    color: var(--christmas-red); 
    font-size: 32px; /* DAHA BÜYÜK BAŞLIK */
    text-shadow: 0 0 20px rgba(255, 0, 51, 0.6); 
    margin-bottom: 5px;
}
.game-card.special .card-desc {
    font-size: 16px; color: #ffcccc;
}

.soon-badge {
    position: absolute; right: 20px; top: 20px;
    background: var(--christmas-red); color: #fff;
    font-size: 12px; font-weight: 900; padding: 6px 15px;
    border-radius: 99px; box-shadow: 0 0 15px var(--christmas-red);
    animation: pulseRed 1.5s infinite;
}

/* İKON & METİNLER (DİĞER KARTLAR) */
.card-icon { 
    width: 60px; height: 60px; border-radius: 12px; background: #000; 
    display: flex; align-items: center; justify-content: center; font-size: 30px; 
    border: 1px solid var(--primary); color: var(--primary); 
    box-shadow: 0 0 15px rgba(0, 230, 153, 0.2);
    flex-shrink: 0;
}
.card-title { font-size: 18px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; }
.card-desc { font-size: 13px; color: #888; }

/* FOOTER */
.footer-links { margin: 40px auto; display: flex; flex-direction: column; gap: 15px; width: 100%; max-width: 400px; padding: 0 20px; box-sizing: border-box; z-index: 5; }
.f-btn { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px; border-radius: 50px; text-decoration: none; font-weight: 900; font-size: 16px; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; border: 2px solid transparent; }
.f-tg { background: #29a9ea; color: #fff; box-shadow: 0 5px 20px rgba(41, 169, 234, 0.4); }
.f-tg:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(41, 169, 234, 0.6); }
.f-site { background: var(--primary); color: #000; box-shadow: 0 5px 20px rgba(0, 230, 153, 0.4); }
.f-site:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0, 230, 153, 0.6); }

/* ANİMASYONLAR */
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulseRed { 0%{transform:scale(1);} 50%{transform:scale(1.1);} 100%{transform:scale(1);} }
@keyframes glowRed { from { box-shadow: 0 0 20px rgba(255,0,51,0.2); } to { box-shadow: 0 0 50px rgba(255,0,51,0.5); } }

/* MOBİL AYARLAR */
@media (max-width: 768px) {
    .chat-panel { width: 90%; right: 5%; bottom: 100px; }
    .app-logo { font-size: 20px; }
    .user-btn { padding: 0 10px; font-size: 12px; }
    .game-card.special { padding: 30px; }
    .game-card.special .card-title { font-size: 24px; }
}