/* GENEL AYARLAR */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* KAYDIRMA ÇUBUĞUNU SABİTLE (Ekran Zıplamasını Önler) */
html { overflow-y: scroll; scroll-behavior: smooth; }

body {
    background-color: #0b0014;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    /* NEBULA ARKA PLANI */
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(67, 0, 212, 0.4) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(200, 0, 80, 0.3) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(0, 255, 200, 0.15) 0%, transparent 60%),
        radial-gradient(white, rgba(255,255,255,.2) 2px, transparent 3px),
        radial-gradient(white, rgba(255,255,255,.1) 1px, transparent 2px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 550px 550px, 350px 350px;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex; flex-direction: column;
}

/* --- HEADER --- */
header {
    display: flex; flex-direction: column; align-items: center; gap: 15px;
    padding: 20px 20px 25px 20px;
    background-color: rgba(10, 5, 20, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky; top: 0; z-index: 100;
    backdrop-filter: blur(15px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

/* SAĞ ÜST ARAÇLAR */
.header-utilities {
    position: absolute; top: 25px; right: 40px;
    display: flex; align-items: center; gap: 10px;
}

.search-container { position: relative; width: 220px; }
.search-input {
    width: 100%; padding: 10px 15px 10px 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: #fff; font-size: 0.85rem; outline: none; transition: all 0.3s;
}
.search-input:focus {
    background: rgba(0, 0, 0, 0.6); border-color: #00ff88;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}
.search-icon {
    position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
    color: #aaa; font-size: 0.9rem; pointer-events: none;
}

.lang-switch {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff; padding: 10px 18px; border-radius: 50px;
    cursor: pointer; font-size: 0.85rem; font-weight: bold;
    display: flex; align-items: center; gap: 6px;
    transition: all 0.3s; height: 38px;
}
.lang-switch:hover { background: #00ff88; color: #000; border-color: #00ff88; }

.logo-container { position: relative; display: inline-block; margin-top: 10px; }
.logo {
    font-family: 'Press Start 2P', cursive;
    font-size: 2.5rem; color: #fff; letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
}
.highlight { color: #00ff88; text-shadow: 0 0 25px rgba(0, 255, 136, 0.8); }

nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }

.filter-btn {
    color: #ddd; text-decoration: none; padding: 8px 22px;
    border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 50px;
    font-size: 0.85rem; font-weight: bold; letter-spacing: 1px;
    transition: all 0.3s ease; background: rgba(0, 0, 0, 0.4); text-transform: uppercase;
}
.filter-btn:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.1); }
.filter-btn.active {
    background-color: #00ff88; color: #000; border-color: #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

/* CONTAINER */
.container { max-width: 1500px; margin: 40px auto; padding: 0 30px; flex: 1; width: 100%; }

.section-title {
    margin-bottom: 25px; font-size: 1.4rem; color: #00ff88;
    border-left: 5px solid #00ff88; padding-left: 15px; font-weight: bold;
    text-transform: uppercase; letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

/* OYUN IZGARASI */
.game-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px;
    align-content: start; min-height: 500px;
}

/* OYUN KARTLARI */
.game-card {
    background-color: rgba(30, 30, 45, 0.7); border-radius: 14px; overflow: hidden;
    text-decoration: none; color: #fff; transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1); display: flex; flex-direction: column;
    backdrop-filter: blur(8px); height: 100%; position: relative;
}
.game-card:hover { transform: translateY(-8px); box-shadow: 0 15px 40px rgba(0, 255, 136, 0.25); border-color: #00ff88; }

.card-image {
    width: 100%; height: 160px; background-color: #000; overflow: hidden; position: relative; flex-shrink: 0;
}
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; opacity: 0.9; }
.game-card:hover .card-image img { transform: scale(1.1); opacity: 1; }

.card-info { padding: 15px; display: flex; flex-direction: column; flex: 1; justify-content: space-between; }
.card-header h3 { font-size: 1rem; font-weight: bold; color: #fff; margin-bottom: 5px; letter-spacing: 0.5px; }
.card-info p { color: #aaa; font-size: 0.8rem; line-height: 1.4; margin-bottom: 10px; }

.tags { display: flex; gap: 6px; }
.tag {
    background-color: rgba(0, 255, 136, 0.1); color: #00ff88; padding: 4px 10px;
    border-radius: 6px; font-size: 0.65rem; font-weight: bold; 
    text-transform: uppercase; border: 1px solid rgba(0, 255, 136, 0.3);
}

/* ROZETLER */
.card-badge-container {
    position: absolute; top: 12px; right: 12px;
    display: flex; flex-direction: column; gap: 6px; align-items: flex-end; z-index: 5;
}
.card-badge {
    display: inline-block; font-size: 0.6rem; font-weight: bold; padding: 5px 10px;
    border-radius: 6px; text-transform: uppercase; font-family: 'Press Start 2P', cursive;
    box-shadow: 0 3px 10px rgba(0,0,0,0.4); letter-spacing: 0.5px; text-align: center;
}
.badge-hot { background: linear-gradient(135deg, #ff0055, #ff5e00); color: #fff; animation: pulseRed 1.5s infinite; }
.badge-new { background: linear-gradient(135deg, #00ff88, #00bd5e); color: #000; box-shadow: 0 3px 15px rgba(0, 255, 136, 0.4); }
/* Elit Altın Taç */
.badge-gold {
    background: linear-gradient(135deg, #FFD700 0%, #FFC000 50%, #FFAA00 100%);
    color: #2a1a00; border: 1px solid #fff; box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    font-size: 0.8rem; padding: 6px 8px;
}
.badge-gold i { filter: drop-shadow(0 1px 1px rgba(255,255,255,0.8)); animation: shimmer 3s infinite linear; }

@keyframes pulseRed { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 0, 85, 0.7); } 70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(255, 0, 85, 0); } 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 0, 85, 0); } }
@keyframes shimmer { 0% { opacity: 0.8; } 50% { opacity: 1; transform: scale(1.1) rotate(5deg); } 100% { opacity: 0.8; } }

/* İLETİŞİM ALANI */
.contact-wrapper { display: flex; gap: 40px; align-items: stretch; max-width: 1100px; margin: 80px auto 40px auto; }
.contact-form-box { flex: 1.2; background: rgba(20, 20, 30, 0.8); padding: 35px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; color: #ccc; font-size: 0.9rem; }
.form-group input, .form-group textarea { width: 100%; padding: 12px; background: rgba(0, 0, 0, 0.3); border: 1px solid #444; border-radius: 6px; color: #fff; font-family: 'Roboto', sans-serif; transition: border-color 0.3s; font-size: 0.95rem; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: #00ff88; }
.form-btn { width: 100%; padding: 14px; background: #cba277; color: #fff; font-weight: bold; border: none; border-radius: 6px; cursor: pointer; transition: background 0.3s; text-transform: uppercase; font-size: 0.95rem; letter-spacing: 1px; }
.form-btn:hover { background: #b08558; }
.contact-info-box { flex: 0.8; background: linear-gradient(135deg, rgba(0, 255, 136, 0.15), rgba(0, 0, 0, 0.7)); border: 1px solid rgba(0, 255, 136, 0.3); border-radius: 16px; padding: 40px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; backdrop-filter: blur(10px); }
.info-logo { font-family: 'Press Start 2P', cursive; font-size: 1.8rem; margin-bottom: 20px; color: #fff; }
.info-text { font-size: 1rem; color: #ddd; line-height: 1.6; margin-bottom: 20px; }
.info-emojis { font-size: 3rem; margin-top: 10px; letter-spacing: 15px; }

/* --- FOOTER DÜZENİ --- */
footer {
    background: #050508; padding: 30px 40px; margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.85rem;
    position: relative; overflow: hidden;
}
footer::before {
    content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 80%; height: 1px; background: linear-gradient(90deg, transparent, #00ff88, transparent); opacity: 0.6;
}
.footer-container {
    max-width: 1500px; margin: 0 auto; display: flex; justify-content: space-between;
    align-items: center; flex-wrap: wrap; gap: 20px;
}
.footer-socials { display: flex; gap: 15px; }
.social-icon {
    width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: rgba(255, 255, 255, 0.05); color: #aaa; font-size: 1rem;
    text-decoration: none; transition: all 0.3s ease; border: 1px solid rgba(255, 255, 255, 0.1);
}
.social-icon:hover { transform: translateY(-3px); color: #fff; border-color: transparent; }
.social-instagram:hover { background: #e1306c; box-shadow: 0 0 15px rgba(225, 48, 108, 0.5); }
.social-youtube:hover { background: #ff0000; box-shadow: 0 0 15px rgba(255, 0, 0, 0.5); }
.social-twitter:hover { background: #000; box-shadow: 0 0 15px rgba(255, 255, 255, 0.3); border-color: #333; }

.footer-right { text-align: right; display: flex; flex-direction: column; gap: 5px; }
.made-by { color: #ccc; font-size: 0.8rem; margin: 0; }
.legal-text { color: #666; font-size: 0.75rem; margin: 0; }
.footer-link { color: #00ff88; text-decoration: none; transition: 0.3s; margin-left: 5px; }
.footer-link:hover { color: #fff; text-shadow: 0 0 8px #00ff88; }

.fan-disclaimer {
    width: 100%; text-align: center; margin-top: 15px; padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.05); color: #444; font-size: 0.65rem;
    font-family: 'Roboto', sans-serif; letter-spacing: 0.5px;
}

/* --- ÇEREZ UYARISI (TEK BUTON) --- */
.cookie-overlay {
    position: fixed; bottom: 20px; left: 20px; right: 20px; z-index: 9999;
    display: none; justify-content: center;
}
.cookie-content {
    background: rgba(20, 20, 30, 0.95); border: 1px solid #00ff88;
    padding: 20px 25px; border-radius: 12px; max-width: 600px; width: 100%;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.2); backdrop-filter: blur(15px);
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.cookie-text { font-size: 0.85rem; color: #ddd; margin: 0; flex: 1; line-height: 1.5; }
.cookie-btn {
    background: #00ff88; color: #000; border: none; padding: 10px 25px;
    border-radius: 6px; font-weight: bold; cursor: pointer; 
    transition: 0.3s; white-space: nowrap; font-size: 0.85rem;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}
.cookie-btn:hover { background: #fff; box-shadow: 0 0 20px #fff; transform: translateY(-2px); }

/* --- YUKARI ÇIK BUTONU --- */
#scrollTopBtn {
    position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px;
    background: rgba(0, 255, 136, 0.2); color: #00ff88; border: 1px solid #00ff88;
    border-radius: 50%; font-size: 1.2rem; cursor: pointer; display: none;
    align-items: center; justify-content: center; z-index: 990;
    transition: all 0.3s; backdrop-filter: blur(5px);
}
#scrollTopBtn:hover { background: #00ff88; color: #000; transform: translateY(-5px); }

/* --- MOBİL RESPONSIVE AYARLARI --- */
@media (max-width: 1300px) { .game-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 950px) { 
    .game-grid { grid-template-columns: repeat(2, 1fr); } 
    .contact-wrapper { flex-direction: column; }
    .header-utilities { position: relative; top: 0; right: 0; margin-bottom: 15px; justify-content: center; width: 100%; }
    .search-container { width: 100%; max-width: 300px; }
}
@media (max-width: 768px) {
    .footer-container { flex-direction: column; text-align: center; }
    .footer-right { text-align: center; }
    .cookie-content { flex-direction: column; text-align: center; }
    .cookie-btn { width: 100%; }
}
@media (max-width: 600px) { .game-grid { grid-template-columns: 1fr; } .logo { font-size: 1.5rem; } }

/* YATAY MOBİL (LANDSCAPE) DÜZELTMESİ */
@media (max-height: 500px) and (orientation: landscape) {
    header { flex-direction: row; flex-wrap: wrap; padding: 5px 20px; justify-content: space-between; }
    .logo-container { order: 1; margin: 0; } .logo { font-size: 1.2rem; }
    .header-utilities { order: 2; width: auto; position: static; margin: 0; } .search-container { width: 180px; }
    .search-input { padding: 6px 10px 6px 35px; font-size: 0.8rem; } .lang-switch { height: 30px; padding: 5px 12px; font-size: 0.7rem; }
    nav { order: 3; width: 100%; margin-top: 5px; justify-content: center; } .filter-btn { padding: 5px 15px; font-size: 0.7rem; }
}

/* --- OYUN BULUNAMADI MESAJI --- */
#no-results {
    grid-column: 1 / -1; /* Tüm satırı kapla */
    text-align: center;
    padding: 50px;
    display: none; /* Başlangıçta gizli */
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: #888;
    animation: fadeIn 0.5s ease;
}

#no-results i {
    font-size: 3rem;
    color: #00ff88;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.4));
}

#no-results p {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.9rem;
    line-height: 1.5;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* --- FAVORİ KALP İKONU --- */
.fav-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 20;
    width: 35px;
    height: 35px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(4px);
}

.fav-btn i {
    color: #ccc;
    font-size: 1rem;
    transition: color 0.3s;
    margin-top: 1px; /* Optik dengeleme */
}

/* Hover Durumu */
.fav-btn:hover {
    transform: scale(1.15);
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.fav-btn:hover i {
    color: #fff;
}

/* Seçili (Aktif) Durum - Kırmızı Kalp */
.fav-btn.active {
    background: rgba(255, 0, 85, 0.2);
    border-color: #ff0055;
    box-shadow: 0 0 15px rgba(255, 0, 85, 0.4);
}

.fav-btn.active i {
    color: #ff0055;
    font-weight: 900; /* İçi dolu kalp (Solid) */
    animation: heartPop 0.4s ease;
}

/* Kalp Atışı Animasyonu */
@keyframes heartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}