/* =========================================
   OYUN ŞAHİNİ - GAME PAGE STYLES (v3 FINAL)
   ========================================= */

:root {
    /* --- RENK PALETİ --- */
    --primary: #FF6B00;
    --primary-light: #FF8E3C;
    --primary-dark: #CC5500;
    --secondary: #6366F1;
    
    /* Koyu Tema Değişkenleri */
    --dark: #0F0F0F;
    --dark-light: #1A1A1A;
    --dark-lighter: #2D2D2D;
    --dark-surface: #141414;
    
    /* Metin Renkleri */
    --text: #FFFFFF;
    --text-secondary: #A0A0A0;
    --text-muted: #666;
    
    /* UI Elementleri */
    --radius: 16px;
    --radius-sm: 8px;
    --shadow: 0 10px 30px rgba(0,0,0,0.3);
    --shadow-glow: 0 0 20px rgba(255, 107, 0, 0.2);
    --gradient: linear-gradient(135deg, #FF6B00 0%, #FF8E3C 100%);
    --border-color: rgba(255,255,255,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- BREADCRUMB (Navigasyon Yolu) --- */
.breadcrumb-container {
    max-width: 1400px;
    margin: 1rem auto;
    padding: 0 1.5rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    list-style: none;
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .active { color: var(--text); font-weight: 500; pointer-events: none; }
.breadcrumb li::after { content: '›'; margin-left: 0.5rem; color: var(--text-muted); }
.breadcrumb li:last-child::after { content: ''; }

/* --- GAME STAGE (SİNEMA MODU) --- */
.game-stage-wrapper {
    max-width: 1400px;
    margin: 0 auto 2rem;
    background: var(--dark-light);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

/* Siyah Oyun Alanı */
.game-stage {
    width: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.game-frame-container {
    width: 100%;
    aspect-ratio: 16/9; /* Geniş Ekran Formatı */
    max-height: 85vh;
    position: relative;
}

.game-frame-container iframe, 
.game-frame-container object,
.game-frame-container #emulatorContainer {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Oyun Altı Kontrol Barı */
.game-controls-bar {
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--dark-surface);
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 1rem;
}

.game-title-group h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.game-category-badge {
    font-size: 0.75rem;
    color: var(--primary);
    background: rgba(255, 107, 0, 0.1);
    padding: 2px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 107, 0, 0.2);
    display: inline-block;
    margin-top: 4px;
    font-weight: 600;
}

/* Butonlar (Tam Ekran, Yorum vb.) */
.game-actions { display: flex; gap: 10px; align-items: center; }

.action-btn {
    background: var(--dark-lighter);
    border: 1px solid var(--border-color);
    color: var(--text);
    width: 42px;
    height: 42px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* ---------------------------------------------------- */
/* [YENİ] BEĞENİ (LIKE) BUTONU STİLLERİ - BURASI EKLENDİ */
/* ---------------------------------------------------- */
.btn-like {
    width: auto; /* Kare değil dikdörtgen olsun */
    padding: 0 15px;
    gap: 8px;
    font-weight: 600;
    font-size: 1rem;
}

/* Beğenilmiş Durum (Aktif) */
.btn-like.active {
    background: rgba(255, 71, 87, 0.15);
    border-color: #ff4757;
    color: #ff4757;
}

/* Kalp Animasyonu */
.btn-like.active i {
    animation: heartBeat 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}
/* ---------------------------------------------------- */


/* Rating Widget (Yıldız Gösterimi) */
.rating-widget {
    background: rgba(0,0,0,0.3);
    padding: 5px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.stars-display { color: #FFD700; font-weight: 700; display: flex; gap: 6px; align-items: center; }

/* --- CONTENT LAYOUT (Izgara Yapısı) --- */
.content-layout {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 320px; /* Sol: İçerik, Sağ: Sidebar */
    gap: 2rem;
}

/* Sol Kolon */
.main-column { min-width: 0; }

/* --- OYUN BİLGİ KARTI --- */
.game-info-card {
    background: var(--dark-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.info-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.8rem;
}

.info-header h3 { color: var(--text); font-size: 1.2rem; }
.stats span { margin-left: 15px; color: var(--text-secondary); font-size: 0.9rem; display: inline-flex; align-items: center; gap: 6px; }
.stats i { color: var(--primary); }

.info-body p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; }

/* Kullanıcı Oylama Alanı */
.user-rating-area {
    margin-top: 1.5rem;
    background: rgba(0,0,0,0.2);
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px dashed var(--border-color);
}

.interactive-stars i {
    font-size: 1.4rem;
    cursor: pointer;
    color: #444;
    transition: transform 0.2s, color 0.2s;
}
.interactive-stars i:hover, .interactive-stars i.rated { color: #FFD700; transform: scale(1.2); }
.rating-feedback { font-size: 0.9rem; font-weight: 600; margin-left: auto; }

/* --- SIDEBAR (Benzer Oyunlar) --- */
.sidebar-widget {
    background: var(--dark-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.2rem;
    position: sticky;
    top: 100px; /* Header yüksekliğine göre ayarla */
}

.sidebar-widget h3 { margin-bottom: 1rem; font-size: 1.1rem; border-left: 3px solid var(--primary); padding-left: 10px; }

.sidebar-games-grid { display: flex; flex-direction: column; gap: 1rem; }

.mini-game-card {
    display: flex;
    gap: 12px;
    padding: 10px;
    border-radius: 10px;
    background: rgba(255,255,255,0.03);
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.mini-game-card:hover {
    background: rgba(255,255,255,0.06);
    transform: translateX(5px);
    border-color: var(--primary);
}

.mini-img-container {
    width: 70px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.mini-img-container img { width: 100%; height: 100%; object-fit: cover; }

.mini-info { display: flex; flex-direction: column; justify-content: center; }
.mini-info h4 { font-size: 0.9rem; color: var(--text); font-weight: 600; margin-bottom: 2px; line-height: 1.2; }
.mini-plays { font-size: 0.75rem; color: var(--text-secondary); }
.mini-plays i { color: var(--primary); font-size: 0.7rem; }

/* --- YORUM SİSTEMİ (Modern) --- */
.comments-section {
    background: var(--dark-light);
    border-radius: var(--radius);
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.section-head h3 { font-size: 1.4rem; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 10px; }

/* Yorum Formu */
.comment-form-box {
    background: rgba(0,0,0,0.2);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.user-badge-comment {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--primary);
}
.user-badge-comment img { width: 24px; height: 24px; border-radius: 50%; }

.form-input, .form-textarea {
    width: 100%;
    padding: 12px 15px;
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 8px;
    color: var(--text);
    margin-bottom: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border 0.3s;
}

.form-input:focus, .form-textarea:focus { outline: none; border-color: var(--primary); }
.form-textarea { resize: vertical; min-height: 80px; }

/* Yorum Listesi */
.comment-item {
    display: flex;
    gap: 15px;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.5s ease;
}

.avatar-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(255, 107, 0, 0.3);
    flex-shrink: 0;
}

.comment-content {
    background: rgba(255,255,255,0.03);
    padding: 1rem 1.2rem;
    border-radius: 0 16px 16px 16px;
    border: 1px solid var(--border-color);
    flex: 1;
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.comment-author { font-weight: 700; color: var(--primary-light); }
.comment-time { color: var(--text-muted); }
.comment-text { font-size: 0.95rem; color: #e0e0e0; line-height: 1.5; }

.no-comments {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    border: 2px dashed var(--border-color);
    border-radius: 12px;
}
.no-comments i { font-size: 2rem; margin-bottom: 0.5rem; display: block; }

/* --- XP BİLDİRİMİ (Toast) --- */
.xp-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--dark-light);
    border-left: 4px solid #00ff88;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    animation: slideInRight 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 300px;
}

.xp-icon {
    width: 32px;
    height: 32px;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00ff88;
    font-size: 1rem;
}
.xp-text { font-weight: 600; color: #fff; font-size: 0.95rem; }

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- RESPONSIVE (Mobil Uyumluluk) --- */
@media (max-width: 992px) {
    .content-layout { grid-template-columns: 1fr; }
    .sidebar-widget { position: static; margin-top: 2rem; }
    .sidebar-games-grid { flex-direction: row; overflow-x: auto; padding-bottom: 10px; }
    .mini-game-card { min-width: 200px; }
}

@media (max-width: 768px) {
    .game-controls-bar { justify-content: center; text-align: center; }
    .game-actions { width: 100%; justify-content: center; margin-top: 10px; }
    .game-frame-container { aspect-ratio: 4/3; max-height: 60vh; }
    .breadcrumb-container { padding: 0 1rem; margin-top: 0.5rem; }
    .sidebar-games-grid { flex-direction: column; }
}