﻿/* === RetroArcade Base Styles === */
:root {
    --bg-primary: #0a0a2e;
    --bg-secondary: #0f0f3d;
    --bg-card: rgba(15, 15, 61, 0.8);
    --neon-pink: #ff00ff;
    --neon-cyan: #00ffff;
    --neon-green: #00ff88;
    --neon-yellow: #ffff00;
    --neon-red: #ff0066;
    --neon-purple: #bf00ff;
    --text-primary: #ffffff;
    --text-secondary: #a0a0c0;
    --text-muted: #606080;
    --border-color: rgba(0, 255, 255, 0.15);
    --glass-bg: rgba(10, 10, 46, 0.7);
    --glass-border: rgba(0, 255, 255, 0.1);
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-neon: 0 0 20px rgba(0, 255, 255, 0.15);
    --transition: all 0.3s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    background-image:
        linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

a { color: var(--neon-cyan); text-decoration: none; transition: var(--transition); }
a:hover { text-shadow: 0 0 10px var(--neon-cyan); }

/* === Header === */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(10, 10, 46, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
}

.header-inner {
    display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}

.logo {
    display: flex; align-items: center; gap: 8px;
    text-decoration: none; color: var(--text-primary);
    flex-shrink: 0;
}
.logo-icon { font-size: 28px; }
.logo-text {
    font-family: 'Orbitron', monospace;
    font-weight: 900; font-size: 20px;
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-cyan));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav-link {
    padding: 8px 14px; border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 600; color: var(--text-secondary);
    transition: var(--transition); white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
    color: var(--neon-cyan); background: rgba(0, 255, 255, 0.08);
}

.nav-dropdown { position: relative; }
.dropdown-content {
    display: none; position: absolute; top: 100%; left: 0;
    background: var(--bg-secondary); border: 1px solid var(--border-color);
    border-radius: var(--radius-sm); min-width: 200px; z-index: 100;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5); padding: 8px;
}
.nav-dropdown:hover .dropdown-content { display: block; }
.dropdown-content a {
    display: block; padding: 8px 12px; border-radius: 6px;
    font-size: 13px; color: var(--text-secondary);
}
.dropdown-content a:hover { color: var(--neon-cyan); background: rgba(0, 255, 255, 0.08); }

.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.search-form { display: flex; position: relative; }
.search-input {
    background: rgba(255,255,255,0.05); border: 1px solid var(--border-color);
    border-radius: 20px 0 0 20px; padding: 8px 16px; color: #fff;
    font-size: 13px; width: 200px; outline: none; font-family: 'Inter', sans-serif;
}
.search-input:focus { border-color: var(--neon-cyan); box-shadow: 0 0 10px rgba(0,255,255,0.15); }
.search-btn {
    background: rgba(0, 255, 255, 0.1); border: 1px solid var(--border-color);
    border-left: none; border-radius: 0 20px 20px 0; padding: 8px 14px;
    cursor: pointer; font-size: 14px;
}

.lang-selector { position: relative; }
.lang-btn {
    background: rgba(255,255,255,0.05); border: 1px solid var(--border-color);
    border-radius: 20px; padding: 6px 12px; cursor: pointer; font-size: 18px;
}
.lang-dropdown {
    display: none; position: absolute; top: 100%; right: 0;
    background: var(--bg-secondary); border: 1px solid var(--border-color);
    border-radius: var(--radius-sm); min-width: 200px; max-height: 400px;
    overflow-y: auto; z-index: 100; box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    padding: 8px; margin-top: 4px;
}
.lang-selector:hover .lang-dropdown { display: block; }
.lang-option {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 12px; border-radius: 6px; font-size: 13px;
    color: var(--text-secondary); cursor: pointer;
}
.lang-option:hover, .lang-option.active { color: var(--neon-cyan); background: rgba(0, 255, 255, 0.08); }

/* === Main Content === */
.site-main { min-height: 60vh; padding: 30px 0; }

/* === Hero Banner === */
.hero {
    background: linear-gradient(135deg, rgba(255,0,255,0.1), rgba(0,255,255,0.1));
    border: 1px solid var(--border-color);
    border-radius: var(--radius); padding: 40px;
    margin-bottom: 30px; text-align: center; position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 49px, rgba(0,255,255,0.03) 50px);
}
.hero h1 {
    font-family: 'Orbitron', monospace; font-size: 36px; font-weight: 900;
    margin-bottom: 10px; position: relative;
    text-shadow: 0 0 30px rgba(0,255,255,0.3);
}
.hero p { color: var(--text-secondary); font-size: 16px; position: relative; }

/* === Section Titles === */
.section-title {
    font-family: 'Orbitron', monospace; font-size: 20px; font-weight: 700;
    margin-bottom: 20px; display: flex; align-items: center; gap: 10px;
    color: var(--neon-cyan);
}
.section-title::after {
    content: ''; flex: 1; height: 1px;
    background: linear-gradient(90deg, var(--border-color), transparent);
}

/* === Game Grid === */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px; margin-bottom: 30px;
}

/* === Game Card === */
.game-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}
.game-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 255, 255, 0.4);
    box-shadow: 0 8px 30px rgba(0, 255, 255, 0.15);
}

.game-thumb {
    position: relative; padding-top: 75%; overflow: hidden;
    background: var(--bg-secondary);
}
.game-thumb img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; transition: transform 0.3s;
}
.game-card:hover .game-thumb img { transform: scale(1.05); }

.game-badge {
    position: absolute; top: 8px; left: 8px;
    padding: 2px 8px; border-radius: 4px;
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    z-index: 2;
}
.badge-new { background: var(--neon-pink); color: #fff; }
.badge-hot { background: var(--neon-red); color: #fff; }
.badge-featured { background: var(--neon-cyan); color: #000; }

.game-play-btn {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 50px; height: 50px; background: rgba(0,255,255,0.9);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 20px; opacity: 0; transition: var(--transition);
    box-shadow: 0 0 20px rgba(0,255,255,0.4);
}
.game-card:hover .game-play-btn { opacity: 1; }

.game-info { padding: 10px 12px; }
.game-title {
    font-size: 13px; font-weight: 600; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px;
    color: var(--text-primary);
}
.game-meta { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-muted); }
.game-rating { color: var(--neon-yellow); font-weight: 600; }
.game-views { color: var(--text-muted); }

.game-card-link {
    display: block; text-decoration: none; color: inherit;
}

/* === Category Cards === */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px; margin-bottom: 30px;
}
.category-card {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    text-decoration: none; color: var(--text-primary);
    transition: var(--transition);
}
.category-card:hover {
    border-color: rgba(0, 255, 255, 0.4);
    box-shadow: var(--shadow-neon);
    transform: translateY(-2px);
}
.cat-icon { font-size: 28px; }
.cat-name { font-weight: 600; font-size: 14px; }
.cat-count { font-size: 12px; color: var(--text-muted); }

/* === Game Page === */
.game-page { max-width: 1200px; margin: 0 auto; }
.game-container {
    position: relative; padding-top: 56.25%;
    background: #000; border-radius: var(--radius);
    overflow: hidden; margin-bottom: 20px;
    border: 1px solid var(--border-color);
}
.game-container iframe {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    border: none;
}
.game-fullscreen {
    position: absolute; top: 10px; right: 10px; z-index: 10;
    background: rgba(0,0,0,0.7); border: 1px solid var(--neon-cyan);
    border-radius: 8px; padding: 8px 12px; color: var(--neon-cyan);
    cursor: pointer; font-size: 14px; font-weight: 600;
}
.game-details {
    display: grid; grid-template-columns: 1fr 300px; gap: 20px;
    margin-bottom: 30px;
}
.game-info-main { }
.game-info-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px; align-self: start;
}
.game-info-sidebar h3 {
    font-family: 'Orbitron', monospace;
    font-size: 14px; margin-bottom: 12px;
    color: var(--neon-cyan);
}
.game-desc { color: var(--text-secondary); font-size: 14px; line-height: 1.7; margin-bottom: 16px; }
.game-controls {
    background: rgba(0,255,255,0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 16px; font-size: 13px; color: var(--text-secondary);
}
.game-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.game-tag {
    padding: 4px 10px; background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    border-radius: 20px; font-size: 11px; color: var(--text-secondary);
}
.game-stat { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 13px; }
.game-stat:last-child { border-bottom: none; }
.game-stat-label { color: var(--text-muted); }
.game-stat-value { color: var(--neon-cyan); font-weight: 600; }

.like-btn {
    width: 100%; padding: 12px; margin-top: 12px;
    background: linear-gradient(135deg, rgba(255,0,255,0.2), rgba(0,255,255,0.2));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm); color: var(--text-primary);
    font-size: 14px; font-weight: 600; cursor: pointer;
    transition: var(--transition);
}
.like-btn:hover, .like-btn.active {
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-cyan));
    color: #fff; border-color: transparent;
}

/* === Breadcrumb === */
.breadcrumb { margin-bottom: 20px; font-size: 13px; color: var(--text-muted); }
.breadcrumb a { color: var(--neon-cyan); }
.breadcrumb span { margin: 0 6px; }

/* === Pagination === */
.pagination {
    display: flex; justify-content: center; gap: 8px;
    margin-top: 30px; padding-bottom: 20px;
}
.page-btn {
    padding: 8px 14px; background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm); color: var(--text-secondary);
    font-size: 13px; font-weight: 600; cursor: pointer;
    transition: var(--transition); text-decoration: none;
}
.page-btn:hover, .page-btn.active {
    background: rgba(0, 255, 255, 0.1); color: var(--neon-cyan);
    border-color: rgba(0, 255, 255, 0.4);
}

/* === Footer === */
.site-footer {
    background: rgba(10, 10, 46, 0.95);
    border-top: 1px solid var(--border-color);
    margin-top: 40px; padding-top: 40px;
}
.footer-inner {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px; padding-bottom: 30px;
}
.footer-desc { color: var(--text-muted); font-size: 13px; margin-top: 10px; }
.footer-links h4 {
    font-family: 'Orbitron', monospace; font-size: 12px;
    margin-bottom: 12px; color: var(--neon-cyan);
}
.footer-links a {
    display: block; padding: 4px 0; font-size: 13px;
    color: var(--text-muted);
}
.footer-links a:hover { color: var(--neon-cyan); }
.social-links { display: flex; gap: 10px; }
.social-link {
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.05); border: 1px solid var(--border-color);
    border-radius: 50%; font-size: 18px; text-decoration: none;
}
.social-link:hover { background: rgba(0, 255, 255, 0.1); border-color: var(--neon-cyan); }
.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 16px 0; text-align: center;
    font-size: 12px; color: var(--text-muted);
}

/* === Responsive === */
@media (max-width: 900px) {
    .main-nav { display: none; }
    .game-details { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: 24px; }
}
@media (max-width: 600px) {
    .games-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
    .footer-inner { grid-template-columns: 1fr; }
    .search-input { width: 120px; }
}
