/* Modern Reset & Değişkenler */
:root {
    /* Brand Colors - Daha canlı ve modern */
    --primary: #3b82f6; /* Parlak Mavi */
    --primary-dark: #1d4ed8;
    --accent: #8b5cf6; /* Mor/Neon vurgular */
    --dark-bg: #0f172a; /* Tam siyah değil, çok koyu lacivert/gri */
    --card-bg: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    /* Gradients */
    --main-gradient: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    
    /* Spacing & Borders */
    --radius: 16px;
    --nav-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .logo {
    font-family: 'Outfit', sans-serif;
}

/* Background Ambient Glow */
.bg-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.08), transparent 25%),
                radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.08), transparent 25%);
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Header & Nav --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.8); /* Saydamlık başlangıçta var */
    backdrop-filter: blur(12px); /* Glass effect */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--nav-height);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

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

nav ul li a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--main-gradient);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--main-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--text-main);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: var(--nav-height);
    position: relative;
}

.badge {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
    display: inline-block;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 900;
}

.gradient-text {
    background: var(--main-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Scroll Indicator Animation */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.7;
}
.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 20px;
    position: relative;
}
.wheel {
    width: 4px;
    height: 8px;
    background: var(--text-main);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}
@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

/* --- Games Section (CRITICAL FIXES HERE) --- */
.games {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--main-gradient);
    margin: 10px auto 0;
    border-radius: 2px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

/* Card Improvements & Alignment Fix */
.game-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
    /* ÖNEMLİ KISIM: Kartın iç yapısını flex yapıyoruz */
    display: flex;
    flex-direction: column;
    height: 100%; 
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border-color: rgba(59, 130, 246, 0.3);
}

.game-image-wrapper {
    height: 220px;
    background: #000;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.game-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Resmi kutuya doldurur */
    transition: transform 0.5s ease;
}

/* Orijinal resimlerin transparan ise 'cover' yerine 'contain' daha iyi olabilir, 
   resimlerin tipine göre burayı 'contain' yapabilirsin */
.game-image-wrapper img {
    object-fit: contain; 
    padding: 20px;
    background: linear-gradient(to bottom, #2d3748, #1a202c);
}

.game-card:hover .game-image-wrapper img {
    transform: scale(1.05);
}

.game-info {
    padding: 1.5rem;
    /* ÖNEMLİ KISIM: İçeriği dikey dizer ve boşluğu yayar */
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Kartın geri kalan yüksekliğini kapla */
}

.game-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    font-size: 0.75rem;
    background: rgba(255,255,255,0.1);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--text-muted);
}

.game-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    /* ÖNEMLİ KISIM: Bu eleman boşluğu itecek */
    flex-grow: 1; 
}

.store-buttons {
    display: flex;
    gap: 0.8rem;
    margin-top: auto; /* Garanti olsun diye en alta itiyoruz */
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    flex: 1;
    text-align: center;
}

.btn-outline {
    border: 1px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-outline.disabled {
    border-color: var(--text-muted);
    color: var(--text-muted);
    cursor: not-allowed;
    background: transparent !important;
}

/* Coming Soon Card */
.coming-soon {
    border-style: dashed;
    background: transparent;
}
.coming-soon .placeholder-img {
    font-size: 3rem;
    color: var(--text-muted);
    font-weight: bold;
}

/* --- About & Contact Modernization --- */
.glass-panel {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.about-text .section-title {
    text-align: left;
    margin-bottom: 1.5rem;
}
.about-text .section-title::after {
    margin: 10px 0 0;
}

.stats {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
}
.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.about-image img {
    border-radius: var(--radius);
    width: 100%;
    box-shadow: 20px 20px 0 rgba(59, 130, 246, 0.1);
}

/* Contact Styles */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.contact-item a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--primary);
}

.contact-form-wrapper form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-group input, 
.form-group textarea {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 8px;
    color: white;
    font-family: inherit;
    transition: all 0.3s;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(15, 23, 42, 0.9);
}

.full-width {
    width: 100%;
}

.social-links-large {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-btn {
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.social-btn:hover {
    background: var(--primary);
}

/* Footer */
footer {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 3rem 0;
    margin-top: 4rem;
    background: #0b1120;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-bottom-links a:hover {
    color: var(--primary);
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        gap: 6px;
        z-index: 1001;
        cursor: pointer;
    }
    
    .mobile-menu-btn span {
        width: 30px;
        height: 3px;
        background: white;
        transition: 0.3s;
    }

    /* Mobile Nav Active State */
    .mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
    .mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -8px); }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: #0f172a;
        padding-top: 100px;
        transition: 0.4s ease;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    .about-content, .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-bottom-links a {
        margin: 0 10px;
    }
}