* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0f0f1a;
    --bg2: #1a1a2e;
    --bg3: #16213e;
    --accent: #7c3aed;
    --accent2: #a78bfa;
    --gold: #d4af37;
    --text: #e2e8f0;
    --text2: #94a3b8;
    --card: #1e1e3a;
    --border: rgba(124, 58, 237, 0.2);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

.gradient-text {
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-logo img {
    height: 35px;
}

.logo-text {
    font-size: 22px;
    font-weight: 900;
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.nav-search {
    flex: 1;
    position: relative;
    max-width: 400px;
}

.nav-search input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 25px;
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.nav-search input:focus {
    border-color: var(--accent);
}

.nav-search i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text2);
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: var(--text2);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent2);
}

.hamburger {
    display: none;
    color: var(--text);
    font-size: 22px;
    cursor: pointer;
    margin-left: auto;
}

/* HERO */
.hero {
    padding: 120px 20px 60px;
    text-align: center;
    background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
}

.hero h1 {
    font-size: clamp(32px, 6vw, 64px);
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: clamp(14px, 2vw, 18px);
    color: var(--text2);
    margin-bottom: 35px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-stats .stat {
    text-align: center;
}

.hero-stats .stat strong {
    display: block;
    font-size: 28px;
    font-weight: 900;
    color: var(--accent2);
}

.hero-stats .stat span {
    font-size: 13px;
    color: var(--text2);
}

/* REKLAM */
.ad-banner {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.ad-placeholder {
    background: var(--bg2);
    border: 1px dashed var(--border);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    color: var(--text2);
    font-size: 13px;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* KATEGORİLER */
.categories {
    padding: 20px 0;
}

.category-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.cat-btn {
    padding: 10px 20px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 25px;
    color: var(--text2);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cat-btn:hover,
.cat-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* OYUNLAR */
.games-section {
    padding: 40px 0 60px;
}

.section-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--text);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.game-card {
    background: var(--card);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 15px 35px rgba(124, 58, 237, 0.3);
}

.game-thumb {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.game-icon {
    font-size: 56px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.game-info {
    padding: 15px;
}

.game-info h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
}

.game-info p {
    font-size: 12px;
    color: var(--text2);
    margin-bottom: 10px;
    line-height: 1.5;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.game-cat {
    background: rgba(124, 58, 237, 0.2);
    color: var(--accent2);
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.game-rating {
    font-size: 12px;
    color: var(--gold);
}

/* FOOTER */
.footer {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    padding: 30px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-logo span {
    font-size: 20px;
    font-weight: 900;
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.footer p {
    color: var(--text2);
    font-size: 13px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text2);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent2);
}

/* MOBİL */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.open {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .nav-search {
        max-width: 200px;
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .game-thumb {
        height: 110px;
    }

    .game-icon {
        font-size: 42px;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .game-info h3 {
        font-size: 14px;
    }

    .game-info p {
        display: none;
    }

    .hero-stats {
        gap: 20px;
    }
}

/* OYUN KARTI GÖRSELLERİ */
.game-thumb {
    height: 140px;
    position: relative;
    overflow: hidden;
    background: #0f0f1a;
}

.thumb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 12px;
    height: 100%;
}

.thumb-cell {
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
    color: white;
}

.thumb-cell.glow {
    animation: glowPulse 1.5s infinite;
}

@keyframes glowPulse {
    0%,100% { box-shadow: 0 0 8px #d4af37; }
    50% { box-shadow: 0 0 20px #d4af37; }
}

.snake-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.snake-head {
    font-size: 36px;
    animation: snakeBob 1s infinite alternate;
}

@keyframes snakeBob {
    from { transform: translateY(-3px); }
    to { transform: translateY(3px); }
}

.flip-card-mini {
    aspect-ratio: 1;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background: var(--bg3);
    border: 1px solid var(--border);
    color: var(--text2);
}

.flip-card-mini.matched {
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    border-color: transparent;
    color: white;
}

.bubble-mini {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    transition: transform 0.3s;
}

.bubble-mini.pop {
    animation: popAnim 1s infinite;
}

@keyframes popAnim {
    0%,100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.5; }
}

.letter-mini {
    aspect-ratio: 1;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--text2);
}

.letter-mini.found {
    background: #48bb78;
    color: white;
    border-color: transparent;
}

.maze-mini {
    aspect-ratio: 1;
    border-radius: 2px;
}

.maze-mini.wall { background: #7c3aed; }
.maze-mini.path { background: var(--bg3); }
.maze-mini.player { background: #a78bfa; border-radius: 50%; }
.maze-mini.end { background: #d4af37; }

.sudoku-mini {
    aspect-ratio: 1;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--text2);
}

.sudoku-mini.filled {
    background: rgba(124,58,237,0.3);
    color: var(--accent2);
    border-color: var(--accent);
}

@keyframes slideAnim {
    from { transform: translateX(-30px); }
    to { transform: translateX(30px); }
}

/* Kart hover efekti */
.game-card:hover .game-thumb {
    filter: brightness(1.1);
}

.game-card::after {
    content: '▶ OYNA';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(124,58,237,0.9);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 5;
    top: 70px;
}

.game-card:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
