/* Sirkeci Games - Ana stil. Koyu tema, lime-green aksan, Archivo + Archivo Black */

:root {
    --bg: #0e0e0e;
    --bg-card: #1a1a1a;
    --bg-card-hover: #222;
    --text: #e5e5e5;
    --text-muted: #999;
    --accent: #c8ff00;
    --accent-dim: #9acc00;
    --border: #2a2a2a;
    --radius: 12px;
    --radius-sm: 8px;
    --font-heading: 'Archivo Black', sans-serif;
    --font-body: 'Archivo', sans-serif;
    --container: min(1200px, 100% - 2rem);
    --shadow: 0 4px 20px rgba(0,0,0,0.4);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dim); }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: var(--container); margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }

/* Header & Nav */
.site-header { background: var(--bg-card); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 12px rgba(0,0,0,0.25); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 0; gap: 1rem; flex-wrap: wrap; }
.nav-logo { font-family: var(--font-heading); font-size: 1.4rem; color: var(--accent); text-decoration: none; letter-spacing: -0.02em; transition: opacity 0.2s; flex-shrink: 0; }
.nav-logo:hover { color: var(--accent); opacity: 0.92; }
.nav-center { display: flex; align-items: center; justify-content: center; gap: 1.75rem; flex: 1; min-width: 0; list-style: none; margin: 0; padding: 0; }
.nav-center > li { display: flex; align-items: center; }
.nav-center a { color: var(--text); font-weight: 500; font-size: 0.95rem; text-decoration: none; transition: color 0.2s; }
.nav-center a:hover { color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-links > li { display: flex; align-items: center; }
.nav-links a { color: var(--text); font-weight: 500; font-size: 0.95rem; text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--accent); }

/* Kullanıcı alanı: Profil linki + Çıkış */
.nav-user-wrap { display: flex; align-items: center; gap: 0.5rem; }
.nav-user-link { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.75rem; border-radius: 999px; background: var(--bg); border: 1px solid var(--border); color: var(--text); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: border-color 0.2s, color 0.2s, background 0.2s; }
.nav-user-link:hover { border-color: var(--accent); color: var(--accent); background: rgba(200, 255, 0, 0.06); }
.nav-user-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--bg); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8rem; flex-shrink: 0; }
.nav-user-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-user-logout { font-size: 0.85rem; color: var(--text-muted); padding: 0.4rem 0.5rem; text-decoration: none; border-radius: var(--radius-sm); transition: color 0.2s; }
.nav-user-logout:hover { color: var(--accent); }
.nav-login-link { padding: 0.45rem 0.9rem; background: var(--bg); border: 1px solid var(--accent); color: var(--accent); border-radius: 999px; font-weight: 600; font-size: 0.9rem; text-decoration: none; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.nav-login-link:hover { background: rgba(200, 255, 0, 0.12); color: var(--accent); border-color: var(--accent); }

.lang-switcher { display: flex; gap: 4px; align-items: center; }
.lang-btn { padding: 6px 11px; border: 1px solid var(--border); border-radius: 8px; font-size: 0.75rem; font-weight: 600; color: var(--text-muted); text-decoration: none; transition: all 0.2s; letter-spacing: 0.03em; }
.lang-btn:hover { border-color: var(--text); color: var(--text); }
.lang-btn.active { background: var(--accent); border-color: var(--accent); color: #000; }
.nav-toggle { display: none; background: none; border: none; color: var(--text); cursor: pointer; padding: 0.5rem; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: currentColor; }

.ad-top { padding: 0.75rem 0; }
.ad-placeholder { background: var(--bg-card); border: 1px dashed var(--border); color: var(--text-muted); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; }
.ad-728x90 { width: 728px; max-width: 100%; height: 90px; margin: 0 auto; }
.ad-970x90 { width: 970px; max-width: 100%; height: 90px; margin: 0 auto; }
.ad-300x600 { width: 300px; max-width: 100%; height: 600px; margin: 0 auto; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; padding: 3rem 0; }
.hero-title { font-family: var(--font-heading); font-size: clamp(2.5rem, 6vw, 4rem); margin: 0 0 0.5rem; color: var(--text); line-height: 1.1; }
.hero-title .hl { color: var(--accent); }
.hero-desc { font-size: 1.1rem; color: var(--text-muted); margin: 0 0 1rem; max-width: 480px; }
.hero-stats { display: flex; gap: 2rem; }
.stat { text-align: center; }
.stat-value { font-family: var(--font-heading); font-size: 2rem; color: var(--accent); display: block; }
.stat-label { font-size: 0.9rem; color: var(--text-muted); }

/* Category filter */
.category-bar { background: var(--bg-card); border-bottom: 1px solid var(--border); padding: 0.75rem 0; }
.category-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.category-btn { font-family: var(--font-body); font-size: 0.95rem; padding: 0.5rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg); color: var(--text); cursor: pointer; display: inline-flex; align-items: center; gap: 0.35rem; }
.category-btn:hover { border-color: var(--accent); color: var(--accent); }
.category-btn.active { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.badge { font-size: 0.75rem; opacity: 0.9; }
.category-btn.active .badge { opacity: 1; }

/* Featured card */
.featured-section { padding: 2rem 0; }
.featured-card { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; background: var(--bg-card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); text-decoration: none; color: inherit; align-items: center; transition: border-color 0.2s, box-shadow 0.2s; }
.featured-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.featured-media { aspect-ratio: 16/9; background: var(--bg); }
.featured-media img { width: 100%; height: 100%; object-fit: cover; }
.thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.thumb-emoji { font-size: 4rem; }
.featured-body { padding: 1.5rem 2rem; }
.card-badge { display: inline-block; font-size: 0.8rem; padding: 0.25rem 0.6rem; border-radius: 999px; background: color-mix(in srgb, var(--badge-color, #fff) 25%, transparent); color: var(--badge-color, #fff); margin-bottom: 0.75rem; }
.featured-title { font-family: var(--font-heading); font-size: 1.75rem; margin: 0 0 0.5rem; color: var(--text); }
.featured-desc { color: var(--text-muted); margin: 0 0 1rem; font-size: 0.95rem; }
.featured-meta { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; }
.btn { display: inline-block; padding: 0.6rem 1.5rem; border-radius: var(--radius-sm); font-weight: 600; font-family: var(--font-body); cursor: pointer; border: none; font-size: 1rem; }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-secondary { background: var(--bg-card); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.featured-card:hover .btn-primary { background: var(--accent-dim); color: var(--bg); }

/* Games grid */
.games-section { padding: 2rem 0; }
.section-title { font-family: var(--font-heading); font-size: 1.5rem; margin: 0 0 1.5rem; color: var(--text); }
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.game-card { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: border-color 0.2s, background 0.2s; }
.game-card:hover { border-color: var(--accent); background: var(--bg-card-hover); }
.game-card-media { aspect-ratio: 16/9; background: var(--bg); }
.game-card-media img { width: 100%; height: 100%; object-fit: cover; }
.game-card-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.game-card-title { font-family: var(--font-heading); font-size: 1.1rem; margin: 0 0 0.35rem; color: var(--text); line-height: 1.3; }
.game-card-desc { font-size: 0.85rem; color: var(--text-muted); margin: 0 0 0.5rem; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.game-card-plays { font-size: 0.8rem; color: var(--text-muted); }

/* Yeni oyunlar sayfası — küçük kartlar */
.new-games-section { padding: 2rem 0 3rem; }
.new-games-section .section-title { margin-bottom: 1.5rem; }
.new-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
}
.new-game-card {
    display: block;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    position: relative;
}
.new-game-card:hover { border-color: var(--accent); box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.new-game-card-media {
    aspect-ratio: 16/9;
    background: var(--bg);
    position: relative;
}
.new-game-card-media img { width: 100%; height: 100%; object-fit: cover; }
.new-game-card-media .thumb-placeholder { min-height: 100%; }
.new-game-card-media .thumb-emoji { font-size: 2rem; }
.new-game-card-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.55rem 0.7rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    line-height: 1.25;
    color: #fff;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.2s;
}
.new-game-card:hover .new-game-card-title { opacity: 1; color: var(--accent); }
.new-games-empty { color: var(--text-muted); text-align: center; padding: 2rem; margin: 0; }

.ad-mid { padding: 1.5rem 0; }
.about-section { padding: 2rem 0; }
.about-text { color: var(--text-muted); text-align: center; max-width: 560px; margin: 0 auto; }

/* 404 sayfa */
.page-404 { padding: 3rem 0; }
.error-404-content { text-align: center; margin-bottom: 2.5rem; }
.error-404-code { font-family: var(--font-heading); font-size: 5rem; color: var(--accent); line-height: 1; display: block; margin-bottom: 0.5rem; }
.error-404-title { font-size: 1.75rem; margin: 0 0 0.75rem; color: var(--text); }
.error-404-desc { color: var(--text-muted); max-width: 480px; margin: 0 auto 1.5rem; }
.error-404-suggestions { margin-top: 2rem; }
.error-404-suggestions h2 { font-family: var(--font-heading); font-size: 1.25rem; margin: 0 0 1rem; color: var(--text); }

/* Footer */
.site-footer { background: var(--bg-card); border-top: 1px solid var(--border); padding: 2rem 0 0; margin-top: 3rem; }
.footer-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.footer-nav { display: flex; flex-direction: row; gap: 1.25rem; justify-self: start; }
.footer-nav a { color: var(--text-muted); font-size: 0.9rem; text-decoration: none; }
.footer-nav a:hover { color: var(--accent); }
.footer-links { display: flex; flex-direction: row; gap: 1.25rem; list-style: none; margin: 0; padding: 0; justify-self: center; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent); }
.footer-lang { display: flex; gap: 4px; align-items: center; justify-self: end; }
.footer-lang .lang-btn { padding: 6px 11px; border: 1px solid var(--border); border-radius: 8px; font-size: 0.75rem; font-weight: 600; color: var(--text-muted); text-decoration: none; transition: all 0.2s; }
.footer-lang .lang-btn:hover { border-color: var(--text); color: var(--text); }
.footer-lang .lang-btn.active { background: var(--accent); border-color: var(--accent); color: #000; }
.footer-bottom { padding: 1rem 0; text-align: center; }
.footer-copy { margin: 0; font-size: 0.9rem; color: var(--text-muted); }

/* --- Game page --- */
.game-page { padding: 1.5rem 0 3rem; }
.breadcrumb { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 0.35rem; }

.game-layout { display: grid; grid-template-columns: 1fr 300px; gap: 2rem; align-items: start; }
.game-main { min-width: 0; }
.game-header { display: block; margin-bottom: 1rem; }
.game-header .game-title { display: inline-block; vertical-align: middle; margin: 0 0.75rem 0 0; }
.game-header .card-badge { display: inline-block; vertical-align: middle; margin-bottom: 0; transform: none; }
.game-title { font-family: var(--font-heading); font-size: 1.75rem; margin: 0; color: var(--text); }

.game-fullscreen-wrap { display: block; }
.game-fullscreen-header { display: none; height: 40px; align-items: center; justify-content: space-between; padding: 0 0.75rem; background: var(--bg-card); border-bottom: 1px solid var(--border); flex-shrink: 0; }
.game-fullscreen-wrap.is-fullscreen .game-fullscreen-header,
.game-fullscreen-wrap:fullscreen .game-fullscreen-header { display: flex; }
.game-fullscreen-title { font-size: 0.95rem; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 70%; }
.game-fullscreen-wrap.is-fullscreen,
.game-fullscreen-wrap:fullscreen { display: flex; flex-direction: column; height: 100%; background: #000; }
.game-fullscreen-wrap.is-fullscreen .game-iframe-wrap,
.game-fullscreen-wrap:fullscreen .game-iframe-wrap { flex: 1; min-height: 0; display: flex; }
.game-fullscreen-wrap.is-fullscreen .game-iframe-wrap iframe,
.game-fullscreen-wrap.is-fullscreen .game-iframe-wrap #game-iframe,
.game-fullscreen-wrap:fullscreen .game-iframe-wrap iframe,
.game-fullscreen-wrap:fullscreen .game-iframe-wrap #game-iframe { flex: 1; width: 100%; height: 100% !important; min-height: 0 !important; }
body.game-fullscreen-fallback .game-fullscreen-wrap.is-fullscreen { position: fixed; inset: 0; z-index: 9999; width: 100%; height: 100%; max-height: 100vh; max-height: 100dvh; }
body.game-fullscreen-fallback { overflow: hidden; }
.game-fullscreen-close { background: none; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; padding: 0.5rem; line-height: 1; margin: 0 -0.5rem 0 0; flex-shrink: 0; }
.game-fullscreen-close:hover { color: var(--accent); }

.game-iframe-wrap { background: #000; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); margin-bottom: 1rem; }
#game-iframe { width: 100%; min-height: 500px; height: 70vh; border: none; display: block; }
.game-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.report-btn { margin-left: auto; min-width: 2.25rem; padding: 0.5rem 0.65rem; }
.report-icon { display: inline-flex; align-items: center; justify-content: center; line-height: 1; color: inherit; padding-top: 2px; }
.report-icon svg { display: block; }
.action-btn { font-family: var(--font-body); font-size: 1rem; padding: 0.5rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-card); color: var(--text); cursor: pointer; display: inline-flex; align-items: center; gap: 0.35rem; }
.action-btn:hover { border-color: var(--accent); color: var(--accent); }
.action-btn.voted { cursor: default; opacity: 0.8; }
.plays-text { font-size: 0.9rem; color: var(--text-muted); }

@media (max-width: 600px) {
    .game-actions { gap: 0.5rem; }
    .game-actions .action-btn { font-size: 0.875rem; padding: 0.4rem 0.7rem; }
    .game-actions .plays-text { font-size: 0.85rem; }
}
.game-main .block { margin-bottom: 1.5rem; }
.game-main .block h2 { font-family: var(--font-heading); font-size: 1.25rem; margin: 0 0 0.75rem; color: var(--text); }
.game-main .content { color: var(--text-muted); font-size: 0.95rem; }
.instructions-list { padding-left: 1.25rem; }
.instructions-list li { margin-bottom: 0.35rem; color: var(--text-muted); list-style: decimal; }

.game-sidebar { position: sticky; top: 120px; }
.related-games { margin-top: 1.5rem; }
.related-games h3 { font-family: var(--font-heading); font-size: 1.1rem; margin: 0 0 1rem; color: var(--text); }
.related-list { display: flex; flex-direction: column; gap: 0.75rem; }
.related-card { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem; border-radius: var(--radius-sm); background: var(--bg-card); border: 1px solid var(--border); text-decoration: none; color: inherit; }
.related-card:hover { border-color: var(--accent); }
.related-card img { width: 80px; height: 50px; object-fit: cover; border-radius: 4px; }
.thumb-placeholder.small { width: 80px; height: 50px; border-radius: 4px; display: flex; align-items: center; justify-content: center; background: var(--bg); font-size: 1.5rem; }
.related-title { font-size: 0.9rem; font-weight: 500; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Responsive */
@media (max-width: 1024px) {
    .game-layout { grid-template-columns: 1fr; }
    .game-sidebar { position: static; display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: start; }
    .ad-300x600 { margin: 0; }
    .related-games { margin-top: 0; }
}
@media (max-width: 768px) {
    .nav-center,
    .nav-right { display: none; }
    .nav-toggle { display: flex; }
    .nav.open { flex-wrap: wrap; }
    .nav.open .nav-center,
    .nav.open .nav-right { display: flex; flex-basis: 100%; order: 10; }
    .nav.open .nav-center { flex-direction: column; padding: 1rem 0 0.5rem; border-top: 1px solid var(--border); margin-top: 0.5rem; gap: 0.5rem; }
    .nav.open .nav-right { flex-direction: column; padding: 0.75rem 0 1rem; border-top: 1px solid var(--border); gap: 0.75rem; }
    .nav.open .nav-user-wrap { margin-top: 0; }
    .nav.open .nav-user-link { display: inline-flex; }
    .hero { flex-direction: column; align-items: flex-start; padding: 2rem 0; }
    .hero-stats { gap: 1.5rem; }
    .featured-card { grid-template-columns: 1fr; }
    .featured-body { padding: 1rem 1.5rem; }
    .games-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
    .game-sidebar { grid-template-columns: 1fr; }
    .ad-728x90 { height: 90px; }
    .footer-top { grid-template-columns: 1fr; gap: 1rem; text-align: center; }
    .footer-nav { justify-self: center; }
    .footer-links { justify-self: center; }
    .footer-lang { justify-self: center; }
}
@media (max-width: 480px) {
    .games-grid { grid-template-columns: 1fr; }
    .new-games-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 0.75rem; }
}

/* İletişim formu */
.contact-page .form-group { margin-bottom: 1.25rem; }
.contact-page .form-group label { display: block; margin-bottom: 0.4rem; font-weight: 500; color: var(--text); }
.contact-page .form-control {
    width: 100%; padding: 0.6rem 0.85rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--bg-card); color: var(--text); font-family: var(--font-body); font-size: 1rem;
}
.contact-page .form-control:focus { outline: none; border-color: var(--accent); }
.contact-page .form-control.is-invalid { border-color: #e74c3c; }
.contact-page .form-hint { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.25rem; display: block; }
.contact-page .form-error { font-size: 0.85rem; color: #e74c3c; margin-top: 0.25rem; display: block; }
.contact-page textarea.form-control { resize: vertical; min-height: 120px; }

/* Oyun sayfası - hata bildirimi modal */
.report-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.report-modal[hidden] { display: none; }
.report-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.75); }
.report-modal-box { position: relative; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; max-width: 440px; width: 100%; box-shadow: 0 8px 32px rgba(0,0,0,0.4); }
.report-modal-title { font-family: var(--font-heading); font-size: 1.2rem; margin: 0 0 1rem; color: var(--text); }
.report-modal-textarea { width: 100%; padding: 0.75rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 1rem; resize: vertical; min-height: 100px; box-sizing: border-box; }
.report-modal-textarea:focus { outline: none; border-color: var(--accent); }
.report-modal-error { font-size: 0.9rem; color: #f87171; margin: 0.5rem 0 0; min-height: 1.2em; }
.report-modal-actions { display: flex; gap: 0.75rem; margin-top: 1rem; flex-wrap: wrap; }
