/* =========================================
   PROJECT G - V3.7 FİNAL STYLE SHEET
   (PC Görünümü Düzeltildi + Sticky Footer)

   İÇİNDEKİLER
   -------------------
   1.  GLOBAL VE ROOT AYARLARI
   2.  NAVBAR VE HEADER
   3.  AUTH BUTONLARI VE KULLANICI PROFİLİ
   4.  ANA İÇERİK (PC FIX BURADA)
   5.  MAĞAZA (STORE)
   6.  KÜTÜPHANE VE STÜDYO (LIBRARY & STUDIO)
   7.  MODALLAR
   8.  SOHBET VE ARKADAŞLAR
   9.  YASAL SAYFA VE FOOTER
   10. YARDIMCI ARAÇLAR
   11. RESPONSIVE AYARLARI
   ========================================= */

/* =========================================
   1. GLOBAL VE ROOT AYARLARI
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --bg-dark: #0b0c10;
    --bg-card: #1f2833;
    --cyan: #66fcf1;
    --cyan-dim: #45a29e;
    --text-white: #c5c6c7;
    --text-gray: #888888;
    --glass: rgba(11, 12, 16, 0.95);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    min-height: 100vh;
    /* --- STICKY FOOTER AYARI --- */
    display: flex;
    flex-direction: column;
}

/* =========================================
   2. NAVBAR VE HEADER
   ========================================= */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    width: 100%; /* PC FIX: Genişlik garanti olsun */
}

#navbar {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    width: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: var(--cyan);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.5rem;
    box-shadow: 0 0 15px rgba(102, 252, 241, 0.4);
}

.nav-mid {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-link {
    text-decoration: none;
    color: #aaa;
    transition: 0.3s;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover {
    color: var(--cyan);
    text-shadow: 0 0 8px rgba(102, 252, 241, 0.5);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.client-btn {
    background: linear-gradient(135deg, var(--cyan), var(--cyan-dim));
    color: #000;
    padding: 10px 22px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 0 10px rgba(102, 252, 241, 0.3);
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.client-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(102, 252, 241, 0.6);
}

/* =========================================
   3. AUTH BUTONLARI VE KULLANICI PROFİLİ
   ========================================= */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-login { color: white; }

.btn-outline {
    border: 1px solid var(--cyan);
    padding: 8px 18px;
    border-radius: 6px;
    color: var(--cyan);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}
.btn-outline:hover { background: rgba(102, 252, 241, 0.1); }

.user-profile-area {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.user-name-text {
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
}

.user-dropdown-container { position: relative; }

.avatar-wrapper {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--cyan);
    cursor: pointer;
    transition: 0.2s;
}
.avatar-wrapper:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px var(--cyan);
}

#nav-user-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-menu {
    position: absolute;
    top: 115%;
    right: 0;
    width: 220px;
    background: #0b0c10;
    border: 1px solid #333;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
    z-index: 1100;
    overflow: hidden;
    animation: fadeIn 0.2s ease-out;
}

.menu-header {
    padding: 15px;
    background: #151b24;
    border-bottom: 1px solid #333;
    display: flex;
    flex-direction: column;
}
.menu-header strong { color: white; }
.menu-header small { color: #888; font-size: 0.8rem; }

.user-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.2s;
}
.user-menu a:hover {
    background: #1f2833;
    color: var(--cyan);
    padding-left: 20px;
}
.menu-divider { height: 1px; background: #333; margin: 5px 0; }

/* =========================================
   4. ANA İÇERİK (PC FIX BURADA)
   ========================================= */
main {
    width: 100%; /* PC FIX: Flex yapısında içeriğin tam genişlikte kalmasını sağlar */
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    flex: 1; /* Sticky Footer için boşluğu doldurur */
}

.hidden { display: none !important; }

.section-title {
    font-size: 2rem;
    color: white;
    margin-bottom: 30px;
    border-left: 5px solid var(--cyan);
    padding-left: 20px;
}

/* =========================================
   5. MAĞAZA (STORE)
   ========================================= */
/* Slider */
.featured-slider {
    height: 350px;
    background-color: #151b24;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 40px;
    border: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
}
.featured-slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}
.featured-content {
    width: 100%;
    padding: 40px;
    background: linear-gradient(to top, #0b0c10 10%, transparent 100%);
}
.featured-content h3 {
    font-size: 2.8rem;
    color: white;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.btn-primary {
    padding: 12px 25px;
    background: var(--cyan);
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    color: #0b0c10;
    transition: 0.3s;
}
.btn-primary:hover { background: white; transform: translateY(-2px); }

/* Kategori */
.category-bar {
    display: flex; gap: 12px; margin-bottom: 30px;
    overflow-x: auto; padding-bottom: 10px;
}
.category-chip {
    background: var(--bg-card);
    border: 1px solid #333;
    color: #aaa;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.3s;
}
.category-chip:hover, .category-chip.active {
    background: var(--cyan);
    color: #0b0c10;
    border-color: var(--cyan);
    font-weight: 600;
}

/* Oyun Kartları */
.games-grid {
    display: grid;
    /* PC FIX: Kartların PC'de yan yana durmasını garanti ediyoruz */
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

.game-card {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    transition: 0.3s;
    overflow: visible;
    position: relative;
}
.game-card:hover {
    transform: translateY(-7px);
    border-color: var(--cyan);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card-image-wrapper {
    position: relative; height: 160px;
    cursor: pointer; overflow: hidden;
    border-radius: 12px 12px 0 0;
}
.game-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.game-card:hover .game-image { transform: scale(1.1); }

.card-badges {
    position: absolute; top: 10px; left: 10px;
    display: flex; gap: 8px; z-index: 2;
}
.badge-category { background: rgba(0,0,0,0.8); color: var(--cyan); padding: 4px 10px; border-radius: 4px; font-size: 0.75rem; border:1px solid rgba(102,252,241,0.3); }
.badge-rating { background: rgba(0,0,0,0.8); color: #ffd700; padding: 4px 10px; border-radius: 4px; font-size: 0.75rem; border:1px solid rgba(255,215,0,0.3); }

.game-info { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.game-title {
    color: white; margin-bottom: 5px; cursor: pointer;
    font-size: 1.1rem; font-weight: 700;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.game-meta {
    font-size: 0.85rem; color: var(--text-gray);
    display: flex; justify-content: space-between; margin-bottom: 20px;
}

.like-btn-mini { background: none; border: none; color: #aaa; cursor: pointer; transition: 0.2s; }
.like-btn-mini:hover { color: #ff4d4d; transform: scale(1.1); }

.download-btn {
    width: 100%; padding: 12px;
    background: transparent; border: 1px solid var(--cyan); color: var(--cyan);
    border-radius: 8px; font-weight: bold; cursor: pointer;
    transition: 0.3s; margin-top: auto;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.download-btn:hover { background: var(--cyan); color: #000; }
.download-btn.owned {
    background: #2c3e50;
    border-color: #34495e;
    color: #95a5a6;
    cursor: default;
    opacity: 0.7;
}

/* Dropdown */
.dropdown { position: relative; display: inline-block; }
.dots-btn { background: none; border: none; color: #aaa; font-size: 1.2rem; cursor: pointer; padding: 0 10px; }
.dropdown-content {
    display: none; position: absolute; bottom: 100%; right: 0;
    background: #0b0c10; min-width: 140px; border: 1px solid #333;
    border-radius: 5px; z-index: 100;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.8);
}
.dropdown:hover .dropdown-content { display: block; }
.dropdown-content a { color: #ff4d4d; padding: 12px; text-decoration: none; display: block; font-size: 0.9rem; transition: 0.2s; }
.dropdown-content a:hover { background: #2c3e50; }

/* =========================================
   6. KÜTÜPHANE VE STÜDYO (LIBRARY & STUDIO)
   ========================================= */
.dashboard-layout { display: grid; grid-template-columns: 350px 1fr; gap: 40px; }

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }

.stat-card {
    background: var(--bg-card); padding: 25px;
    border-radius: 15px; border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative; overflow: hidden;
}
.stat-card::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0;
    width: 5px; background: var(--cyan);
}
.stat-info span { color: #888; font-size: 0.9rem; letter-spacing: 1px; }
.stat-info h2 { font-size: 2.5rem; margin-top: 5px; color: white; }

.styled-input {
    width: 100%; background: #151b24; border: 1px solid #333; color: white;
    padding: 15px; border-radius: 8px; outline: none; font-family: 'Poppins';
    margin-bottom: 15px; transition: border 0.3s;
}
.styled-input:focus { border-color: var(--cyan); }

.upload-areas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 10px; }

.file-upload-box {
    border: 2px dashed #333; padding: 30px; text-align: center;
    border-radius: 10px; cursor: pointer; color: #666; transition: 0.3s;
    background: rgba(0, 0, 0, 0.2);
    display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.file-upload-box:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(102, 252, 241, 0.05); }
.file-upload-box i { font-size: 1.5rem; }

.publish-btn {
    width: 100%; background: var(--cyan); border: none; padding: 15px;
    font-weight: bold; border-radius: 8px; cursor: pointer;
    margin-top: 20px; font-size: 1rem; color: #000; transition: 0.3s;
}
.publish-btn:hover { background: white; }

.my-games-list { max-height: 600px; overflow-y: auto; padding-right: 5px; }
.my-game-row {
    display: flex; justify-content: space-between; align-items: center;
    background: #151b24; padding: 15px; margin-bottom: 15px;
    border-radius: 10px; border: 1px solid #333;
}
.btn-icon {
    background: #333; color: white; border: none;
    width: 35px; height: 35px; border-radius: 6px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: 0.3s;
}
.btn-icon:hover { background: var(--cyan); color: black; }

/* =========================================
   7. MODALLAR (GENEL VE ÖZEL)
   ========================================= */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9); z-index: 2000;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: all 0.3s ease-in-out;
    backdrop-filter: blur(0px);
}
.modal-overlay:not(.hidden) { opacity: 1; visibility: visible; backdrop-filter: blur(5px); }

.modal-content {
    background: var(--bg-card); width: 95%; max-width: 800px; max-height: 90vh;
    overflow-y: auto; border-radius: 12px; border: 1px solid #333;
    position: relative; box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    opacity: 0; transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.modal-overlay:not(.hidden) .modal-content { opacity: 1; transform: translateY(0) scale(1); }

.close-modal-btn {
    position: absolute; top: 20px; right: 20px;
    background: rgba(0, 0, 0, 0.6); color: white; border: none;
    font-size: 2rem; cursor: pointer; width: 45px; height: 45px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    z-index: 10; transition: 0.3s;
}
.close-modal-btn:hover { background: #ff4d4d; }

.modal-header-image {
    height: 300px; background-size: cover; background-position: center; position: relative;
}
.modal-header-image::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 100px;
    background: linear-gradient(to top, var(--bg-card), transparent);
}
.comment-item {
    background: rgba(0, 0, 0, 0.2); padding: 15px; margin-bottom: 10px;
    border-radius: 8px; border-left: 3px solid var(--cyan);
}

.auth-container {
    background: rgba(21, 27, 36, 0.7); /* Daha şeffaf */
    backdrop-filter: blur(15px); /* Cam efekti */
    padding: 50px;
    border-radius: 20px; 
    border: 1px solid rgba(255, 255, 255, 0.08);
    max-width: 420px; margin: 80px auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); 
    text-align: center;
    position: relative;
    overflow: hidden;
}
.auth-container::before {
    content: ''; position: absolute; top: -50px; left: -50px; width: 100px; height: 100px;
    background: var(--cyan); filter: blur(80px); opacity: 0.2; pointer-events: none;
}
.auth-container h2 { 
    margin-bottom: 30px; color: white; font-size: 2rem; 
    letter-spacing: 1px; font-weight: 700;
}

.forgot-pass-link {
    color: #888; text-decoration: none; font-size: 0.85rem;
    transition: 0.3s; position: relative;
}
.forgot-pass-link:hover {
    color: var(--cyan); 
    text-shadow: 0 0 5px rgba(102, 252, 241, 0.4);
}

/* Hata Bildirimi (Compact) */
.glass-modal {
    background: linear-gradient(145deg, #10141b, #050608) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 20px !important; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8) !important;
}
.bug-header {
    text-align: center; margin-bottom: 15px; margin-top: 0;
    display: flex; align-items: center; justify-content: center; gap: 10px;
}
.icon-pulse {
    width: 35px; height: 35px; background: rgba(243, 156, 18, 0.1);
    color: #f39c12; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 1.1rem; margin: 0;
}
.bug-header h3 { color: white; font-size: 1.2rem; margin: 0; }
.bug-header p { display: none; }

.user-badge-container {
    display: flex; align-items: center; gap: 10px;
    background: rgba(255, 255, 255, 0.03); padding: 8px 12px;
    border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.05); margin-bottom: 15px;
}
.user-avatar-placeholder {
    width: 32px; height: 32px; font-size: 1rem;
    background: #1f2833; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: #66fcf1;
}
.u-name { font-size: 0.9rem; } .u-email { font-size: 0.75rem; }

.input-group label { display: block; color: #aaa; margin-bottom: 4px; font-size: 0.8rem; font-weight: 600; }
.modern-textarea {
    width: 100%; background: #0b0c10; border: 1px solid #333;
    border-radius: 6px; padding: 10px; color: white;
    font-size: 0.9rem; resize: none; outline: none; height: 80px;
}
.modern-textarea:focus { border-color: #f39c12; }

.file-upload-modern {
    display: flex; align-items: center; justify-content: center;
    gap: 10px; margin-top: 15px; border: 1px dashed #444;
    border-radius: 6px; padding: 8px; cursor: pointer;
    background: rgba(0, 0, 0, 0.2); transition: 0.2s;
}
.file-upload-modern:hover { border-color: #f39c12; color: #f39c12; }
.upload-content { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: #888; }
.upload-content i { font-size: 1rem; color: #f39c12; }

.btn-bug-submit {
    display: block; width: auto; min-width: 150px;
    margin: 15px auto 0 auto; padding: 8px 25px;
    border: none; border-radius: 4px; background: #f39c12;
    color: black; font-weight: 700; font-size: 0.9rem;
    cursor: pointer; transition: 0.2s;
}
.btn-bug-submit:hover { background: #e67e22; transform: scale(1.05); }

/* =========================================
   8. SOHBET VE ARKADAŞLAR SİSTEMİ
   ========================================= */
.chat-container-layout.page-mode {
    display: flex; height: 70vh; min-height: 500px;
    background: #0b0c10; border: 1px solid #333;
    border-radius: 15px; overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.chat-sidebar {
    width: 300px; background: #151b24;
    border-right: 1px solid #333; display: flex; flex-direction: column;
}
.sidebar-header { padding: 20px; background: #1f2833; border-bottom: 1px solid #333; }
.sidebar-header h3 { color: white; font-size: 0.9rem; margin-bottom: 12px; letter-spacing: 1px; opacity: 0.8; }
.add-friend-box { display: flex; gap: 8px; }
.chat-input-dark {
    flex: 1; background: #0b0c10; border: 1px solid #333;
    color: white; padding: 10px; border-radius: 6px;
    outline: none; font-size: 0.9rem; transition: 0.3s;
}
.chat-input-dark:focus { border-color: var(--cyan); }
.btn-icon-small {
    background: var(--cyan); border: none; width: 40px; border-radius: 6px;
    cursor: pointer; color: black; transition: 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.btn-icon-small:hover { background: white; }

.friend-list-scroll { flex: 1; overflow-y: auto; }
.friend-list-scroll::-webkit-scrollbar { width: 6px; }
.friend-list-scroll::-webkit-scrollbar-track { background: #0b0c10; }
.friend-list-scroll::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }

.friend-item {
    padding: 15px 20px; display: flex; align-items: center; gap: 15px;
    cursor: pointer; border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.2s;
}
.friend-item:hover { background: rgba(102, 252, 241, 0.05); }
.friend-item.active { background: #1f2833; border-left: 4px solid var(--cyan); }

.friend-avatar-small {
    width: 40px; height: 40px; border-radius: 50%;
    background-size: cover; border: 2px solid #333; flex-shrink: 0;
}

.chat-main-area {
    flex: 1; display: flex; flex-direction: column;
    background: #0b0c10; position: relative;
}
.chat-header {
    height: 75px; display: flex; align-items: center;
    padding: 0 25px; background: #151b24; border-bottom: 1px solid #333;
}
.chat-avatar {
    width: 45px; height: 45px; border-radius: 50%;
    background-size: cover; border: 2px solid var(--cyan);
}
.messages-area {
    flex: 1; overflow-y: auto; padding: 25px;
    display: flex; flex-direction: column; gap: 15px;
    background-image: radial-gradient(#1f2833 1px, transparent 1px);
    background-size: 20px 20px;
}
.empty-chat-state {
    height: 100%; display: flex; flex-direction: column;
    justify-content: center; align-items: center; color: #666; text-align: center;
}
.msg-bubble {
    max-width: 65%; padding: 12px 18px; border-radius: 12px;
    font-size: 0.95rem; position: relative; word-wrap: break-word; line-height: 1.5;
}
.msg-in {
    align-self: flex-start; background: #1f2833; color: #e0e0e0;
    border-bottom-left-radius: 2px;
}
.msg-out {
    align-self: flex-end; background: linear-gradient(135deg, var(--cyan), var(--cyan-dim));
    color: #000; border-bottom-right-radius: 2px; font-weight: 500;
}
.msg-time {
    font-size: 0.7rem; opacity: 0.7; display: block;
    margin-top: 5px; text-align: right;
}
.chat-input-area {
    padding: 20px; background: #151b24; border-top: 1px solid #333;
    display: flex; gap: 15px; align-items: center;
}
#message-input {
    flex: 1; background: #0b0c10; border: 1px solid #333; color: white;
    padding: 15px; border-radius: 30px; outline: none; font-family: 'Poppins';
}
#message-input:focus { border-color: var(--cyan); }
.chat-input-area button {
    background: var(--cyan); color: black; border: none;
    width: 50px; height: 50px; border-radius: 50%; font-size: 1.2rem;
    cursor: pointer; transition: 0.3s; display: flex; align-items: center;
    justify-content: center; box-shadow: 0 0 10px rgba(102, 252, 241, 0.2);
}
.chat-input-area button:hover { transform: scale(1.1); box-shadow: 0 0 20px rgba(102, 252, 241, 0.4); }
.btn-attach {
    background: transparent; color: #aaa; border: none; font-size: 1.2rem;
    cursor: pointer; padding: 0 10px; transition: 0.3s;
}
.btn-attach:hover { color: var(--cyan); transform: scale(1.1); }
.chat-image-preview {
    max-width: 100%; max-height: 200px; border-radius: 8px;
    margin-top: 5px; cursor: pointer; border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s;
}
.chat-image-preview:hover { transform: scale(1.02); }
.chat-file-link {
    display: flex; align-items: center; gap: 10px;
    background: rgba(0, 0, 0, 0.3); padding: 10px;
    border-radius: 8px; text-decoration: none;
    color: var(--cyan); font-weight: 500; margin-top: 5px;
    border: 1px solid rgba(102, 252, 241, 0.3); transition: 0.2s;
}
.chat-file-link:hover { background: rgba(102, 252, 241, 0.1); }
.chat-file-link i { font-size: 1.5rem; }

/* =========================================
   9. YASAL SAYFA VE FOOTER (STICKY FOOTER GÜNCELLEMESİ)
   ========================================= */
.app-footer {
    background: #050608;
    border-top: 1px solid #333;
    padding: 15px 0;
    margin-top: auto; /* STICKY FOOTER SIRRI: En alta iter */
    font-size: 0.85rem;
    width: 100%; /* PC FIX */
}

.footer-content {
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 15px;
}
.footer-left { display: flex; flex-direction: column; }
.footer-left small { color: #666; }
.footer-links { display: flex; align-items: center; gap: 10px; }
.footer-links a { color: #888; text-decoration: none; transition: 0.3s; }
.footer-links a:hover { color: #66fcf1; }
.footer-links .sep { color: #333; }

#legal-section {
    padding-top: 20px; padding-bottom: 10px;
    animation: fadeIn 0.5s; min-height: auto;
}
.legal-container { max-width: 900px; margin: 0 auto; }
.legal-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 15px; border-bottom: 1px solid #333; padding-bottom: 10px;
}
.btn-back {
    background: transparent; border: 1px solid #66fcf1; color: #66fcf1;
    padding: 8px 15px; border-radius: 5px; cursor: pointer;
    font-weight: bold; transition: 0.3s; display: flex; align-items: center; gap: 8px;
}
.btn-back:hover { background: #66fcf1; color: black; }
.legal-header h2 { color: white; margin: 0; }
.legal-content-box {
    background: #151b24; padding: 25px 30px;
    border-radius: 10px; border: 1px solid #333;
    color: #ccc; line-height: 1.6;
}
.legal-title {
    color: #66fcf1; font-size: 1.3rem; margin-bottom: 5px;
    border-left: 3px solid #66fcf1; padding-left: 10px;
}
.legal-date {
    color: #666; font-size: 0.8rem; margin-bottom: 20px; font-style: italic;
}
.legal-block h4 {
    color: white; margin-top: 15px; margin-bottom: 5px; font-size: 1rem;
}
.legal-divider { border: 0; height: 1px; background: #333; margin: 25px 0; }
#copyright-text div { margin-top: 10px !important; }
#copyright-text i { font-size: 2rem !important; margin-bottom: 5px !important; }
#copyright-text h4 { font-size: 1.1rem !important; margin-bottom: 5px !important; }
#copyright-text p { font-size: 0.85rem !important; margin-bottom: 0 !important; }

/* =========================================
   10. YARDIMCI ARAÇLAR
   ========================================= */
#global-loader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: #0b0c10; z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s;
}
#global-loader.fade-out { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-content { text-align: center; animation: fadeIn 0.5s; }
.loading-bar-container {
    width: 200px; height: 4px; background: #1f2833;
    border-radius: 2px; margin: 20px auto 0 auto;
    overflow: hidden; position: relative;
}
.loading-bar {
    width: 40%; height: 100%; background: #66fcf1;
    position: absolute; left: -50%;
    box-shadow: 0 0 10px #66fcf1;
    animation: loadingAnim 1.5s infinite ease-in-out;
}
.toast {
    position: fixed; top: 25px; right: 25px;
    background: #1f2833; border-left: 5px solid var(--cyan);
    color: white; padding: 15px 25px; border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); z-index: 9999;
    font-weight: 500; animation: slideIn 0.5s ease forwards;
}
.toast.error { border-left-color: #ff4d4d; }
.spinner {
    width: 25px; height: 25px;
    border: 3px solid rgba(255, 255, 255, 0.3); border-top-color: white;
    border-radius: 50%; animation: spin 1s infinite;
    display: none; margin: 0 auto;
}

/* =========================================
   11. ANİMASYONLAR
   ========================================= */
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes loadingAnim { 0% { left: -50%; width: 40%; } 50% { left: 30%; width: 60%; } 100% { left: 100%; width: 40%; } }

/* =========================================
   12. RESPONSIVE (MOBİL UYUM)
   ========================================= */
@media (max-width: 900px) {
    .dashboard-layout { grid-template-columns: 1fr; }
    #navbar { flex-direction: column; gap: 20px; padding: 20px; }
    .nav-mid { flex-wrap: wrap; justify-content: center; width: 100%; }
}

@media (max-width: 800px) {
    .chat-container-layout.page-mode { flex-direction: column; height: auto; min-height: 80vh; }
    .chat-sidebar { width: 100%; height: 300px; border-right: none; border-bottom: 1px solid #333; }
    .chat-main-area { height: 500px; }
}

@media (max-width: 768px) {
    .footer-content { flex-direction: column; text-align: center; }
    .legal-content-box { padding: 20px; }
    .legal-header { flex-direction: column; gap: 15px; align-items: flex-start; }
    
    main { padding: 0 15px; margin-top: 20px; }
    .section-title { font-size: 1.6rem; padding-left: 15px; border-left-width: 4px; margin-bottom: 20px; }
    .games-grid { gap: 20px; }
}

@media (max-width: 600px) {
    .games-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 1.4rem; }
    .card-image-wrapper { height: 180px; }
    .game-info { padding: 15px; }
}
/* =========================================
   YENİ: AYARLAR SAYFASI STİLLERİ
   ========================================= */
.settings-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
    background: var(--bg-card);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid #333;
}

.settings-sidebar {
    border-right: 1px solid #333;
    padding-right: 20px;
}
.settings-sidebar h3 {
    color: white;
    font-size: 1.2rem;
    padding-bottom: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
}

.settings-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.settings-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    text-decoration: none;
    color: var(--text-gray);
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}
.settings-link:hover {
    background: #151b24;
    color: white;
}
.settings-link.active {
    background: rgba(102, 252, 241, 0.1);
    color: var(--cyan);
    font-weight: 600;
}

/* Profil Formu Stilleri */
.profile-form-grid {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 30px;
    align-items: flex-start;
}
.profile-avatar-area label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #aaa;
}
.avatar-preview-wrapper {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    border: 4px solid #333;
}
#profile-image-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.avatar-edit-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    cursor: pointer;
    transition: opacity 0.3s;
}
.avatar-preview-wrapper:hover .avatar-edit-overlay {
    opacity: 1;
}
.avatar-edit-overlay i { font-size: 1.5rem; }

.profile-info-area label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #aaa;
}

/* Responsive için ekleme */
@media (max-width: 768px) {
    .settings-layout {
        grid-template-columns: 1fr;
    }
    .profile-form-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .avatar-preview-wrapper {
        margin: 0 auto 20px auto;
    }
}