/* ===================================================
   GuardHesap Modern Games Page (games.css)
   =================================================== */

:root {
    --bg-dark: #07090e;
    --bg-card: rgba(15, 20, 32, 0.75);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --cyan: #00f0ff;
    --cyan-glow: rgba(0, 240, 255, 0.4);
    --purple: #8a2be2;
    --green: #10b981;
    --gradient-primary: linear-gradient(135deg, #00f0ff 0%, #7928ca 100%);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 40px 24px 80px 24px;
}

/* Başlık Alanı */
.total-games {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    color: var(--cyan);
    margin-bottom: 6px;
    font-weight: 700;
}
.total-gamess {
    font-family: 'Outfit', sans-serif;
    font-size: 52px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 25px;
    color: #fff;
    text-shadow: 0 0 25px rgba(0, 240, 255, 0.45);
}

/* Flash Mesajı */
.flash {
    max-width: 500px;
    margin: 0 auto 25px auto;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    backdrop-filter: blur(10px);
}
.flash.success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #10b981;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}
.flash.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

/* Arama Çubuğu */
.searchbar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    max-width: 650px;
    margin: 0 auto 16px auto;
}
.searchbar input {
    flex: 1;
    background: rgba(15, 20, 32, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 14px 20px;
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: all 0.25s ease;
}
.searchbar input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 20px var(--cyan-glow);
    background: rgba(20, 28, 48, 0.95);
}
.searchbar input::placeholder {
    color: #64748b;
}

.searchbar button {
    background: var(--gradient-primary);
    color: #040810;
    border: none;
    border-radius: 12px;
    padding: 14px 26px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    transition: 0.25s;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.35);
}
.searchbar button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.6);
}

.btn-clear {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
    padding: 12px 18px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: 0.25s;
}
.btn-clear:hover {
    background: #ef4444;
    color: #fff;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

/* Bilgilendirme Kutusu */
.search-instructions-container {
    max-width: 650px;
    margin: 0 auto 20px auto;
    background: rgba(0, 240, 255, 0.04);
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 12px;
    padding: 12px 18px;
    text-align: center;
}
.search-instructions {
    color: #94a3b8;
    font-size: 13px;
    margin: 0;
    line-height: 1.5;
}

/* Oyun Öner Butonu */
.suggest-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}
.suggest-button {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: var(--cyan);
    padding: 10px 22px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.suggest-button:hover {
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 20px var(--cyan-glow);
    transform: translateY(-2px);
}

/* OYUNLAR GRID */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 50px;
}

.game-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}
.game-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 240, 255, 0.5);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 0 25px rgba(0, 240, 255, 0.2);
}
.game-card.extra-sale {
    border-color: rgba(245, 158, 11, 0.4);
}
.game-card.extra-sale:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 0 25px rgba(245, 158, 11, 0.3);
}

.extra-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    font-weight: 900;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 7px;
    z-index: 5;
    letter-spacing: 1px;
}

.game-image {
    height: 190px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.game-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(15, 20, 32, 0.95) 100%);
}

.game-card h2 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 16px 16px 12px 16px;
    line-height: 1.4;
    height: 44px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.game-card a {
    margin: auto 16px 16px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 10px;
    text-align: center;
    transition: 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.game-card a:hover {
    background: var(--cyan);
    color: #040810;
    border-color: var(--cyan);
    box-shadow: 0 0 15px var(--cyan-glow);
}

.btn-extra-sale {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.3)) !important;
    border-color: rgba(245, 158, 11, 0.4) !important;
    color: #f59e0b !important;
}
.btn-extra-sale:hover {
    background: #f59e0b !important;
    color: #000 !important;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.5) !important;
}
.extra-note {
    font-size: 11px;
    color: #f59e0b;
    margin-bottom: 12px;
    text-align: center;
    font-weight: 600;
}

.no-games {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 16px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
}

/* SAYFALAMA (PAGINATION) */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 40px;
}
.page-btn {
    min-width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.25s ease;
}
.page-btn:hover {
    color: #fff;
    border-color: var(--cyan);
    box-shadow: 0 0 15px var(--cyan-glow);
    transform: translateY(-2px);
}
.page-btn.active {
    background: var(--gradient-primary);
    color: #040810;
    border: none;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

/* OYUN ÖNER MODAL */
.suggest-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}
.suggest-content {
    background: #0f172a;
    border: 1px solid rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 40px var(--cyan-glow);
    border-radius: 20px;
    width: 90%;
    max-width: 440px;
    padding: 32px 28px;
    text-align: center;
}
.suggest-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}
.suggest-content p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.suggest-content input {
    width: 100%;
    box-sizing: border-box;
    background: rgba(4, 7, 14, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 14px 16px;
    color: #fff;
    font-size: 14px;
    margin-bottom: 16px;
    outline: none;
}
.suggest-content input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 15px var(--cyan-glow);
}
.suggest-content button[type="submit"] {
    width: 100%;
    background: var(--gradient-primary);
    color: #040810;
    border: none;
    border-radius: 12px;
    padding: 13px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 10px;
    transition: 0.2s;
}
.suggest-content button[type="submit"]:hover {
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.5);
}
.suggest-content button#closeModal {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    border-radius: 12px;
    padding: 11px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
}
.suggest-content button#closeModal:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

@media (max-width: 768px) {
    .searchbar { flex-direction: column; }
    .searchbar input { width: 100%; max-width: 100%; }
    .searchbar button, .btn-clear { width: 100%; text-align: center; }
}
