/* GameGuides - Main Stylesheet */
:root {
    --primary: #1a1a2e;
    --secondary: #16213e;
    --accent: #e94560;
    --accent-hover: #ff6b81;
    --text: #eaeaea;
    --text-muted: #a0a0b0;
    --card-bg: #0f3460;
    --card-hover: #1a4a8a;
    --border: #2a2a4a;
    --success: #4caf50;
    --max-width: 1200px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--primary);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background: rgba(22, 33, 62, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: -1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 24px;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent);
}

.search-box {
    display: flex;
    gap: 8px;
}

.search-box input {
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--primary);
    color: var(--text);
    font-size: 0.9rem;
    width: 200px;
}

.search-box button {
    padding: 8px 16px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.search-box button:hover {
    background: var(--accent-hover);
}

/* Hero */
.hero {
    padding: 80px 0 60px;
    text-align: center;
    background: linear-gradient(135deg, var(--secondary), var(--card-bg));
    border-bottom: 1px solid var(--border);
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--accent), #ff6b81);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* Game Grid */
.games-section {
    padding: 60px 0;
}

.games-section h2,
.latest-section h2 {
    font-size: 1.8rem;
    margin-bottom: 32px;
    position: relative;
    display: inline-block;
}

.games-section h2::after,
.latest-section h2::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 60%;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.game-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
    display: block;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(233, 69, 96, 0.2);
    border-color: var(--accent);
}

.game-card-img {
    height: 140px;
    background: linear-gradient(135deg, var(--secondary), #1a1a3e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--accent);
}

.game-card-body {
    padding: 16px;
}

.game-card-body h3 {
    font-size: 1.15rem;
    margin-bottom: 6px;
    color: var(--text);
}

.game-card-body .genre {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 6px;
}

.game-card-body .desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Latest Guides */
.latest-section {
    padding: 40px 0 60px;
}

.article-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

.article-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid var(--border);
    transition: transform 0.2s;
    text-decoration: none;
    color: var(--text);
    display: block;
}

.article-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
}

.article-card .game-tag {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.article-card h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.article-card .date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Game Page */
.game-header {
    padding: 60px 0 40px;
    text-align: center;
    background: linear-gradient(135deg, var(--secondary), var(--card-bg));
    border-bottom: 1px solid var(--border);
}

.game-header .game-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.game-header h1 {
    font-size: 2.2rem;
    margin-bottom: 8px;
}

.game-header .genre-tag {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.game-content {
    padding: 40px 0;
}

.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.breadcrumb a {
    color: var(--accent);
    text-decoration: none;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.guide-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid var(--border);
    transition: transform 0.2s;
    text-decoration: none;
    color: var(--text);
    display: block;
}

.guide-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
}

.guide-card .category {
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.guide-card h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.guide-card .meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Article Page */
.article-header {
    padding: 50px 0 30px;
    text-align: center;
}

.article-header h1 {
    font-size: 2rem;
    max-width: 800px;
    margin: 0 auto 12px;
}

.article-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.article-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 10px 20px 60px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.article-body h2 {
    font-size: 1.5rem;
    margin: 36px 0 14px;
    color: var(--accent);
}

.article-body h3 {
    font-size: 1.2rem;
    margin: 24px 0 10px;
}

.article-body p {
    margin-bottom: 16px;
}

.article-body ul,
.article-body ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.article-body li {
    margin-bottom: 8px;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.article-body th,
.article-body td {
    padding: 10px 14px;
    border: 1px solid var(--border);
    text-align: left;
}

.article-body th {
    background: var(--card-bg);
    color: var(--accent);
    font-weight: 600;
}

.article-body .tip-box {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid var(--success);
    border-radius: 8px;
    padding: 16px 20px;
    margin: 20px 0;
}

.article-body .tip-box strong {
    color: var(--success);
}

.article-body .warning-box {
    background: rgba(233, 69, 96, 0.1);
    border: 1px solid var(--accent);
    border-radius: 8px;
    padding: 16px 20px;
    margin: 20px 0;
}

.article-body .warning-box strong {
    color: var(--accent);
}

/* Ad Placeholder */
.ad-placeholder {
    text-align: center;
    padding: 20px 0;
    margin: 30px 0;
    border: 1px dashed var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
    background: rgba(15, 52, 96, 0.3);
}

/* Footer */
footer {
    background: var(--secondary);
    border-top: 1px solid var(--border);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h3 {
    font-size: 1.1rem;
    margin-bottom: 14px;
    color: var(--accent);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-col p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Static Pages */
.static-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px 20px;
}

.static-page h1 {
    font-size: 2rem;
    margin-bottom: 24px;
}

.static-page h2 {
    font-size: 1.4rem;
    margin: 30px 0 14px;
    color: var(--accent);
}

.static-page p {
    margin-bottom: 14px;
    line-height: 1.7;
}

.static-page ul {
    padding-left: 20px;
    margin-bottom: 14px;
}

.static-page li {
    margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    .nav-links {
        display: none;
    }
    .search-box input {
        width: 140px;
    }
    .game-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    .article-list,
    .guide-grid {
        grid-template-columns: 1fr;
    }
    .article-body {
        font-size: 1rem;
    }
}