/* Whfsuyq - Professional Mini Games Portal */
:root {
    --primary: #1a1a2e;
    --secondary: #16213e;
    --accent: #0f3460;
    --highlight: #e94560;
    --text: #eaeaea;
    --text-muted: #a0a0a0;
    --card-bg: #1f1f3a;
    --gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

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

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

/* Navigation */
.navbar {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--highlight);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--highlight);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    background: var(--highlight);
    color: #fff;
}

/* Hero Section */
.hero {
    background: var(--gradient);
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="%23e94560" stroke-width="0.5" opacity="0.1"/></svg>');
    background-size: 200px;
    animation: rotate 60s linear infinite;
}

@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
}

.hero h1 span { color: var(--highlight); }

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.game-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: var(--highlight);
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.2);
}

.game-card .icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
}

.game-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

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

/* Category Tabs */
.category-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.category-tab {
    background: var(--card-bg);
    border: none;
    color: var(--text);
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.category-tab:hover, .category-tab.active {
    background: var(--highlight);
}

/* Articles */
.articles-list {
    display: grid;
    gap: 20px;
}

.article-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s;
    border-left: 4px solid var(--highlight);
}

.article-card:hover {
    transform: translateX(5px);
}

.article-card h2 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.article-card h2 a {
    color: var(--text);
    text-decoration: none;
}

.article-card p {
    color: var(--text-muted);
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Content Article */
.content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--highlight);
}

.content h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    color: var(--text);
}

.content h3 {
    font-size: 1.4rem;
    margin: 1.5rem 0 0.8rem;
}

.content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.2rem;
    color: var(--text-muted);
}

.content ul, .content ol {
    margin: 1rem 0 1.5rem 2rem;
}

.content li {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1.5rem 0;
}

.content a {
    color: var(--highlight);
}

.related-games {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    margin-top: 2rem;
}

.related-games h3 {
    color: var(--highlight);
    margin-bottom: 1rem;
}

.related-games ul {
    list-style: none;
    margin: 0;
}

.related-games li {
    margin-bottom: 0.5rem;
}

.related-games a {
    color: var(--text);
    text-decoration: none;
}

.related-games a:hover {
    color: var(--highlight);
}

/* Game Page */
.game-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.game-wrapper h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.game-wrapper p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Footer */
footer {
    background: var(--secondary);
    padding: 40px 20px;
    text-align: center;
    margin-top: 60px;
}

footer p {
    color: var(--text-muted);
}

footer a {
    color: var(--highlight);
    text-decoration: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .content h1 {
        font-size: 1.8rem;
    }
}

/* AdSense Placeholder */
.adsense-placeholder {
    background: #2a2a4a;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin: 20px 0;
    color: #666;
}
