/* Genel Font ve Sıfırlama */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

:root {
    --accent-color: #00FF00;
    --accent-hover: #00cc00;
    --accent-glow: rgba(0, 255, 0, 0.4);
    --accent-border: rgba(0, 255, 0, 0.3);
}

body {
    background-color: #121212;
    color: #ffffff;
    padding-top: 80px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    position: relative;
}

/* Üst Sabit Menü */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #1a1a1a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    border-bottom: 1px solid #333;
    z-index: 100;
}

.logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 68px;
    border-radius: 50%;
    overflow: hidden;
    border: none;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px var(--accent-color), 0 0 40px var(--accent-color), 0 0 60px var(--accent-color);
    animation: logoNeonPulse 3.5s ease-in-out infinite;
    z-index: 10;
}
.logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    vertical-align: middle;
}
@keyframes logoNeonPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 20px var(--accent-color), 0 0 40px var(--accent-color);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.08);
        box-shadow: 0 0 30px var(--accent-color), 0 0 60px var(--accent-color), 0 0 90px var(--accent-color);
    }
}

.menu-toggle {
    font-size: 20px;
    color: var(--accent-color);
    cursor: pointer;
    background: none;
    border: none;
    transition: transform 0.3s ease;
    z-index: 101;
}
.menu-toggle:hover {
    transform: rotate(90deg) scale(1.1);
}

/* Geri butonu (back-btn) - Kutu görünümlü, vurgu rengine göre çerçeve */
.back-btn {
    display: inline-block;
    background-color: #121212;
    border: 1.5px solid var(--accent-color);
    border-radius: 30px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

.back-btn:hover {
    background-color: var(--accent-color);
    color: #000;
    transform: translateX(-3px);
}

/* Yan Menü */
.sidebar {
    position: fixed;
    top: 60px;
    left: -250px;
    width: 250px;
    height: calc(100vh - 60px);
    background-color: #1a1a1a;
    border-right: 1px solid #333;
    padding: 20px;
    transition: left 0.3s ease;
    z-index: 99;
    overflow-y: auto;
}
.sidebar.active {
    left: 0;
}
.sidebar-header h3 {
    color: var(--accent-color);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}
.filter-limit-info {
    font-size: 11px;
    color: #888;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #2a2a2a;
    text-align: left;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.category-item {
    display: flex;
    align-items: center;
    background-color: #222222;
    color: #a0a0a0;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid var(--accent-border);
    transition: all 0.3s ease;
    width: 100%;
    font-size: 13px;
    user-select: none;
    position: relative;
}
.category-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}
.filter-checkbox {
    opacity: 0;
    position: absolute;
    width: 0;
    height: 0;
}
.category-checkbox {
    width: 16px;
    height: 16px;
    border: 2px solid #a0a0a0;
    border-radius: 4px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.category-label {
    flex-grow: 1;
    font-weight: 500;
}
.category-item:hover:not(.disabled) {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 12px var(--accent-glow);
}
.category-item:hover:not(.disabled) .category-label {
    color: #000;
    font-weight: 700;
}
.category-item:hover:not(.disabled) .category-checkbox {
    border-color: #000;
}
.filter-checkbox:checked ~ .category-checkbox {
    background-color: #000;
    border-color: #000;
}
.filter-checkbox:checked ~ .category-checkbox::after {
    content: '✔';
    font-size: 10px;
    color: var(--accent-color);
    font-weight: bold;
}

/* Oyun Kartları */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Tek tek soldan sağa kayarak gelme animasyonu */
.game-card {
    background-color: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.4s;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    display: block;
    opacity: 0;
    transform: translateX(-40px);
    animation: slideInFromLeft 0.6s cubic-bezier(0.2, 0.9, 0.4, 1.1) forwards;
}

@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-40px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Sırayla gelme gecikmeleri */
.game-card:nth-child(1) { animation-delay: 0s; }
.game-card:nth-child(2) { animation-delay: 0.08s; }
.game-card:nth-child(3) { animation-delay: 0.16s; }
.game-card:nth-child(4) { animation-delay: 0.24s; }
.game-card:nth-child(5) { animation-delay: 0.32s; }
.game-card:nth-child(6) { animation-delay: 0.40s; }
.game-card:nth-child(7) { animation-delay: 0.48s; }
.game-card:nth-child(8) { animation-delay: 0.56s; }
.game-card:nth-child(9) { animation-delay: 0.64s; }
.game-card:nth-child(10) { animation-delay: 0.72s; }
.game-card:nth-child(11) { animation-delay: 0.80s; }
.game-card:nth-child(12) { animation-delay: 0.88s; }
.game-card:nth-child(13) { animation-delay: 0.96s; }
.game-card:nth-child(14) { animation-delay: 1.04s; }
.game-card:nth-child(15) { animation-delay: 1.12s; }
.game-card:nth-child(16) { animation-delay: 1.20s; }
.game-card:nth-child(17) { animation-delay: 1.28s; }
.game-card:nth-child(18) { animation-delay: 1.36s; }

.game-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 8px 30px var(--accent-glow);
}
.game-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    transition: filter 0.3s;
}
.game-card:hover img {
    filter: brightness(1.1);
}
.card-body {
    padding: 18px;
}
.badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(0,0,0,0.1), rgba(0,0,0,0.05));
    background-color: rgba(0,0,0,0.3);
    color: var(--accent-color);
    font-size: 11px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid var(--accent-color);
    margin-right: 6px;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}
.game-card:hover .badge {
    background: rgba(0,0,0,0.5);
    box-shadow: 0 0 8px var(--accent-color);
}
.card-body h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}
.card-body p {
    color: #999;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 12px;
}
.store-icons {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}
.store-icons i {
    font-size: 22px;
    color: #ccc;
    transition: color 0.2s;
    pointer-events: none;
}
.game-card:hover .store-icons i {
    color: #fff;
}

/* Detay Sayfası */
.detay-sayfasi {
    background-color: #121212;
}
.detay-container {
    max-width: 900px;
    margin: 40px auto;
    background-color: #1a1a1a;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    padding: 30px;
}
.detay-gorsel {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px;
}
.detay-bilgi h1 {
    color: var(--accent-color);
    margin-bottom: 12px;
    font-size: 28px;
    font-weight: 800;
}
.detay-etiketler {
    margin-bottom: 25px;
}
.detay-etiketler .badge {
    font-size: 12px;
    padding: 6px 14px;
    margin-right: 8px;
}
.detay-aciklama {
    color: #ddd;
    font-size: 15px;
    line-height: 1.7;
}
.steam-btn {
    display: inline-block;
    background-color: #1a1a1a;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    padding: 12px 36px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 6px;
    margin-top: 35px;
    transition: all 0.4s;
}
.steam-btn:hover {
    background-color: var(--accent-color);
    color: #000;
    box-shadow: 0 0 20px var(--accent-color);
    transform: translateY(-2px);
}

/* Arama ve ayarlar çarkı */
.search-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 280px;
    z-index: 10;
}
.search-container input {
    width: 100%;
    background-color: #121212;
    color: #fff;
    border: 1px solid var(--accent-border);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    transition: all 0.3s;
}
.search-container input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-glow);
}
.search-container input::placeholder {
    color: #666;
}
.settings-icon {
    color: #ccc;
    font-size: 20px;
    transition: all 0.3s;
    text-decoration: none;
    display: flex;
    align-items: center;
}
.settings-icon:hover {
    color: var(--accent-color);
    transform: rotate(45deg);
}

/* ========== MOBİL ARAMA BUTONU VE OVERLAY ========== */
.mobile-search-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--accent-color);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}
.mobile-search-btn i {
    font-size: 24px;
    color: #ffffff;
}
.mobile-search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.mobile-search-overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    z-index: 1001;
    padding: 20px;
}
.mobile-search-overlay.active {
    transform: translateY(0);
}

.mobile-search-container {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #1a1a1a;
    border-radius: 50px;
    padding: 8px 16px;
    border: 1px solid var(--accent-border);
    max-width: 500px;
    margin: 0 auto;
}
.mobile-search-container input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 16px;
    padding: 12px 0;
    outline: none;
}
.mobile-search-container input::placeholder {
    color: #888;
}
.mobile-search-close {
    background: transparent;
    border: none;
    color: #ccc;
    font-size: 28px;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}
.mobile-search-close:hover {
    color: var(--accent-color);
}

/* FOOTER STYLES - Butonlar eşit boyutta */
.site-footer {
    background-color: #0f0f0f;
    border-top: 1px solid #2a2a2a;
    padding: 30px 20px 20px;
    margin-top: 60px;
    text-align: center;
}
.footer-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 25px;
}
.footer-btn {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 10px 28px;
    min-width: 120px;
    text-align: center;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-sizing: border-box;
}
.footer-btn:hover {
    background-color: var(--accent-color);
    color: #000;
    box-shadow: 0 0 12px var(--accent-glow);
}
.footer-social {
    margin-bottom: 20px;
}
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #1a1a1a;
    color: #fff;
    font-size: 26px;
    transition: all 0.3s ease;
    text-decoration: none;
}
.social-icon:hover {
    background-color: var(--accent-color);
    color: #000;
    transform: scale(1.1);
}
.youtube-icon {
    color: #ffffff;
}
.youtube-icon:hover {
    background-color: #FF0000;
    color: #fff;
}
.footer-divider {
    max-width: 80%;
    margin: 20px auto;
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}
.footer-copyright {
    font-size: 16px;
    color: #888;
    letter-spacing: 0.5px;
}

/* Empty State (Boş Durum) Mesajları - TAM ORTADA FIXED */
.empty-state-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 40px 30px;
    color: #aaa;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.5px;
    background: #1a1a1a;
    border-radius: 20px;
    max-width: 450px;
    width: 85%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    z-index: 1000;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.4);
    line-height: 1.5;
}

/* Mobil cihazlarda göster */
@media (max-width: 768px) {
    .search-container input {
        display: none;
    }
    .search-container {
        display: flex;
        width: auto;
    }
    .mobile-search-btn {
        display: flex;
    }
    .games-grid {
        margin-bottom: 40px;
    }
    .empty-state-message {
        font-size: 16px;
        padding: 30px 20px;
        width: 90%;
        max-width: 320px;
    }
}

@media (min-width: 769px) {
    .mobile-search-btn {
        display: none;
    }
    .mobile-search-overlay {
        display: none;
    }
}

/* Patch Details Button - setting.html için */
.patch-details-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.patch-details-btn i {
    font-size: 16px;
}

.patch-details-btn:hover {
    background-color: var(--accent-color);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 0 15px var(--accent-glow);
}