/**
 * indieceviri.com - Ana Stil Dosyası
 * Tema: "Clean Pixel-Art" / "Modern Retro"
 * Renk paleti logodan türetilmiştir
 */

/* ============================================================
   CSS DEĞİŞKENLERİ
   ============================================================ */
:root {
    /* Ana Renkler (Logodan türetilmiş) */
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --accent: #f59e0b;
    --accent-light: #fbbf24;
    --accent-dark: #d97706;

    /* Arka Plan */
    --bg-primary: #0a0a1a;
    --bg-secondary: #111130;
    --bg-surface: #1a1a3e;
    --bg-surface-hover: #24245a;
    --bg-card: #16213e;

    /* Metin */
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-dim: #64748b;

    /* İşlevsel */
    --success: #10b981;
    --success-light: #34d399;
    --danger: #ef4444;
    --danger-light: #f87171;
    --warning: #f59e0b;
    --info: #3b82f6;

    /* Kenarlık */
    --border: #1e293b;
    --border-light: #334155;

    /* Pixel Art Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 40px;
    --spacing-2xl: 64px;

    /* Border Radius - Hafif pikselli */
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 8px;
    --radius-xl: 16px;

    /* Gölgeler */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.4);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.5);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.6);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);

    /* Container */
    --container-max: 1280px;

    /* Geçiş */
    --transition: 0.2s ease;
}

/* ============================================================
   PIXEL FONT (Okuma modu kapalıyken)
   ============================================================ */
body:not(.reading-mode) {
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.8;
}

/* Okuma Modu - Düz font */
body.reading-mode {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

/* ============================================================
   RESET & TEMEL
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.reading-mode {
    background-color: #f8fafc;
    color: #1e293b;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent);
}

body.reading-mode a {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    width: 100%;
}

/* ============================================================
   OKUMA MODU ÇUBUĞU
   ============================================================ */
.reading-mode-bar {
    background: var(--bg-surface);
    border-bottom: 2px solid var(--border);
    padding: var(--spacing-sm) 0;
    text-align: right;
}

body.reading-mode .reading-mode-bar {
    background: #fff;
    border-bottom-color: #e2e8f0;
}

.reading-mode-btn {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    padding: 4px 12px;
    cursor: pointer;
    border-radius: var(--radius-md);
    font-size: 11px;
    margin-right: var(--spacing-lg);
    transition: all var(--transition);
}

.reading-mode-btn:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
}

body.reading-mode .reading-mode-btn {
    border-color: #cbd5e1;
    color: #64748b;
}

/* ============================================================
   DUYURU BANNER
   ============================================================ */
.announcement-banner {
    padding: var(--spacing-sm) 0;
    text-align: center;
    font-size: 11px;
    position: relative;
    border-bottom: 2px solid;
}

.announcement-banner .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
}

.announcement-info {
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--info);
    color: var(--text-primary);
}

.announcement-success {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--success);
}

.announcement-warning {
    background: rgba(245, 158, 11, 0.15);
    border-color: var(--warning);
}

.announcement-error {
    background: rgba(239, 68, 68, 0.15);
    border-color: var(--danger);
}

.announcement-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 18px;
    cursor: pointer;
    padding: 0 8px;
    opacity: 0.7;
}

.announcement-close:hover {
    opacity: 1;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

body.reading-mode .site-header {
    background: #fff;
    border-bottom-color: #e2e8f0;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: var(--spacing-lg);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-shrink: 0;
}

.logo-img {
    image-rendering: pixelated;
    border-radius: var(--radius-sm);
}

.logo-text {
    font-weight: bold;
    font-size: 16px;
    color: var(--accent);
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

/* Header Search */
.header-search {
    display: flex;
    flex: 1;
    max-width: 320px;
    margin: 0 var(--spacing-md);
}
.header-search-input {
    width: 100%;
    padding: 8px 14px;
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 11px;
    outline: none;
    transition: all var(--transition);
}
.header-search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}
.header-search-input::placeholder {
    color: var(--text-dim);
}
body.reading-mode .header-search-input {
    background: #fff;
    border-color: #cbd5e1;
    color: #1e293b;
}

/* Breadcrumb */
.breadcrumb {
    padding: var(--spacing-md) 0;
    font-size: 10px;
    color: var(--text-dim);
}
.breadcrumb a {
    color: var(--text-secondary);
}
.breadcrumb span {
    margin: 0 6px;
}

/* Navigasyon */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: var(--spacing-xs);
}

.main-nav a {
    display: block;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    color: var(--text-secondary);
    border: 2px solid transparent;
}

body.reading-mode .main-nav a {
    font-size: 14px;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text-primary);
    background: var(--bg-surface);
    border-color: var(--border);
}

body.reading-mode .main-nav a:hover,
body.reading-mode .main-nav a.active {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #1e293b;
}

/* Header Sağ */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-shrink: 0;
}

/* Kullanıcı Menüsü */
.user-menu-wrapper {
    position: relative;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 11px;
    transition: all var(--transition);
}

.user-menu-trigger:hover {
    border-color: var(--primary);
}

.user-avatar-sm {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.user-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 4px;
    background: var(--bg-surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    overflow: hidden;
}

.user-dropdown.active {
    display: block;
}

.user-dropdown a {
    display: block;
    padding: 10px 16px;
    font-size: 11px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

body.reading-mode .user-dropdown a {
    font-size: 14px;
}

.user-dropdown a:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
}

.user-dropdown hr {
    border: none;
    border-top: 1px solid var(--border);
}

.logout-link {
    color: var(--danger-light) !important;
}

.badge-role {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 2px;
    font-size: 9px;
    background: var(--primary);
    color: #fff;
}

.badge-translator {
    background: var(--success);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    display: block;
}

/* ============================================================
   BUTONLAR
   ============================================================ */
.btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body.reading-mode .btn {
    font-size: 14px;
    text-transform: none;
    padding: 10px 24px;
    border-radius: var(--radius-md);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary-dark);
    box-shadow: 0 2px 0 var(--primary-dark);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 3px 0 var(--primary-dark);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-light);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary-light);
}

.btn-success {
    background: var(--success);
    color: #fff;
    border-color: #059669;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
    border-color: #dc2626;
}

.btn-sm {
    padding: 4px 12px;
    font-size: 10px;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 14px;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================================
   FLASH MESAJLARI
   ============================================================ */
.flash-message {
    padding: 12px 20px;
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
    border: 2px solid;
    font-size: 12px;
    animation: flashIn 0.3s ease;
}

@keyframes flashIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.flash-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--success);
    color: var(--success-light);
}

.flash-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--danger);
    color: var(--danger-light);
}

.flash-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--warning);
    color: var(--accent-light);
}

.flash-info {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--info);
    color: #60a5fa;
}

/* ============================================================
   ANA İÇERİK
   ============================================================ */
.main-content {
    flex: 1;
    padding: var(--spacing-xl) 0;
}

/* ============================================================
   HERO BÖLÜMÜ
   ============================================================ */
.hero {
    text-align: center;
    padding: var(--spacing-2xl) 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at center, rgba(99,102,241,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero h1 {
    font-size: 28px;
    color: var(--accent);
    margin-bottom: var(--spacing-md);
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

body.reading-mode .hero h1 {
    font-size: 42px;
    color: var(--primary-dark);
    text-shadow: none;
}

.hero p {
    font-size: 13px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
}

body.reading-mode .hero p {
    font-size: 18px;
    color: #64748b;
}

/* ============================================================
   KARTLAR
   ============================================================ */
.card {
    background: var(--bg-surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: all var(--transition);
}

.card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

body.reading-mode .card {
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-sm);
}

body.reading-mode .card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.card-header {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--border);
}

body.reading-mode .card-header {
    border-bottom-color: #e2e8f0;
}

.card-title {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

body.reading-mode .card-title {
    font-size: 20px;
}

/* Oyun Kartı */
.game-card {
    background: var(--bg-surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.game-card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg-primary);
}

.game-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-card-body {
    padding: var(--spacing-md);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.game-card-title {
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

body.reading-mode .game-card-title {
    font-size: 16px;
}

.game-card-meta {
    font-size: 10px;
    color: var(--text-dim);
    margin-bottom: var(--spacing-sm);
}

body.reading-mode .game-card-meta {
    font-size: 13px;
}

/* Oyun Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

/* ============================================================
   İLERLEME ÇUBUĞU (Animasyonlu)
   ============================================================ */
.progress-bar-wrapper {
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    height: 24px;
    overflow: hidden;
    position: relative;
}

body.reading-mode .progress-bar-wrapper {
    height: 20px;
    border-radius: var(--radius-md);
    background: #f1f5f9;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: inherit;
    position: relative;
    transition: width 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: #fff;
    font-weight: bold;
    min-width: fit-content;
}

body.reading-mode .progress-bar-fill {
    font-size: 12px;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,0.2) 50%,
        transparent 100%
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Çeviri durumu renkleri */
.status-planning { --status-color: var(--info); }
.status-in_progress { --status-color: var(--accent); }
.status-beta { --status-color: #a78bfa; }
.status-completed { --status-color: var(--success); }
.status-abandoned { --status-color: var(--danger); }

.status-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 2px;
    font-size: 9px;
    font-weight: bold;
    background: rgba(59, 130, 246, 0.2);
    color: var(--status-color, var(--info));
    border: 1px solid var(--status-color, var(--info));
    text-transform: uppercase;
}

body.reading-mode .status-badge {
    font-size: 11px;
    padding: 3px 12px;
}

/* ============================================================
   TABLOLAR
   ============================================================ */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

body.reading-mode table {
    font-size: 14px;
}

th {
    text-align: left;
    padding: 12px 16px;
    background: var(--bg-surface);
    border-bottom: 2px solid var(--border);
    color: var(--text-secondary);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

body.reading-mode th {
    font-size: 13px;
    background: #f8fafc;
    border-bottom-color: #e2e8f0;
}

td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
}

body.reading-mode td {
    border-bottom-color: #e2e8f0;
}

tr:hover td {
    background: rgba(99, 102, 241, 0.05);
}

/* ============================================================
   FORMLAR
   ============================================================ */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body.reading-mode .form-label {
    font-size: 14px;
    text-transform: none;
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 12px;
    transition: all var(--transition);
}

body.reading-mode .form-input {
    font-size: 16px;
    padding: 12px 16px;
    background: #fff;
    border-color: #cbd5e1;
    color: #1e293b;
    border-radius: var(--radius-md);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

textarea.form-input {
    min-height: 120px;
    resize: vertical;
}

select.form-input {
    cursor: pointer;
}

.form-error {
    font-size: 10px;
    color: var(--danger-light);
    margin-top: var(--spacing-xs);
}

.form-hint {
    font-size: 10px;
    color: var(--text-dim);
    margin-top: var(--spacing-xs);
}

/* ============================================================
   LOGIN / REGISTER SAYFASI
   ============================================================ */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
}

.auth-card {
    background: var(--bg-surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-xl);
}

body.reading-mode .auth-card {
    background: #fff;
    border-color: #e2e8f0;
    box-shadow: var(--shadow-md);
}

.auth-card h2 {
    text-align: center;
    color: var(--accent);
    margin-bottom: var(--spacing-xs);
    font-size: 18px;
}

.auth-card .auth-subtitle {
    text-align: center;
    color: var(--text-dim);
    font-size: 10px;
    margin-bottom: var(--spacing-lg);
}

.auth-divider {
    text-align: center;
    position: relative;
    margin: var(--spacing-lg) 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%; left: 0; right: 0;
    height: 1px;
    background: var(--border);
}

.auth-divider span {
    background: var(--bg-surface);
    padding: 0 16px;
    position: relative;
    color: var(--text-dim);
    font-size: 10px;
}

body.reading-mode .auth-divider span {
    background: #fff;
    font-size: 13px;
}

.discord-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #5865F2;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: all var(--transition);
}

.discord-btn:hover {
    background: #4752C4;
    transform: translateY(-1px);
}

/* ============================================================
   SAYFALAMA
   ============================================================ */
.pagination {
    margin-top: var(--spacing-lg);
    text-align: center;
}

.pagination ul {
    list-style: none;
    display: inline-flex;
    gap: 4px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 6px 12px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 11px;
}

.pagination a:hover {
    border-color: var(--primary);
    color: var(--primary-light);
    background: var(--bg-surface);
}

.pagination span.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--bg-secondary);
    border-top: 2px solid var(--border);
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    margin-top: auto;
}

body.reading-mode .site-footer {
    background: #f8fafc;
    border-top-color: #e2e8f0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-col h4 {
    color: var(--accent);
    font-size: 13px;
    margin-bottom: var(--spacing-md);
}

body.reading-mode .footer-col h4 {
    font-size: 16px;
    color: var(--primary-dark);
}

.footer-col p {
    color: var(--text-secondary);
    font-size: 11px;
}

body.reading-mode .footer-col p {
    font-size: 14px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-col ul a {
    color: var(--text-secondary);
    font-size: 11px;
}

body.reading-mode .footer-col ul a {
    font-size: 14px;
}

.footer-col ul a:hover {
    color: var(--accent);
}

.footer-social {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
    flex-wrap: wrap;
}

.footer-social a {
    padding: 4px 10px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 10px;
}

.footer-stats li {
    color: var(--text-secondary);
    font-size: 11px;
    margin-bottom: var(--spacing-xs);
}

.footer-stats strong {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: var(--spacing-md);
    text-align: center;
    font-size: 10px;
    color: var(--text-dim);
}

body.reading-mode .footer-bottom {
    font-size: 13px;
    border-top-color: #e2e8f0;
}

.footer-note {
    margin-top: var(--spacing-xs);
    font-style: italic;
}

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
.scroll-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #fff;
    border: 2px solid var(--primary-dark);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition);
    z-index: 999;
    box-shadow: 0 4px 0 var(--primary-dark);
}

.scroll-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 0 var(--primary-dark);
}

/* ============================================================
   OYUN DETAY SAYFASI (Yeni Layout: Sol Banner + Sag Panel)
   ============================================================ */
.game-top-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    align-items: start;
}

.game-top-left {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.game-banner-card {
    background: var(--bg-surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}
.game-banner-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-lg);
}
.game-banner-placeholder {
    width: 100%;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: var(--text-dim);
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
}

.game-info-card {
    background: var(--bg-surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
}
.game-title {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}
.game-meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    font-size: 10px;
    color: var(--text-dim);
    margin-bottom: var(--spacing-sm);
}
.game-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    align-items: center;
    font-size: 10px;
    color: var(--text-dim);
}

/* Sag Indirme Paneli */
.game-top-right {
    min-width: 0;
}
.download-panel {
    background: var(--bg-surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    max-height: 600px;
    overflow-y: auto;
}
.download-panel-title {
    font-size: 16px;
    color: var(--accent);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--border);
}
.download-item {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    position: relative;
    transition: all var(--transition);
}
.download-item.featured {
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(245,158,11,0.1);
}
.featured-tag {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent);
    color: #000;
    padding: 2px 10px;
    font-size: 9px;
    font-weight: bold;
    border-radius: 0 var(--radius-md) 0 var(--radius-md);
}
.download-item-title {
    font-size: 13px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.download-item-title small {
    color: var(--text-dim);
    font-weight: normal;
}
.download-item-meta {
    font-size: 10px;
    color: var(--text-dim);
    margin-bottom: var(--spacing-sm);
}
.download-hashes {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-sm);
    font-size: 9px;
    color: var(--text-dim);
    opacity: 0.7;
}

body.reading-mode .download-panel { background: #fff; border-color: #e2e8f0; }
body.reading-mode .download-item { background: #f8fafc; }
body.reading-mode .download-panel-title { color: var(--primary-dark); }

/* Eski buyuk hero (kullanilmiyor ama placeholder) */
.game-hero {
    position: relative;
    background: var(--bg-surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: var(--spacing-xl);
}
.game-hero-banner { width: 100%; height: 300px; object-fit: cover; background: var(--bg-primary); }
.game-hero-overlay { padding: var(--spacing-lg); }
.game-hero h1 { font-size: 22px; color: var(--text-primary); margin-bottom: var(--spacing-xs); }
.game-hero-meta { display: flex; gap: var(--spacing-md); flex-wrap: wrap; color: var(--text-dim); font-size: 10px; }

.game-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: var(--spacing-lg);
}

.game-tabs button {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 11px;
    transition: all var(--transition);
    margin-bottom: -2px;
}

.game-tabs button.active {
    color: var(--primary-light);
    border-bottom-color: var(--primary);
}

.game-tabs button:hover {
    color: var(--text-primary);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* Medya Galerisi */
.media-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.media-gallery img {
    border-radius: var(--radius-md);
    border: 2px solid var(--border);
    cursor: pointer;
    transition: all var(--transition);
}

.media-gallery img:hover {
    border-color: var(--primary);
    transform: scale(1.02);
}

/* Yorumlar */
.comment {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border);
}

.comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    flex-shrink: 0;
}

.comment-body {
    flex: 1;
}

.comment-author {
    font-size: 12px;
    font-weight: bold;
    color: var(--text-primary);
}

.comment-time {
    font-size: 10px;
    color: var(--text-dim);
}

.comment-content {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: var(--spacing-xs);
}

/* ============================================================
   PROFİL SAYFASI
   ============================================================ */
.profile-header {
    display: flex;
    gap: var(--spacing-xl);
    align-items: center;
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-xl);
    background: var(--bg-surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-md);
    border: 3px solid var(--border);
    image-rendering: pixelated;
}

.profile-info h1 {
    font-size: 20px;
    color: var(--text-primary);
}

.profile-info p {
    color: var(--text-secondary);
    font-size: 11px;
}

.profile-stats {
    display: flex;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-md);
}

.profile-stat {
    text-align: center;
}

.profile-stat strong {
    display: block;
    font-size: 18px;
    color: var(--accent);
}

.profile-stat span {
    font-size: 10px;
    color: var(--text-dim);
}

/* Rozet Grid */
.badges-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.badge-item {
    text-align: center;
    width: 80px;
}

.badge-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto var(--spacing-xs);
    border: 2px solid;
    image-rendering: pixelated;
}

.badge-name {
    font-size: 9px;
    color: var(--text-secondary);
}

/* ============================================================
   GLOSSARY (TERİMCE) SAYFASI
   ============================================================ */
.glossary-table input[type="search"] {
    /* Stil üstte tanımlandı */
}

.glossary-term {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    align-items: center;
}

.glossary-term-en {
    color: var(--text-primary);
    font-weight: bold;
}

.glossary-term-tr {
    color: var(--primary-light);
}

.glossary-term-category {
    font-size: 9px;
    color: var(--text-dim);
    background: var(--bg-surface);
    padding: 2px 8px;
    border-radius: 2px;
}

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-layout {
    display: flex;
    gap: var(--spacing-xl);
    min-height: calc(100vh - 200px);
}

.admin-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: var(--bg-surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
}

.admin-sidebar h3 {
    font-size: 14px;
    color: var(--accent);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--border);
}

.admin-sidebar ul {
    list-style: none;
}

.admin-sidebar ul li {
    margin-bottom: 2px;
}

.admin-sidebar ul a {
    display: block;
    padding: 10px 14px;
    font-size: 11px;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
}

.admin-sidebar ul a:hover,
.admin-sidebar ul a.active {
    background: var(--bg-primary);
    border-color: var(--border);
    color: var(--text-primary);
}

.admin-content {
    flex: 1;
    background: var(--bg-surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
}

.admin-content h2 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--border);
}

/* İstatistik Kartları */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.stat-card {
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    text-align: center;
}

.stat-card h3 {
    font-size: 10px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-sm);
}

.stat-card .stat-value {
    font-size: 28px;
    color: var(--accent);
    font-weight: bold;
}

.stat-card .stat-desc {
    font-size: 10px;
    color: var(--text-dim);
    margin-top: var(--spacing-xs);
}

/* ============================================================
   YARDIMCI SINIFLAR
   ============================================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-dim { color: var(--text-dim); }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }

.hidden { display: none !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .header-inner {
        height: auto;
        flex-wrap: wrap;
        padding: var(--spacing-sm) 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        width: 100%;
        order: 10;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 2px;
    }

    .main-nav a {
        padding: 12px 16px;
    }

    .header-actions {
        margin-left: auto;
    }

    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    /* Oyun detay mobil */
    .game-top-layout {
        grid-template-columns: 1fr;
    }
    .download-panel {
        max-height: none;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-stats {
        justify-content: center;
    }

    .admin-layout {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
    }

    .admin-sidebar ul {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }

    .auth-card {
        max-width: 100%;
        margin: var(--spacing-md);
    }

    .hero h1 {
        font-size: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   MODAL (PURE CSS)
   ============================================================ */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--bg-surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

body.reading-mode .modal {
    background: #fff;
    box-shadow: var(--shadow-xl);
}

.modal-close {
    float: right;
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 24px;
    cursor: pointer;
}

.modal h3 {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}