:root { 
    --primary: #ff7d10;       /* WIN TURUNCUSU */
    --primary-light: #ff9e4d; /* Açık Turuncu */
    --secondary: #1a3c8a;     /* Parlak Lacivert */
    --bg-dark: #0f1c3f;       /* Derin Lacivert */
    --glass: rgba(20, 40, 100, 0.7); /* Şeffaf Mavi Cam */
    --card-bg: rgba(255, 255, 255, 0.07);
    --text-color: #ffffff;
}

* { box-sizing: border-box; }

body {
    min-height: 100vh;
    margin: 0; 
    padding: 100px 15px 0 15px !important;
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-dark);
    overflow-x: hidden;
    display: flex; flex-direction: column; align-items: center;
    position: relative;
}

/* --- ARKA PLAN (Aydınlık & Renkli) --- */
.bg-layer {
    position: fixed; inset: 0; z-index: -5;
    background: radial-gradient(circle at 50% -20%, #2a5298 0%, #0f1c3f 80%);
}

.ambient-light {
    position: fixed; border-radius: 50%;
    filter: blur(100px); z-index: -4; opacity: 0.6;
    animation: floatAmbient 20s infinite alternate ease-in-out;
}
.al-orange {
    top: 0%; left: 0%; width: 70vw; height: 70vw;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.4; animation-delay: 0s;
}
.al-blue {
    bottom: -10%; right: -10%; width: 80vw; height: 80vw;
    background: radial-gradient(circle, #2980b9 0%, transparent 60%);
    opacity: 0.5; animation-delay: -5s;
}
.al-center {
    top: 40%; left: 50%; transform: translate(-50%, -50%);
    width: 50vw; height: 50vw;
    background: radial-gradient(circle, #6d28d9 0%, transparent 70%);
    opacity: 0.3; animation-duration: 25s;
}

@keyframes floatAmbient {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(20px, 20px) scale(1.1); }
}

.grid-overlay {
    position: fixed; inset: 0; z-index: -3;
    /* Altıgen (Hexagon) Dokusu */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg id='hexagons' fill='%23ffffff' fill-opacity='0.05' fill-rule='nonzero'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

/* HEADER */
#app-header { 
    position: fixed; top: 0; left: 0; width: 100%; height: 80px; 
    background: rgba(15, 28, 63, 0.85); backdrop-filter: blur(20px); z-index: 9000; 
    display: flex; align-items: center; justify-content: space-between; 
    padding: 0 25px; border-bottom: 1px solid rgba(255, 125, 16, 0.3);
    box-shadow: 0 5px 30px rgba(0,0,0,0.2);
}
.app-logo { 
    font-weight: 900; font-size: 24px; color: #fff; text-decoration: none; 
    letter-spacing: 1px; text-transform: uppercase;
} 
.app-logo span { color: var(--primary); text-shadow: 0 0 20px var(--primary); }

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

.user-btn { 
    background: linear-gradient(90deg, var(--primary), #e65100); border: none; color: #fff; 
    padding: 0 20px; border-radius: 8px; height: 40px; cursor: pointer; 
    display: flex; align-items: center; gap: 10px; font-weight: 700; transition: 0.3s;
    font-size: 14px; box-shadow: 0 5px 15px rgba(255, 125, 16, 0.3);
}
.user-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(255, 125, 16, 0.5); }

/* DROPDOWN & MODAL */
.user-dropdown { position: absolute; top: 75px; right: 20px; background: #1a2b55; border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; width: 220px; display: none; flex-direction: column; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.5); z-index: 9100; }
.user-dropdown.active { display: flex; animation: fadeIn 0.2s ease; }
.ud-item { padding: 15px; color: #eee; 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(--primary); color: #fff; }

.modal-overlay { position: fixed; inset: 0; background: rgba(5, 10, 30, 0.85); z-index: 10000; display: none; align-items: center; justify-content: center; backdrop-filter: blur(10px); }
.modal-box { 
    background: #152347; padding: 40px; border-radius: 24px; 
    border: 1px solid rgba(255, 125, 16, 0.3); text-align: center; 
    width: 90%; max-width: 400px; 
    box-shadow: 0 20px 60px rgba(0,0,0,0.5); 
}
.modal-title { font-size: 26px; font-weight: 800; color: #fff; margin-bottom: 25px; letter-spacing: 1px; }
.modal-title span { color: var(--primary); }
.modal-input { 
    width: 100% !important; padding: 15px; background: #0b142b; 
    border: 1px solid #333; border-radius: 12px; color: #fff; margin-bottom: 20px; 
    outline: none; text-align: center; font-size: 16px; transition: 0.3s;
}
.modal-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255, 125, 16, 0.2); }
.modal-btn { 
    width: 100% !important; padding: 15px; background: var(--primary); 
    border: none; border-radius: 12px; color: #fff; font-weight: 800; font-size: 16px;
    cursor: pointer; text-transform: uppercase; transition: 0.3s;
    box-shadow: 0 5px 20px rgba(255, 125, 16, 0.3);
}
.modal-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255, 125, 16, 0.5); }

/* CHAT */
.chat-badge { position: absolute; top: -5px; right: -5px; background: #ff4757; color: #fff; font-size: 11px; font-weight: bold; min-width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; opacity: 0; transition: 0.3s; pointer-events: none; }
.chat-badge.visible { opacity: 1; transform: scale(1); }
#chat-fab { position: fixed; bottom: 30px; right: 25px; width: 60px; height: 60px; background: #1a3c8a; border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; cursor: pointer; z-index: 9500; color: #fff; box-shadow: 0 10px 30px rgba(26, 60, 138, 0.5); transition: 0.3s; }
#chat-fab:hover { transform: scale(1.1); background: var(--primary); box-shadow: 0 10px 30px rgba(255, 125, 16, 0.5); }
.chat-panel { position: fixed; bottom: 105px; right: 25px; width: 350px; height: 500px; background: #152347; border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; display: none; flex-direction: column; z-index: 9500; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.chat-panel.active { display: flex; animation: slideUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.chat-header { padding: 15px; background: linear-gradient(90deg, #1a3c8a, #0f1c3f); font-weight: 800; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.chat-msgs { flex: 1; overflow-y: auto; padding: 15px; display: flex; flex-direction: column; gap: 10px; }
.chat-input-area { display: flex; border-top: 1px solid rgba(255,255,255,0.05); padding: 12px; background: #0b142b; }
.chat-input { flex: 1; background: #152347; border: 1px solid #333; padding: 10px; color: #fff; outline: none; border-radius: 8px; }
.chat-send { background: transparent; border: none; color: var(--primary); padding: 0 15px; cursor: pointer; font-weight: bold; font-size: 22px; }
.c-msg { color: #ddd; background: rgba(255,255,255,0.05); padding: 10px 14px; border-radius: 8px; font-size: 13px; line-height: 1.4; border-left: 2px solid transparent; }
.c-msg.admin { background: rgba(255, 125, 16, 0.15); border-color: var(--primary); color: #fff; }
.c-msg b { color: var(--primary-light); margin-right: 6px; }

/* GRID & CARDS */
.games-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; width: 100%; max-width: 1200px; padding: 0 20px; }
.game-card { 
    background: var(--card-bg); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: 20px; padding: 25px; 
    display: flex; align-items: center; gap: 15px; 
    text-decoration: none; color: #fff; transition: 0.3s;
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.game-card:hover { 
    transform: translateY(-5px); 
    border-color: var(--primary); 
    background: rgba(255, 125, 16, 0.1);
    box-shadow: 0 15px 40px rgba(255, 125, 16, 0.2); 
}
.card-icon { 
    width: 65px; height: 65px; border-radius: 16px; 
    background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; 
    font-size: 32px; border: 1px solid rgba(255,255,255,0.1); color: #fff;
    transition: 0.3s;
}
.game-card:hover .card-icon { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 5px 20px rgba(255, 125, 16, 0.4); }
.card-title { font-size: 18px; font-weight: 800; text-transform: uppercase; color: #fff; }
.game-card:hover .card-title { color: var(--primary); }
.card-desc { font-size: 13px; color: #ccc; margin-top: 2px; }

/* FEATURED CARD */
.featured-card { 
    background: linear-gradient(135deg, rgba(255, 125, 16, 0.2), rgba(26, 60, 138, 0.6));
    border: 1px solid rgba(255, 125, 16, 0.4); 
    width: 100%; max-width: 900px; 
    margin: 0 auto 50px auto; 
    border-radius: 24px; padding: 40px; 
    text-align: center; position: relative; overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.fc-title { font-size: 34px; font-weight: 900; color: #fff; margin-bottom: 10px; letter-spacing: 1px; }
.fc-title span { color: var(--primary); }
.fc-desc { color: #e0e0e0; font-size: 16px; margin-bottom: 0; }
.fc-badge { background: #fff; color: var(--primary); padding: 6px 15px; border-radius: 30px; font-size: 12px; font-weight: 800; position: absolute; top: 20px; right: 20px; box-shadow: 0 5px 15px rgba(0,0,0,0.2); }

/* FOOTER */
.footer-links { margin: 60px auto; display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.f-btn { 
    display: flex; align-items: center; justify-content: center; gap: 10px; 
    padding: 16px 35px; border-radius: 50px; text-decoration: none; 
    font-weight: 700; font-size: 15px; transition: 0.3s; 
    border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.05); color: #fff;
}
.f-btn:hover { border-color: var(--primary); background: rgba(255, 125, 16, 0.15); box-shadow: 0 5px 20px rgba(255, 125, 16, 0.2); }

/* --- LOGO VE YAZI DÜZENİ --- */
.main-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin-bottom: 15px;
}

/* W Harfi (Resim) - Konumlandırma GÜNCELLENDİ */
.w-logo-img {
    height: 74px; /* %5 büyüme: 70px -> 74px */
    width: auto;
    filter: drop-shadow(0 0 20px rgba(255, 125, 16, 0.6));
    /* Logo Konum Ayarı: 1px Yukarı, 2px Sağa */
    position: relative;
    top: -5px; /* Eskisi -4 idi, şimdi -5 (1px daha yukarı) */
    left: 6px; /* Eskisi 4 idi, şimdi 6 (2px daha sağa) */
}

/* IN SAVAŞLARI (Yazı) */
.hero-title-rest {
    font-size: 56px;
    font-weight: 900;
    letter-spacing: 2px;
    color: #fff;
    text-shadow: 0 0 30px rgba(255, 125, 16, 0.4);
    line-height: 1;
}


@media (max-width: 768px) {
    .al-orange, .al-blue, .al-center { opacity: 0.8 !important; width: 100vw; height: 100vw; filter: blur(80px); }
    
    .w-logo-img { height: 53px; } /* Mobilde de %5 büyütüldü */
    .hero-title-rest { font-size: 40px; }
    
    .chat-panel { width: 90%; right: 5%; bottom: 100px; height: 60vh; }
    .footer-links { flex-direction: column; width: 100%; padding: 0 20px; }
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }