@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600&family=Unbounded:wght@600;700;900&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    min-height: 100vh;
    background: #050505;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

::selection { background: #00f2fe; color: #050505; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0a0a0c; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #00f2fe, #fe0979); border-radius: 8px; }

/* ARKA PLAN EFEKTLERİ */
.bg-grid {
    position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.5;
    background-image:
        linear-gradient(rgba(0,242,254,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,242,254,0.06) 1px, transparent 1px);
    background-size: 64px 64px;
}
.bg-noise {
    position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.06; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
}
.orb {
    position: fixed; border-radius: 50%; filter: blur(120px); pointer-events: none; z-index: 0;
}
.orb-cyan { top: -160px; left: -160px; width: 540px; height: 540px; background: rgba(0,242,254,0.22); }
.orb-magenta { bottom: -160px; right: -160px; width: 540px; height: 540px; background: rgba(254,9,121,0.18); }

/* ÜST BAR */
.top-bar {
    position: relative; z-index: 10;
    display: flex; align-items: center; justify-content: space-between;
    padding: 24px 40px;
}
@media (max-width: 640px) { .top-bar { padding: 20px 24px; } }

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 42px; height: 42px; object-fit: contain; filter: drop-shadow(0 0 10px rgba(0,242,254,0.6)); }
.brand-name { font-family: 'Unbounded', sans-serif; font-weight: 900; font-size: 16px; letter-spacing: -0.03em; }
.brand-sub { font-size: 10px; text-transform: uppercase; letter-spacing: 0.3em; color: #00f2fe; }

.status {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: 9999px;
    border: 1px solid rgba(34,197,94,0.4); background: rgba(34,197,94,0.08);
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.25em; color: #22c55e;
    font-weight: 500;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; position: relative; }
.live-dot::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #22c55e; animation: ping 1.5s ease-out infinite; }
@keyframes ping { 0% { opacity: 0.75; transform: scale(1); } 100% { opacity: 0; transform: scale(2.5); } }

/* ANA İÇERİK */
.select-main {
    position: relative; z-index: 1;
    max-width: 1320px; margin: 0 auto;
    padding: 40px 40px 80px;
}
@media (max-width: 640px) { .select-main { padding: 24px 24px 60px; } }

.select-hero {
    text-align: center;
    max-width: 800px; margin: 0 auto 64px;
}
@media (max-width: 640px) { .select-hero { margin-bottom: 40px; } }

.badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px; border-radius: 9999px;
    border: 1px solid rgba(0,242,254,0.4); background: rgba(0,242,254,0.05);
    backdrop-filter: blur(4px); margin-bottom: 28px;
}
.badge .dot {
    width: 8px; height: 8px; border-radius: 50%; background: #00f2fe; position: relative;
}
.badge .dot::before {
    content: ''; position: absolute; inset: 0; border-radius: 50%; background: #00f2fe;
    animation: ping 1.5s ease-out infinite;
}
.badge span:last-child { font-size: 11px; text-transform: uppercase; letter-spacing: 0.3em; color: #00f2fe; font-weight: 500; }

.select-hero h1 {
    font-family: 'Unbounded', sans-serif; font-weight: 900;
    letter-spacing: -0.03em; line-height: 0.95;
    font-size: 44px; margin-bottom: 20px;
}
@media (min-width: 768px) { .select-hero h1 { font-size: 64px; } }
@media (min-width: 1280px) { .select-hero h1 { font-size: 80px; } }

.gradient {
    background: linear-gradient(90deg, #00f2fe, #ffffff 50%, #fe0979);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

.select-hero p {
    font-size: 14px; color: rgba(255,255,255,0.65); max-width: 540px;
    margin: 0 auto; line-height: 1.6; font-weight: 300;
}
@media (min-width: 768px) { .select-hero p { font-size: 16px; } }

/* OYUN KARTLARI */
.game-grid {
    display: grid; grid-template-columns: 1fr; gap: 16px;
}
@media (min-width: 768px) { .game-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1024px) { .game-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

.game-card {
    position: relative; display: block; aspect-ratio: 4/5;
    border-radius: 20px; overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    background: #0A0A0C;
    opacity: 0; transform: translateY(30px);
    animation: cardIn 0.7s ease forwards;
    transition: transform 0.5s, border-color 0.5s, box-shadow 0.5s;
}
@keyframes cardIn {
    to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 1024px) {
    .game-card.wide { grid-column: span 4; aspect-ratio: 21/9; }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .game-card.wide { grid-column: span 2; aspect-ratio: 16/8; }
}

.card-bg {
    position: absolute; inset: 0;
    background-image: var(--bg);
    background-size: cover; background-position: center;
    transition: transform 1.2s ease;
}
.game-card:hover .card-bg { transform: scale(1.1); }

.card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.95) 100%);
    transition: opacity 0.5s;
}

.card-content {
    position: relative; z-index: 2; height: 100%;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 28px;
}
@media (max-width: 640px) { .card-content { padding: 24px; } }

.card-tag {
    font-size: 10px; text-transform: uppercase; letter-spacing: 0.4em;
    color: #00f2fe; margin-bottom: 12px;
    transition: color 0.4s;
}

.game-card[data-color="orange"] .card-tag { color: #ff7a18; }
.game-card[data-color="green"] .card-tag { color: #5eea5e; }
.game-card[data-color="red"] .card-tag { color: #ff4040; }
.game-card[data-color="rust"] .card-tag { color: #d97757; }

.card-title {
    font-family: 'Unbounded', sans-serif; font-weight: 900;
    font-size: 36px; letter-spacing: -0.03em;
    margin-bottom: 12px; line-height: 1;
    transition: text-shadow 0.4s;
}
@media (min-width: 768px) { .card-title { font-size: 42px; } }
.game-card.wide .card-title { font-size: 48px; }
@media (min-width: 1024px) { .game-card.wide .card-title { font-size: 64px; } }

.card-desc {
    font-size: 13px; color: rgba(255,255,255,0.75);
    line-height: 1.5; font-weight: 300;
    margin-bottom: 20px;
    max-width: 340px;
}
@media (min-width: 768px) { .card-desc { font-size: 14px; } }

.card-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.15);
}

.card-players {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.25em;
    color: rgba(255,255,255,0.7); font-weight: 500;
}
.dot-mini {
    width: 6px; height: 6px; border-radius: 50%; background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
}

.card-arrow {
    width: 40px; height: 40px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff; transition: all 0.4s;
}
.card-arrow svg { width: 16px; height: 16px; }

/* HOVER EFEKTLERİ */
.game-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0,242,254,0.5);
    box-shadow: 0 24px 60px -10px rgba(0,242,254,0.3), 0 0 24px rgba(0,242,254,0.15);
}
.game-card:hover .card-arrow {
    background: #00f2fe; color: #000; border-color: #00f2fe;
    transform: rotate(-45deg);
    box-shadow: 0 0 20px rgba(0,242,254,0.5);
}
.game-card:hover .card-title { text-shadow: 0 0 24px rgba(0,242,254,0.4); }

/* RENK VARYANTLARI */
.game-card[data-color="orange"]:hover { border-color: rgba(255,122,24,0.5); box-shadow: 0 24px 60px -10px rgba(255,122,24,0.3), 0 0 24px rgba(255,122,24,0.15); }
.game-card[data-color="orange"]:hover .card-arrow { background: #ff7a18; border-color: #ff7a18; box-shadow: 0 0 20px rgba(255,122,24,0.5); }
.game-card[data-color="orange"]:hover .card-title { text-shadow: 0 0 24px rgba(255,122,24,0.4); }

.game-card[data-color="green"]:hover { border-color: rgba(94,234,94,0.5); box-shadow: 0 24px 60px -10px rgba(94,234,94,0.3), 0 0 24px rgba(94,234,94,0.15); }
.game-card[data-color="green"]:hover .card-arrow { background: #5eea5e; color: #000; border-color: #5eea5e; box-shadow: 0 0 20px rgba(94,234,94,0.5); }
.game-card[data-color="green"]:hover .card-title { text-shadow: 0 0 24px rgba(94,234,94,0.4); }

.game-card[data-color="red"]:hover { border-color: rgba(255,64,64,0.5); box-shadow: 0 24px 60px -10px rgba(255,64,64,0.3), 0 0 24px rgba(255,64,64,0.15); }
.game-card[data-color="red"]:hover .card-arrow { background: #ff4040; border-color: #ff4040; box-shadow: 0 0 20px rgba(255,64,64,0.5); }
.game-card[data-color="red"]:hover .card-title { text-shadow: 0 0 24px rgba(255,64,64,0.4); }

.game-card[data-color="rust"]:hover { border-color: rgba(217,119,87,0.5); box-shadow: 0 24px 60px -10px rgba(217,119,87,0.3), 0 0 24px rgba(217,119,87,0.15); }
.game-card[data-color="rust"]:hover .card-arrow { background: #d97757; border-color: #d97757; box-shadow: 0 0 20px rgba(217,119,87,0.5); }
.game-card[data-color="rust"]:hover .card-title { text-shadow: 0 0 24px rgba(217,119,87,0.4); }

/* ALT FOOTER */
.select-footer {
    margin-top: 64px;
    display: flex; flex-direction: column; align-items: center; gap: 16px;
    text-align: center;
}
.discord-link {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 24px; border-radius: 9999px;
    background: #5865F2; color: #fff;
    font-size: 12px; text-transform: uppercase; letter-spacing: 0.15em; font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 0 24px rgba(88,101,242,0.3);
}
.discord-link:hover { background: #4752c4; transform: scale(1.03); }
.discord-link svg { width: 16px; height: 16px; }

.copyright {
    font-size: 11px; color: rgba(255,255,255,0.35);
    letter-spacing: 0.1em;
}
