/* GGaming - Sade Tasarım Katmanı
   Tüm sayfalarda renkleri yumuşatır, boşlukları ve kartları tek bir düzene oturtur.
   main.php içindeki stillerden sonra yüklenir. */

:root {
    --bg-main: #F5F6F8;
    --bg-surface: #FFFFFF;
    --bg-subtle: #F1F3F6;
    --border-color: #E4E7EC;

    --brand-red: #E11D48;
    --brand-red-hover: #BE123C;
    --brand-blue: #2563EB;
    --brand-blue-hover: #1D4ED8;
    --brand-dark-blue: #0F172A;

    --text-primary: #111827;
    --text-secondary: #4B5563;
    --text-muted: #9CA3AF;

    --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
    --shadow-md: 0 4px 12px rgba(16, 24, 40, 0.06);
    --shadow-lg: 0 12px 28px rgba(16, 24, 40, 0.10);
    --shadow-red: 0 2px 8px rgba(225, 29, 72, 0.18);
    --shadow-blue: 0 2px 8px rgba(37, 99, 235, 0.18);

    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 14px;
}

body {
    font-size: 15px;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

h1 { font-size: 1.75rem; letter-spacing: -0.01em; }
h2 { font-size: 1.3rem; letter-spacing: -0.01em; }
h3 { font-size: 1.08rem; }

/* ---------- Header ---------- */
.site-header {
    box-shadow: none;
    border-bottom: 1px solid var(--border-color);
}
.header-inner { max-width: 1240px; padding: 0.6rem 1.5rem; }
.nav-menu { gap: 0.15rem; }
.nav-menu a {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0.45rem 0.7rem;
}
.nav-menu a:hover { background: var(--bg-subtle); color: var(--text-primary); }
.nav-menu a.active { background: transparent; color: var(--brand-red); box-shadow: inset 0 -2px 0 var(--brand-red); border-radius: 0; }

.wallet-badge {
    background: var(--brand-dark-blue);
    box-shadow: none;
    padding: 0.38rem 0.85rem;
}
.wallet-badge:hover { transform: none; box-shadow: none; background: #1F2937; }

/* ---------- Ana içerik ---------- */
.main-wrapper { max-width: 1240px; margin: 1.75rem auto 2.5rem; }

/* ---------- Butonlar ---------- */
.btn { font-weight: 600; border-radius: var(--radius-sm); }
.btn-primary, .btn-secondary, .btn-lg { box-shadow: none !important; }
.btn-primary { background: var(--brand-red); }
.btn-primary:hover { background: var(--brand-red-hover); }
.btn-secondary { background: var(--brand-blue); }
.btn-secondary:hover { background: var(--brand-blue-hover); color: #fff; }
.btn-outline { border: 1px solid var(--border-color); color: var(--text-primary); }
.btn-outline:hover { background: var(--bg-subtle); border-color: #CBD2DC; }
.btn-lg { font-size: 0.98rem; padding: 0.7rem 1.4rem; }

/* ---------- Kartlar / oyun kartları ---------- */
.games-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.25rem; }
.game-card { border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); }
.game-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #CBD2DC; }
.game-card:hover .game-cover img { transform: scale(1.02); }
.game-card.is-sponsored-gold {
    border: 1px solid #F3C969 !important;
    box-shadow: var(--shadow-sm) !important;
    background: #FFFFFF !important;
}
.game-badge-sponsor { box-shadow: none; font-weight: 700; }
.game-badge-pvp { font-weight: 600; background: rgba(17, 24, 39, 0.78); }
.game-badge-online { color: #34D399; }
.game-badge-online span.dot { background: #34D399; }
.game-info { padding: 0.9rem 1rem 1rem; }
.game-title { font-size: 1rem; }

.stat-card { box-shadow: none; }

/* ---------- Tablolar & uyarılar ---------- */
.table-responsive { box-shadow: none; }
table.data-table th { background: #F9FAFB; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-muted); }
table.data-table th, table.data-table td { border-bottom: 1px solid var(--border-color); }
.alert { font-weight: 500; font-size: 0.92rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: none; margin-top: 2rem; }

/* ---------- Ana sayfa bölüm düzeni ---------- */
.home-section { margin-bottom: 2.75rem; }
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.1rem;
}
.section-head h2 { margin: 0; display: flex; align-items: center; gap: 0.5rem; }
.section-head h2 i { font-size: 1rem; color: var(--text-muted); }
.section-sub { font-size: 0.88rem; color: var(--text-secondary); margin-top: 0.2rem; }

.filter-pills { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.filter-pills a {
    font-size: 0.84rem;
    font-weight: 600;
    padding: 0.38rem 0.85rem;
    border-radius: 9999px;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-secondary);
}
.filter-pills a:hover { color: var(--text-primary); border-color: #CBD2DC; }
.filter-pills a.active { background: var(--brand-dark-blue); border-color: var(--brand-dark-blue); color: #fff; }

.soft-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.4rem;
}

.home-feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.home-feature {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.1rem 1.2rem;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.home-feature:hover { border-color: #CBD2DC; box-shadow: var(--shadow-md); color: inherit; }
.home-feature .ico {
    width: 40px; height: 40px; flex-shrink: 0;
    border-radius: 10px;
    background: var(--bg-subtle);
    color: var(--text-secondary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.05rem;
}
.home-feature h3 { font-size: 0.98rem; margin-bottom: 0.2rem; }
.home-feature p { font-size: 0.84rem; color: var(--text-secondary); line-height: 1.5; margin: 0; }

.home-ann-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.home-ann {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.1rem 1.25rem;
}
.home-ann .meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.home-ann .tag { font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.home-ann h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.home-ann p { font-size: 0.87rem; color: var(--text-secondary); line-height: 1.55; margin: 0; }

.client-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.client-card {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem 1.2rem;
}
.client-card .ico {
    width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
    background: var(--bg-subtle); color: var(--text-primary);
    display: flex; align-items: center; justify-content: center; font-size: 1.25rem;
}
.client-card h4 { font-size: 0.98rem; margin: 0; }
.client-card .sub { font-size: 0.78rem; color: var(--text-muted); }

/* Hero: oklar metnin üstüne binmesin */
.hero-carousel-container .hero-nav-btn { width: 38px !important; height: 38px !important; font-size: 0.95rem !important; }
.hero-carousel-container .hero-nav-btn.prev { left: 0.9rem !important; }
.hero-carousel-container .hero-nav-btn.next { right: 0.9rem !important; }
.hero-slide-content { padding: 3rem 4.5rem !important; }

@media (max-width: 768px) {
    .hero-slide-content { padding: 2rem 1.5rem 3.5rem !important; }
    .hero-slide-content h1 { font-size: 2rem !important; }
    .hero-carousel-container .hero-nav-btn { display: none !important; }
}

/* ---------- Mobil menü ---------- */
.nav-toggle {
    display: none;
    width: 38px; height: 38px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-primary);
    font-size: 1.05rem;
    cursor: pointer;
    align-items: center; justify-content: center;
}
.search-box { width: 190px; }
.search-box:focus-within { width: 240px; }

@media (max-width: 992px) {
    .nav-toggle { display: inline-flex; order: 99; }
    .header-inner { flex-wrap: wrap; position: relative; }
    .site-header .search-box { display: none; }
    .site-header.nav-open .nav-menu {
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: #fff;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
        padding: 0.5rem 1rem 1rem;
        z-index: 200;
    }
    .site-header.nav-open .nav-menu a {
        padding: 0.8rem 0.5rem;
        border-bottom: 1px solid var(--bg-subtle);
        border-radius: 0;
        font-size: 0.98rem;
    }
    .site-header.nav-open .nav-menu a.active { box-shadow: inset 3px 0 0 var(--brand-red); padding-left: 0.9rem; }
}

@media (max-width: 600px) {
    .header-inner { padding: 0.55rem 1rem; gap: 0.5rem; }
    .header-actions { gap: 0.4rem; }
    .main-wrapper { padding: 0 1rem; margin-top: 1rem; }
    .wallet-badge { padding: 0.32rem 0.6rem; font-size: 0.8rem; }
}

/* ---------- Mobilde satır içi çok sütunlu ızgaraları tek sütuna indir ---------- */
@media (max-width: 760px) {
    .main-wrapper [style*="grid-template-columns: 1fr 1fr"],
    .main-wrapper [style*="grid-template-columns: 1fr 2fr"],
    .main-wrapper [style*="grid-template-columns: 2fr 1fr"],
    .main-wrapper [style*="grid-template-columns: 1fr 1.5fr"],
    .main-wrapper [style*="grid-template-columns: 1.5fr 1fr"],
    .main-wrapper [style*="grid-template-columns: 1fr 1.35fr"],
    .main-wrapper [style*="grid-template-columns: repeat(3, 1fr)"],
    .main-wrapper [style*="grid-template-columns: repeat(4, 1fr)"],
    .main-wrapper [style*="grid-template-columns: 1fr 1fr 1fr"],
    .main-wrapper [style*="grid-template-columns: 1fr 140px"] {
        grid-template-columns: 1fr !important;
    }
    .main-wrapper [style*="min-width: 320px"],
    .main-wrapper [style*="min-width: 280px"],
    .main-wrapper [style*="min-width: 260px"] { min-width: 0 !important; }
    .table-responsive { -webkit-overflow-scrolling: touch; }
    h1 { font-size: 1.45rem; }
}

/* ---------- Discord ---------- */
.discord-btn {
    display: inline-flex; align-items: center; gap: 0.45rem;
    height: 36px; padding: 0 0.85rem;
    border-radius: 999px;
    background: #5865F2; color: #fff !important;
    font-weight: 800; font-size: 0.85rem; text-decoration: none;
    box-shadow: 0 4px 14px rgba(88, 101, 242, 0.35);
    transition: transform 0.15s, background 0.15s;
}
.discord-btn i { font-size: 1.05rem; }
.discord-btn:hover { background: #4752C4; transform: translateY(-1px); }
@media (max-width: 1200px) {
    .discord-btn { width: 36px; padding: 0; justify-content: center; }
    .discord-btn span { display: none; }
}

.discord-banner {
    display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
    background: linear-gradient(135deg, #5865F2 0%, #404EED 100%);
    color: #fff; border-radius: var(--radius-lg); padding: 1.5rem 1.75rem;
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.3);
}
.discord-banner-icon {
    width: 64px; height: 64px; flex-shrink: 0;
    border-radius: 18px; background: rgba(255, 255, 255, 0.16);
    display: flex; align-items: center; justify-content: center; font-size: 2.1rem;
}
.discord-banner-body { flex: 1; min-width: 220px; }
.discord-banner-body h3 { color: #fff; font-size: 1.25rem; font-weight: 900; margin: 0 0 0.3rem; }
.discord-banner-body p { color: rgba(255, 255, 255, 0.88); font-size: 0.92rem; margin: 0; line-height: 1.5; }
.discord-banner-stats { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 0.6rem; font-size: 0.85rem; font-weight: 700; }
.discord-banner-stats .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #23A55A; margin-right: 0.4rem; box-shadow: 0 0 0 3px rgba(35, 165, 90, 0.3); }
.discord-banner-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: #fff; color: #404EED !important;
    font-weight: 900; font-size: 0.98rem; text-decoration: none;
    padding: 0.85rem 1.5rem; border-radius: 999px;
    transition: transform 0.15s;
}
.discord-banner-btn:hover { transform: translateY(-2px); }
@media (max-width: 600px) {
    .discord-banner { padding: 1.25rem; text-align: center; justify-content: center; }
    .discord-banner-stats { justify-content: center; }
    .discord-banner-btn { width: 100%; justify-content: center; }
}
