:root {
    --bg-dark: #0a0a0c;
    --panel-bg: rgba(10, 20, 30, 0.4);
    --panel-border: rgba(0, 240, 255, 0.15);
    --text-primary: #f0f0f0;
    --text-secondary: #888890;
    --accent-blue: #007bff;
    --accent-neon: #00f0ff; /* Su yeşili/mavi karışımı neon */
    --accent-aqua: #00ffcc; /* Daha yeşile dönük su yeşili */
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    /* Çapraz neon aydınlatma efekti */
    background-image: 
        radial-gradient(circle at 0% 0%, rgba(0, 240, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 100% 100%, rgba(0, 255, 204, 0.08) 0%, transparent 40%);
    color: var(--text-primary);
    min-height: 100vh;
    scroll-behavior: smooth;
}

/* Glassmorphism Ortak Sınıfı */
.glass-panel, .glass-header {
    background: var(--panel-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--panel-border);
}

/* Header */
header {
    padding: 1rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--panel-border);
}

.brand {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-primary);
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-neon);
}

/* Karşılama Alanı (Hero) */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8rem 2rem;
}

.hero-title {
    font-size: 3.5rem;
    margin: 0 0 1rem 0;
}

.text-neon {
    color: var(--accent-neon);
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

.cta-button {
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.primary-glow {
    background: transparent;
    color: var(--accent-neon);
    border: 1px solid var(--accent-neon);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.primary-glow:hover {
    background: var(--accent-neon);
    color: #000;
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.6);
}

.secondary-outline {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.secondary-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-primary);
}

.btn-glow {
    border: 1px solid var(--accent-neon);
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

.btn-glow:hover {
    background: var(--accent-neon);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

/* Nasıl Çalışır Bölümü */
.how-it-works {
    padding: 4rem 2rem 8rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 4rem;
    color: var(--text-primary);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.step-card {
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.step-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-aqua);
    box-shadow: 0 10px 30px rgba(0, 255, 204, 0.1);
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-aqua);
    text-shadow: 0 0 15px rgba(0, 255, 204, 0.4);
}

.step-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.step-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Carousel / Katalog Stilleri */
.carousel-section {
    padding: 4rem 2rem;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 450px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px; /* 3D derinlik için zorunlu */
}

.carousel-card {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    transition: transform 0.5s ease, opacity 0.5s ease, z-index 0.5s ease;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-image {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}

/* Bilgi Paneli (Hover Durumu - Yeni Overlay Mantığı) */
.info-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 12, 0.85); /* İçeriği okunaklı kılan koyu katman */
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    border-radius: 12px;
    box-sizing: border-box;
    padding: 1.5rem;
    text-align: center;
}

.card-active:hover .info-panel {
    opacity: 1;
}

.info-panel h3 {
    margin: 0 0 1rem 0;
    color: var(--accent-neon);
    font-size: 1.4rem;
}

.info-panel p {
    margin: 0.3rem 0;
    font-size: 0.95rem;
}

/* --- Form Hata Çözümleri --- */

/* Textarea boyutlandırmasını kaldırma ve sabit yükseklik atama */
textarea.glass-input {
    resize: none; /* Boyutlandırmayı tamamen kapatır */
    max-width: 100%;
    height: 150px; /* Yeterli bir sabit alan sağlar */
    overflow-y: auto; /* Metin taşarsa kutu içi kaydırma çubuğu çıkarır */
}

/* Select kutusunun içindeki seçeneklerin arka planını koyu yapma */
select.glass-input option {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    padding: 10px;
}

/* Carousel Butonları */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--panel-bg);
    color: var(--text-primary);
    border: 1px solid var(--panel-border);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--accent-neon);
    color: #000;
}

.left-btn { left: 0; }
.right-btn { right: 0; }

/* Destek Formu Stilleri */
.support-section {
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.support-form {
    width: 100%;
    max-width: 600px;
    padding: 2.5rem;
    border-radius: 12px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.glass-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--panel-border);
    color: var(--text-primary);
    padding: 1rem;
    border-radius: 6px;
    font-family: inherit;
    box-sizing: border-box;
}

.glass-input:focus {
    outline: none;
    border-color: var(--accent-neon);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

/* Birleştirilmiş Hero ve Carousel Düzeni */
.hero-split-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 70vh;
    gap: 2rem;
}

.hero-content {
    flex: 1;
    text-align: left;
    max-width: 600px;
}

.hero-split-section .hero-title {
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

/* Sıkıştırılmış 3D Carousel Stilleri */
.split-carousel {
    flex: 1;
    max-width: 500px;
    height: 450px;
    perspective: 800px; /* Derinlik açısı daraltıldı */
}

.carousel-track {
    position: relative;
    width: 260px; /* Kartlar biraz küçültüldü */
    height: 380px;
    margin: 0 auto;
}

/* 3D Kart Pozisyonları (İç İçe Geçmiş - Tight Overlap) */
.card-active {
    transform: translateX(0) scale(1) translateZ(0);
    z-index: 3;
    opacity: 1;
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.25);
}

.card-prev {
    /* X ekseninde merkeze daha yakın, dönüş açısı daha dar */
    transform: translateX(-40%) scale(0.9) translateZ(-60px) rotateY(12deg);
    z-index: 2;
    opacity: 0.8;
}

.card-next {
    transform: translateX(40%) scale(0.9) translateZ(-60px) rotateY(-12deg);
    z-index: 2;
    opacity: 0.8;
}

.card-hidden {
    transform: translateX(0) scale(0.6) translateZ(-200px);
    z-index: 1;
    opacity: 0;
    pointer-events: none;
}

/* --- Mağaza Sayfası Stilleri --- */
.store-main {
    /* Kenar boşlukları (padding) artırıldı, odakta tutmak için genişlik kısıtlandı */
    padding: 4rem 6rem; 
    max-width: 1400px;
    margin: 0 auto;
}

.search-section {
    margin-bottom: 4rem;
}

.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--panel-border);
    padding-bottom: 1rem;
}

.game-count {
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: bold;
    color: var(--accent-neon);
    border-color: var(--accent-neon);
}

.search-input-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.2rem;
    pointer-events: none;
}

.search-bar {
    width: 100%;
    font-size: 1.1rem;
    /* İkon için sol tarafa ekstra boşluk bırakıldı */
    padding: 1.2rem 1.2rem 1.2rem 3.5rem; 
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.4);
}

.game-grid {
    display: grid;
    /* Kartların aşırı büyümesini engellemek için minmax değeri 280px yapıldı */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 3rem; /* Kartlar arası boşluk artırıldı */
}

.game-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-neon);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.1);
}

.game-cover {
    width: 100%;
    aspect-ratio: 2 / 3;
    background-color: #1a1a24;
    border-bottom: 1px solid var(--panel-border);
}

.game-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.game-title {
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.game-price {
    color: var(--accent-aqua);
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.buy-btn {
    margin-top: auto;
    width: 100%;
    text-align: center;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
}

/* --- Kimlik Doğrulama (Auth) Sayfaları --- */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px); /* Header yüksekliğini çıkararak tam ortalama */
    padding: 2rem;
}

.auth-box {
    width: 100%;
    max-width: 450px;
    padding: 3rem;
    box-sizing: border-box;
}

.auth-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2.5rem;
}

.auth-box .form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.auth-box label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.forgot-password {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: var(--accent-neon);
}

.btn-full {
    width: 100%;
    margin-top: 0.5rem;
    text-align: center;
}

.auth-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--panel-border);
    padding-top: 1.5rem;
}

.auth-link {
    color: var(--accent-neon);
    text-decoration: none;
    font-weight: bold;
    transition: text-shadow 0.3s ease;
}

.auth-link:hover {
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* --- Toast Bildirim Sistemi --- */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 9999;
}

.toast {
    min-width: 280px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    background: rgba(10, 10, 12, 0.95);
    backdrop-filter: blur(10px);
    border-left: 4px solid var(--accent-neon);
    color: var(--text-primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.show {
    transform: translateX(0);
}

.toast.error {
    border-left-color: var(--danger, #ff4757);
}

.toast.success {
    border-left-color: #2ed573;
}

/* --- Buton Yükleme Durumu (Spinner) --- */
.btn-loading {
    position: relative;
    pointer-events: none;
    color: transparent !important;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- Oyun Kapakları Degrade Ayarı --- */
.game-cover {
    background-size: cover;
    background-position: center;
    position: relative;
}

.game-cover::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0; right: 0; height: 60%;
    background: linear-gradient(to bottom, transparent, var(--panel-bg));
}

/* Okunabilir metin seçimi ve native select seçenekleri */
::selection {
    background: rgba(0, 240, 255, 0.34);
    color: #ffffff;
    text-shadow: none;
}

::-moz-selection {
    background: rgba(0, 240, 255, 0.34);
    color: #ffffff;
    text-shadow: none;
}

select option {
    background: #0d111a;
    color: #f0f3f8;
}

select option:checked {
    background: #00f0ff;
    color: #001014;
}

