/* WebGameTR - 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; }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 0; gap: 1rem; }
.nav-logo { font-family: var(--font-heading); font-size: 1.5rem; color: var(--accent); }
.nav-logo:hover { color: var(--accent); opacity: 0.9; }
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a { color: var(--text); font-weight: 500; }
.nav-links a:hover { color: var(--accent); }
.lang-switcher { display: flex; gap: 4px; align-items: center; }
.lang-btn { padding: 5px 10px; border: 1px solid var(--border); border-radius: 6px; font-size: 0.75rem; font-weight: 600; color: var(--text-muted); text-decoration: none; transition: all 0.15s; letter-spacing: 0.05em; }
.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/10; 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); }
.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/10; 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); }

.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 1rem; margin-top: 3rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-copy { margin: 0; font-size: 0.9rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 1.25rem; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent); }
.footer-social { display: flex; gap: 1rem; }
.footer-social a { color: var(--text-muted); font-size: 1.25rem; }
.footer-social a:hover { color: var(--accent); }
.ad-bottom { padding: 1rem 0; }

/* --- 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: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.game-title { font-family: var(--font-heading); font-size: 1.75rem; margin: 0; color: var(--text); }

.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; }
.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); }
.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-links { display: none; }
    .nav-toggle { display: flex; }
    .nav.open .nav-links { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-card); padding: 1rem; border-bottom: 1px solid var(--border); }
    .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; }
}
@media (max-width: 480px) {
    .games-grid { grid-template-columns: 1fr; }
}
