/* ================================================================
   Bi Organizasyon • Premium E-Sports Design System
   ================================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&family=Orbitron:wght@400;700;900&display=swap');

/* ── Design Tokens ── */
:root {
    /* Colors */
    --clr-bg: #0a0a0f;
    --clr-bg2: #101018;
    --clr-surface: rgba(255, 255, 255, 0.04);
    --clr-surface-hv: rgba(255, 255, 255, 0.08);
    --clr-border: rgba(255, 255, 255, 0.10);
    --clr-border-hv: rgba(250, 204, 21, 0.45);

    /* Brand */
    --clr-gold: #facc15;
    --clr-gold-dim: #eab308;
    --clr-purple: #a855f7;
    --clr-purple-dim: #9333ea;
    --clr-neon: #22d3ee;
    --clr-neon-dim: #06b6d4;
    --clr-green: #22c55e;
    --clr-red: #ef4444;

    /* Text */
    --clr-text: #f1f5f9;
    --clr-text-muted: #94a3b8;
    --clr-text-dim: #64748b;

    /* Nav */
    --nav-h: 70px;
    --footer-h: 50px;

    /* Glassmorphism */
    --glass-bg: rgba(10, 10, 20, 0.60);
    --glass-bg2: rgba(16, 16, 30, 0.75);
    --glass-blur: 14px;
    --glass-border: rgba(255, 255, 255, 0.09);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.7);
    --shadow-gold: 0 0 20px rgba(250, 204, 21, 0.35);
    --shadow-purple: 0 0 20px rgba(168, 85, 247, 0.35);

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --dur-fast: 180ms;
    --dur-med: 320ms;
    --dur-slow: 500ms;

    /* Fonts */
    --font-display: 'Rajdhani', 'Orbitron', sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

    /* Spacing scale */
    --sp-1: 0.25rem;
    /* 4px  */
    --sp-2: 0.5rem;
    /* 8px  */
    --sp-3: 0.75rem;
    /* 12px */
    --sp-4: 1rem;
    /* 16px */
    --sp-5: 1.25rem;
    /* 20px */
    --sp-6: 1.5rem;
    /* 24px */
    --sp-8: 2rem;
    /* 32px */
    --sp-10: 2.5rem;
    /* 40px */
    --sp-12: 3rem;
    /* 48px */
    --sp-16: 4rem;
    /* 64px */
}

/* ── Reset / Base ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--clr-text);
    background-color: var(--clr-bg);
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(168, 85, 247, 0.12), transparent),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(250, 204, 21, 0.06), transparent),
        linear-gradient(rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.72)),
        url('../app/models/background/background.jpg');
    background-size: auto, auto, auto, cover;
    background-position: center, center, center, center 35px;
    background-attachment: fixed;
    overflow-x: hidden;
    padding-bottom: var(--footer-h);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--dur-fast) var(--ease);
}

ul,
ol {
    list-style: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

button {
    cursor: pointer;
}

/* Typography */
h1 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--clr-text);
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin-top: 0;
}

h2 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--clr-text);
    font-size: clamp(1.4rem, 3vw, 2.4rem);
}

h3 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--clr-text);
    font-size: clamp(1.1rem, 2vw, 1.5rem);
}

h4,
h5,
h6 {
    font-family: var(--font-display);
    color: var(--clr-text);
}

p {
    color: var(--clr-text-muted);
    line-height: 1.7;
}

li {
    color: var(--clr-text-muted);
}

/* ── Page Wrapper ── */
.page-wrapper {
    margin-top: var(--nav-h);
    padding-bottom: calc(var(--footer-h) + var(--sp-8));
    min-height: calc(100vh - var(--nav-h));
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--sp-6);
    width: 100%;
}

/* ── Section headings ── */
.section-heading {
    text-align: center;
    margin-bottom: var(--sp-8);
}

.section-heading h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--clr-text);
    position: relative;
    display: inline-block;
}

.section-heading h2::after {
    content: '';
    display: block;
    width: 60%;
    height: 2px;
    margin: var(--sp-2) auto 0;
    background: linear-gradient(90deg, transparent, var(--clr-gold), transparent);
}

.section-heading .sub-desc {
    margin-top: var(--sp-2);
    color: var(--clr-text-muted);
    font-size: 1rem;
}

/* ── Glass card ── */
.glass-box {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto var(--sp-8);
    padding: var(--sp-8);
    border-radius: var(--radius-lg);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
    color: var(--clr-text);
}

.glass-box a {
    color: var(--clr-text);
}

.glass-box a:hover {
    color: var(--clr-gold);
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--dur-med) var(--ease);
    user-select: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--clr-gold);
    color: #000;
    border-color: var(--clr-gold);
    box-shadow: 0 0 12px rgba(250, 204, 21, 0.30);
}

.btn-primary:hover {
    background: #fff;
    border-color: #fff;
    box-shadow: 0 0 22px rgba(250, 204, 21, 0.55);
    transform: translateY(-2px);
    color: #000;
}

.btn-secondary {
    background: transparent;
    color: var(--clr-gold);
    border-color: var(--clr-gold);
}

.btn-secondary:hover {
    background: var(--clr-gold);
    color: #000;
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
}

.btn-ghost {
    background: var(--clr-surface);
    color: var(--clr-text);
    border-color: var(--clr-border);
}

.btn-ghost:hover {
    background: var(--clr-surface-hv);
    border-color: var(--clr-border-hv);
}

.buttons {
    display: flex;
    gap: var(--sp-4);
    flex-wrap: wrap;
}

/* ── TOP BAR (Navbar) ── */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-h);
    background: rgba(10, 10, 20, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--clr-border);
    z-index: 9000;
    padding: 0 var(--sp-8);
    box-shadow: var(--shadow-md);
    transition: background var(--dur-med) var(--ease);
}

.top-bar.scrolled {
    background: rgba(5, 5, 12, 0.96);
    border-bottom-color: var(--clr-border-hv);
}

/* Logo */
.logo {
    width: 170px;
    height: 52px;
    background: url('../app/models/logo/logo.png') no-repeat center;
    background-size: contain;
    flex-shrink: 0;
    position: static;
    transition: transform var(--dur-fast) var(--ease), filter var(--dur-fast) var(--ease);
}

.logo:hover {
    transform: scale(1.04);
    filter: brightness(1.2);
}

/* Menu */
.menu {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.menu ul,
.menu-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    list-style: none;
    margin: 0 auto;
    padding: 0;
    flex-wrap: wrap;
}

.menu ul li a,
.menu-list li a {
    display: block;
    text-align: center;
    padding: 0.6rem 1.1rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--clr-text-muted);
    border-radius: var(--radius-sm);
    transition: all var(--dur-fast) var(--ease);
    white-space: nowrap;
}

.menu ul li a:hover,
.menu-list li a:hover {
    color: var(--clr-gold);
    background: rgba(250, 204, 21, 0.08);
}

.menu ul li a.active,
.menu-list li a.active {
    color: var(--clr-gold);
    background: rgba(250, 204, 21, 0.12);
}

/* Dropdown */
.menu li.dropdown {
    position: relative;
}

.menu li.dropdown>a::after {
    content: " ▾";
    font-size: 0.7rem;
}

.menu li .dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 190px;
    background: rgba(10, 10, 22, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 999;
    overflow: hidden;
}

.menu li .dropdown-content li a {
    padding: 0.6rem 1.1rem;
    border-radius: 0;
    font-size: 0.84rem;
    border-bottom: 1px solid var(--clr-border);
}

.menu li .dropdown-content li:last-child a {
    border-bottom: none;
}

.menu li.dropdown:hover .dropdown-content {
    display: block;
}

/* Hamburger */
.hamburger-button {
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(20, 20, 30, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 8px;
    border-radius: var(--radius-md);
    z-index: 9100;
    cursor: pointer;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    outline: none;
}

.hamburger-button:hover {
    border-color: rgba(250, 204, 21, 0.4);
    background: rgba(250, 204, 21, 0.1);
    box-shadow: 0 0 15px rgba(250, 204, 21, 0.25);
    transform: translateY(-2px);
}

.hamburger-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 2px;
    background: var(--clr-text);
    position: relative;
    border-radius: 2px;
    transition: background 0.2s ease-out;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    display: block;
    height: 2px;
    background: var(--clr-text);
    position: absolute;
    border-radius: 2px;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), top 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), width 0.3s ease, background 0.3s ease;
    right: 0;
}

.hamburger-icon::before {
    top: -8px;
    width: 75%;
}

.hamburger-button:hover .hamburger-icon::before {
    width: 100%;
}

.hamburger-icon::after {
    top: 8px;
    width: 60%;
}

.hamburger-button:hover .hamburger-icon::after {
    width: 100%;
}

.hamburger-button.active {
    border-color: var(--clr-gold);
    background: rgba(250, 204, 21, 0.15) !important;
    box-shadow: 0 0 20px rgba(250, 204, 21, 0.3);
    transform: scale(0.95);
}

.hamburger-button.active .hamburger-icon {
    background: transparent;
}

.hamburger-button.active .hamburger-icon::before {
    top: 0;
    width: 100%;
    transform: rotate(45deg);
    background: var(--clr-gold);
}

.hamburger-button.active .hamburger-icon::after {
    top: 0;
    width: 100%;
    transform: rotate(-45deg);
    background: var(--clr-gold);
}

/* ── HERO ── */
.hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--sp-8);
    padding: var(--sp-12) var(--sp-8);
    max-width: 1400px;
    margin: 0 auto;
    min-height: 80vh;
}

.hero-text {
    flex: 1 1 420px;
    max-width: 600px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s var(--ease) forwards;
    animation-delay: 0.2s;
}

.hero-text h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: var(--sp-4);
    color: var(--clr-text);
    text-shadow: 0 0 40px rgba(168, 85, 247, 0.2);
    animation: none;
    opacity: 1;
    transform: none;
}

.hero-text p {
    font-size: 1.05rem;
    color: var(--clr-text-muted);
    margin-bottom: var(--sp-6);
    line-height: 1.8;
    animation: none;
    opacity: 1;
    transform: none;
}

.hero-text h1 .pc {
    color: var(--clr-neon);
}

.hero-text h1 .mobile {
    color: #fb923c;
}

.hero-text h1 .pink {
    color: var(--clr-purple);
}

.hero-text p .pc,
.hero-text p .mobile,
.hero-text p .highlight,
.hero-text p .pink {
    font-weight: 600;
}

.hero-text p .pc {
    color: var(--clr-neon);
}

.hero-text p .mobile {
    color: #fb923c;
}

.hero-text p .highlight,
.hero-text p .pink {
    color: var(--clr-purple);
}

.hero-image {
    flex: 1 1 380px;
    max-width: 500px;
    text-align: center;
    opacity: 0;
    animation: fadeInRight 0.9s var(--ease) forwards;
    animation-delay: 0.4s;
}

.hero-image img {
    border-radius: var(--radius-lg);
    animation: pulseShadow 4s ease-in-out infinite;
    max-width: 100%;
}

.hero-gif {
    width: 90px;
    margin-bottom: var(--sp-4);
    border-radius: var(--radius-sm);
}

/* ── HERO STATS ── */
.hero-stats {
    display: flex;
    gap: var(--sp-5);
    margin-top: var(--sp-5);
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
    padding: var(--sp-3) var(--sp-5);
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    backdrop-filter: blur(8px);
    transition: border-color var(--dur-med) var(--ease), transform var(--dur-fast) var(--ease);
}

.hero-stat:hover {
    border-color: var(--clr-gold);
    transform: translateY(-3px);
}

.hero-stat .stat-num {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--clr-gold);
}

.hero-stat .stat-lbl {
    font-size: 0.75rem;
    color: var(--clr-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── GAME TYPES ── */
.game-types {
    display: flex;
    justify-content: center;
    gap: var(--sp-6);
    padding: var(--sp-10) var(--sp-8);
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.game-box {
    flex: 1 1 300px;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: var(--sp-8);
    backdrop-filter: blur(var(--glass-blur));
    transition: transform var(--dur-med) var(--ease), border-color var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease);
    position: relative;
    overflow: hidden;
}

.game-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.05), transparent 50%);
    opacity: 0;
    transition: opacity var(--dur-med) var(--ease);
}

.game-box:hover::before {
    opacity: 1;
}

.game-box:hover {
    transform: translateY(-6px);
    border-color: rgba(250, 204, 21, 0.35);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), var(--shadow-gold);
}

.game-box h2 {
    color: var(--clr-gold);
    font-size: 1.5rem;
    margin-bottom: var(--sp-3);
    font-family: var(--font-display);
}

.game-box p {
    font-size: 0.94rem;
    margin-bottom: var(--sp-4);
}

.game-box ul {
    padding-left: var(--sp-4);
    list-style: disc;
}

.game-box ul li {
    color: var(--clr-text-muted);
    margin-bottom: var(--sp-2);
    font-size: 0.92rem;
}

/* ── SPONSORS ── */
.sponsors {
    padding: var(--sp-12) var(--sp-8);
    text-align: center;
    position: relative;
}

.sponsors h2 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--clr-gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: var(--sp-8);
}

.sponsor-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--sp-5);
    align-items: center;
}

.sponsor-list a {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--sp-5) var(--sp-6);
    border-radius: var(--radius-md);
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    transition: all var(--dur-med) var(--ease);
    max-width: 160px;
    gap: var(--sp-2);
    text-decoration: none;
}

.sponsor-list a:hover {
    border-color: var(--clr-gold);
    background: rgba(250, 204, 21, 0.06);
    transform: translateY(-4px);
    box-shadow: var(--shadow-gold);
}

.sponsor-list img {
    max-height: 70px;
    object-fit: contain;
    filter: brightness(0.85);
    transition: filter var(--dur-fast) var(--ease);
}

.sponsor-list a:hover img {
    filter: brightness(1.1);
}

.sponsor-list span {
    font-size: 0.8rem;
    color: var(--clr-text-muted);
}

.sponsors::after {
    content: '';
    display: block;
    width: min(500px, 80%);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--clr-gold), transparent);
    margin: var(--sp-10) auto 0;
}

/* ── COMMENTS ── */
.customer-comments {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--sp-12) var(--sp-8);
    overflow: hidden;
}

.comments-wrapper {
    position: relative;
    overflow: hidden;
}

.comments-wrapper::before,
.comments-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}

.comments-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--clr-bg), transparent);
}

.comments-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--clr-bg), transparent);
}

.comments-scroll {
    display: flex;
    gap: var(--sp-5);
    width: max-content;
    animation: scrollLeft 90s linear infinite;
    /* ── Kullanıcı yorum hızı kayma ── */
}

.comment-card {
    flex: 0 0 auto;
    width: 280px;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    padding: var(--sp-5);
    backdrop-filter: blur(8px);
    transition: transform var(--dur-med) var(--ease), border-color var(--dur-med) var(--ease);
}

.comment-card:hover {
    transform: translateY(-4px);
    border-color: rgba(250, 204, 21, 0.3);
}

.comment-text {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    line-height: 1.6;
    font-style: italic;
    margin-bottom: var(--sp-3);
}

.read-more {
    color: var(--clr-neon);
    font-size: 0.82rem;
    text-decoration: underline;
    cursor: pointer;
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--clr-text-dim);
    margin-top: var(--sp-2);
    border-top: 1px solid var(--clr-border);
    padding-top: var(--sp-2);
}

.comment-meta .name {
    font-weight: 600;
    color: var(--clr-text-muted);
}

/* ── POPULAR TOURNAMENTS ── */
.popular-tournaments {
    padding: var(--sp-12) var(--sp-8);
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.popular-tournaments h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: var(--clr-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--sp-8);
}

.tournaments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--sp-6);
}

.tournament-card {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: var(--sp-6);
    text-align: left;
    backdrop-filter: blur(var(--glass-blur));
    transition: all var(--dur-med) var(--ease);
    position: relative;
    overflow: hidden;
}

.tournament-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--clr-gold), var(--clr-purple));
    opacity: 0;
    transition: opacity var(--dur-med) var(--ease);
}

.tournament-card:hover {
    transform: translateY(-8px);
    border-color: rgba(250, 204, 21, 0.40);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), var(--shadow-gold);
}

.tournament-card:hover::before {
    opacity: 1;
}

.tournament-card h3 {
    color: var(--clr-gold);
    margin-bottom: var(--sp-3);
    font-family: var(--font-display);
    font-size: 1.2rem;
}

.tournament-card p {
    color: var(--clr-text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--sp-2);
}

.tournament-card button {
    width: 100%;
    margin-top: var(--sp-4);
    background: linear-gradient(135deg, var(--clr-gold), var(--clr-gold-dim));
    color: #000;
    border: none;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: all var(--dur-fast) var(--ease);
    box-shadow: 0 4px 12px rgba(250, 204, 21, 0.2);
}

.tournament-card button:hover {
    background: linear-gradient(135deg, #fff, #f5f5f5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(250, 204, 21, 0.4);
}

/* ── FOOTER ── */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--footer-h);
    background: rgba(8, 8, 16, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--clr-border);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--sp-6);
}

footer p {
    font-size: 0.78rem;
    color: var(--clr-text-dim);
    text-align: center;
}

footer a {
    color: var(--clr-text-muted);
    transition: color var(--dur-fast) var(--ease);
}

footer a:hover {
    color: var(--clr-gold);
}

/* Social sidebar */
.sosyal-bar {
    position: fixed;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    z-index: 8000;
}

.sosyal-bar a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    backdrop-filter: blur(8px);
    transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
    text-decoration: none;
}

.sosyal-bar a:hover {
    transform: scale(1.18);
    background: rgba(250, 204, 21, 0.15);
    box-shadow: 0 0 14px rgba(250, 204, 21, 0.3);
}

.sosyal-bar .fa-discord {
    color: #5865F2;
}

.sosyal-bar .fa-youtube {
    color: #FF0000;
}

.sosyal-bar .fa-instagram {
    color: #E4405F;
}

.sosyal-bar .fa-tiktok {
    color: #fff;
}

.sosyal-bar .fa-whatsapp {
    color: #25D366;
}

/* ── FORMS (Global) ── */
form {
    max-width: 600px;
    margin: var(--sp-10) auto var(--sp-8);
    padding: var(--sp-8) var(--sp-8);
    border-radius: var(--radius-lg);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(var(--glass-blur));
    box-shadow: var(--shadow-lg);
    color: var(--clr-text);
}

form h2 {
    text-align: center;
    color: var(--clr-gold);
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: var(--sp-6);
}

label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--clr-text-muted);
    margin-bottom: var(--sp-1);
    margin-top: var(--sp-4);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="tel"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    color: var(--clr-text);
    font-size: 0.95rem;
    font-family: var(--font-body);
    transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
    outline: none;
    box-sizing: border-box;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: var(--clr-text-dim);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--clr-gold);
    background: rgba(250, 204, 21, 0.04);
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.12);
}

select option {
    background: #1e1e30;
    color: #fff;
}

button {
    display: block;
    width: 100%;
    margin-top: var(--sp-5);
    padding: 0.85rem 1.5rem;
    background: linear-gradient(135deg, var(--clr-gold), var(--clr-gold-dim));
    color: #000;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all var(--dur-fast) var(--ease);
    box-shadow: 0 4px 14px rgba(250, 204, 21, 0.25);
}

button:hover:not(:disabled) {
    background: linear-gradient(135deg, #fff, #f0f0f0);
    box-shadow: 0 6px 20px rgba(250, 204, 21, 0.4);
    transform: translateY(-2px);
}

button:disabled {
    background: #2a2a3a;
    color: var(--clr-text-dim);
    cursor: not-allowed;
    box-shadow: none;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    margin: var(--sp-4) 0;
    font-size: 0.9rem;
}

.checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--clr-gold);
}

.button-group {
    display: flex;
    gap: var(--sp-3);
}

.button-group button {
    flex: 1;
}

/* ── FORM MESSAGES ── */
.error-message {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-sm);
    padding: var(--sp-3) var(--sp-4);
    margin: var(--sp-3) 0;
    font-size: 0.9rem;
    text-align: center;
}

.success-message {
    background: rgba(34, 197, 94, 0.12);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius-sm);
    padding: var(--sp-3) var(--sp-4);
    margin: var(--sp-3) 0;
    font-size: 0.9rem;
    text-align: center;
}

.success,
.error {
    position: fixed;
    top: calc(var(--nav-h) + 10px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    padding: var(--sp-3) var(--sp-6);
    border-radius: var(--radius-md);
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(8px);
}

.success {
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.error {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ── MODAL ── */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10010;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    overflow-y: auto;
    padding: var(--sp-8) var(--sp-4);
}

.modal-content {
    background: var(--glass-bg2);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    max-width: 600px;
    margin: 0 auto;
    padding: var(--sp-8);
    position: relative;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(14px);
    color: var(--clr-text);
}

.modal-content h2 {
    color: var(--clr-gold);
    font-family: var(--font-display);
    margin-bottom: var(--sp-4);
    text-align: center;
}

.modal-content p {
    color: var(--clr-text-muted);
    margin-bottom: var(--sp-3);
}

.modal-content pre {
    background: rgba(0, 0, 0, 0.4);
    border-radius: var(--radius-sm);
    padding: var(--sp-4);
    max-height: 60vh;
    overflow-y: auto;
    font-size: 0.88rem;
    white-space: pre-wrap;
}

.close-btn {
    position: absolute;
    top: var(--sp-4);
    right: var(--sp-5);
    font-size: 1.8rem;
    color: var(--clr-text-muted);
    cursor: pointer;
    line-height: 1;
    transition: color var(--dur-fast) var(--ease);
    user-select: none;
}

.close-btn:hover {
    color: var(--clr-gold);
}

.popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10005;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
}

.popup.active {
    display: flex;
}

.popup-content {
    background: var(--glass-bg2);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: var(--sp-8);
    max-width: 600px;
    width: 90%;
    color: var(--clr-text);
    position: relative;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(14px);
}

.popup .close {
    position: absolute;
    top: var(--sp-4);
    right: var(--sp-5);
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--clr-text-muted);
}

.popup .close:hover {
    color: var(--clr-gold);
}

/* ── SECTION (global) ── */
section {
    padding: var(--sp-6) 0;
    background: transparent;
}

.section-description {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    padding: 0 var(--sp-4);
    color: var(--clr-text-muted);
}

/* ── TABLE ── */
table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-md);
    overflow: hidden;
}

th,
td {
    padding: 0.75rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--clr-border);
    color: var(--clr-text);
}

th {
    background: rgba(250, 204, 21, 0.08);
    color: var(--clr-gold);
    font-family: var(--font-display);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

tr:hover td {
    background: var(--clr-surface-hv);
}

.rank-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: var(--sp-5) 0;
}

.rank-table {
    min-width: 800px;
    width: 100%;
    border-collapse: collapse;
}

.rank-table th,
.rank-table td {
    border: 1px solid var(--clr-border);
    padding: 0.7rem;
    text-align: center;
    white-space: nowrap;
    color: var(--clr-text);
}

.rank-table thead {
    background: rgba(250, 204, 21, 0.08);
    color: var(--clr-gold);
}

/* ── MEDIA PAGE ── */
.medya-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--clr-gold);
    text-align: center;
    margin: var(--sp-8) 0 var(--sp-6);
    letter-spacing: 1px;
}

.medya-container {
    max-width: 1100px;
    margin: 0 auto var(--sp-12);
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--sp-6);
    padding: 0 var(--sp-8);
}

.medya-kart {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    padding: var(--sp-5);
    backdrop-filter: blur(8px);
    transition: all var(--dur-med) var(--ease);
}

.medya-kart:hover {
    transform: translateY(-5px);
    border-color: rgba(250, 204, 21, 0.4);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), var(--shadow-gold);
}

.medya-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: var(--sp-3);
}

.medya-kart h3 {
    color: var(--clr-gold);
    font-family: var(--font-display);
    margin-bottom: var(--sp-2);
}

.medya-kart p {
    color: var(--clr-text-muted);
    font-size: 0.9rem;
}

.medya-kart a {
    color: var(--clr-gold);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-top: var(--sp-3);
}

.medya-kart a:hover {
    color: var(--clr-text);
    text-decoration: underline;
}

/* ── EVENTS ── */
.etkinlik-listesi {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-5);
    justify-content: flex-start;
    padding: 0 var(--sp-5);
}

.etkinlik {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: var(--sp-5);
    width: 300px;
    backdrop-filter: blur(10px);
    transition: all var(--dur-med) var(--ease);
}

.etkinlik img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: var(--sp-4);
}

.etkinlik:hover {
    transform: scale(1.03);
    border-color: rgba(250, 204, 21, 0.4);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.etkinlik h3 {
    color: var(--clr-text);
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: var(--sp-2);
}

.etkinlik p {
    color: var(--clr-text-muted);
    font-size: 0.9rem;
}

.etkinlik .tarih {
    color: var(--clr-gold);
    font-weight: 600;
    margin-top: var(--sp-3);
}

.etkinlik .devami {
    color: var(--clr-neon);
    text-decoration: underline;
    cursor: pointer;
}

.status-wrapper {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    margin-top: var(--sp-3);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.status-aktif {
    background: var(--clr-green);
    box-shadow: 0 0 6px var(--clr-green);
}

.status-kapali {
    background: var(--clr-red);
    box-shadow: 0 0 6px var(--clr-red);
}

.status-label {
    color: var(--clr-text-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.kayit-button,
.kayit-link {
    color: var(--clr-green);
    text-decoration: underline;
    cursor: pointer;
}

.kayit-button:hover,
.kayit-link:hover {
    color: #4ade80;
}

/* ── ABOUT ── */
.about-flex-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    max-width: 1400px;
    margin: var(--sp-12) auto;
    padding: var(--sp-5);
    gap: var(--sp-8);
}

.about-text {
    flex: 1 1 500px;
    min-width: 300px;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    padding: var(--sp-8);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    color: var(--clr-text);
}

.about-image {
    flex: 1 1 400px;
    text-align: center;
}

.about-image img {
    border-radius: var(--radius-lg);
    max-width: 100%;
}

.social-links {
    display: flex;
    gap: var(--sp-4);
    margin-top: var(--sp-4);
}

.social-links a {
    color: var(--clr-text-muted);
    font-size: 1.25rem;
    text-decoration: none;
    transition: color var(--dur-fast) var(--ease);
}

.social-links a:hover {
    color: var(--clr-gold);
}

/* ── DASHBOARD ── */
.dashboard {
    max-width: 900px;
    margin: var(--sp-12) auto;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-xl);
    padding: var(--sp-8);
    backdrop-filter: blur(var(--glass-blur));
    box-shadow: var(--shadow-lg);
}

.dashboard h1 {
    font-family: var(--font-display);
    color: var(--clr-text);
    margin-bottom: var(--sp-2);
}

.user-info {
    color: var(--clr-text-muted);
    margin-bottom: var(--sp-6);
}

.user-info p {
    font-size: 0.92rem;
    margin-bottom: var(--sp-2);
}

.quick-access-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--sp-4);
    margin: var(--sp-6) 0;
}

.quick-box {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    padding: var(--sp-5);
    backdrop-filter: blur(8px);
    transition: all var(--dur-med) var(--ease);
}

.quick-box:hover {
    background: var(--clr-surface-hv);
    border-color: var(--clr-border-hv);
    transform: translateY(-4px);
    box-shadow: var(--shadow-gold);
}

.quick-box h3 {
    color: var(--clr-gold);
    font-family: var(--font-display);
    margin-bottom: var(--sp-3);
}

.refresh-icon {
    cursor: pointer;
    font-size: 15px;
    margin-left: 4px;
    vertical-align: middle;
    transition: transform 0.3s;
}

.refresh-icon:hover {
    transform: rotate(180deg);
}

/* ── COLOURS / GRID UTILS ── */
.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--sp-5);
}

.col-span-12 {
    grid-column: span 12;
}

@media (min-width:1024px) {
    .lg\:col-span-4 {
        grid-column: span 4;
    }

    .lg\:col-span-8 {
        grid-column: span 8;
    }
}

@media (max-width:1023px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .col-span-12,
    .lg\:col-span-4,
    .lg\:col-span-8 {
        grid-column: span 12;
    }
}

.text-yellow {
    color: var(--clr-gold);
}

.text-violet {
    color: var(--clr-purple);
}

.text-cyan {
    color: var(--clr-neon);
}

.text-lime {
    color: var(--clr-green);
}

.text-secondary {
    color: var(--clr-text-muted);
}

.bg-card {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    padding: var(--sp-5);
}

.bg-yellow {
    background: rgba(250, 204, 21, 0.10);
}

.bg-violet {
    background: rgba(168, 85, 247, 0.10);
}

.bg-cyan {
    background: rgba(34, 211, 238, 0.10);
}

.bg-lime {
    background: rgba(34, 197, 94, 0.10);
}

.mt-1 {
    margin-top: var(--sp-1);
}

.mt-7 {
    margin-top: 1.75rem;
}

.ml-3 {
    margin-left: var(--sp-3);
}

.pt-1 {
    padding-top: var(--sp-1);
}

.pt-2 {
    padding-top: var(--sp-2);
}

.font-bold {
    font-weight: 700;
}

.text-xl {
    font-size: 1.25rem;
    font-weight: 700;
}

.contact-block_item {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
}

a.custom_underline {
    text-decoration: underline;
    cursor: pointer;
}

a.custom_underline:hover {
    opacity: 0.8;
}

/* ── MAIN (scoreboard etc.) ── */
main {
    max-width: 1200px;
    margin: calc(var(--nav-h) + var(--sp-6)) auto var(--sp-10);
    padding: 0 var(--sp-5);
    color: var(--clr-text);
}

main h2 {
    text-align: center;
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: var(--clr-gold);
    margin-bottom: var(--sp-6);
}

thead th {
    padding: 0.75rem;
    font-size: 0.9rem;
}

td {
    padding: 0.7rem;
    font-size: 0.88rem;
}

/* ── ANIMATIONS ── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulseShadow {

    0%,
    100% {
        filter: drop-shadow(0 0 12px rgba(250, 204, 21, 0.45));
    }

    50% {
        filter: drop-shadow(0 0 28px rgba(250, 204, 21, 0.85));
    }
}

@keyframes scrollLeft {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@keyframes glowPulse {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
    }

    50% {
        box-shadow: 0 0 30px rgba(168, 85, 247, 0.7);
    }
}

@keyframes neonBlink {

    0%,
    95%,
    100% {
        opacity: 1;
    }

    97% {
        opacity: 0.6;
    }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: var(--sp-10) var(--sp-4);
        min-height: auto;
    }

    .buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .about-flex-wrapper {
        flex-direction: column;
    }

    .about-text {
        margin: 0 auto;
    }

    .game-types {
        flex-direction: column;
        align-items: center;
    }

    .game-box {
        max-width: 500px;
        width: 100%;
    }
}

/* ── MOBILE MENU OVERLAY & BODY LOCK ── */
body.no-scroll {
    overflow: hidden;
    height: 100vh;
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 8800;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-header {
    display: none;
}

@media (max-width: 800px) {
    .mobile-menu-header {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 20px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(10, 10, 16, 0.95);
        backdrop-filter: blur(12px);
        z-index: 9600;
    }
    
    .mobile-logo {
        width: 160px;
        height: 50px;
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        display: block;
    }

    .hamburger-button {
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        z-index: 9999;
        margin: auto 0;
        align-self: center;
    }

    .main-nav {
        display: block;
        position: fixed;
        top: 0;
        right: -100vw;
        width: 100vw;
        height: 100vh;
        background: rgba(10, 10, 16, 0.98);
        backdrop-filter: blur(28px);
        -webkit-backdrop-filter: blur(28px);
        border-left: none;
        z-index: 9500; /* Covers the top-bar (9000) but below hamburger (9999) */
        padding: 110px var(--sp-6) var(--sp-6) var(--sp-6); /* Enough top padding for absolute header */
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .main-nav.active {
        right: 0;
    }

    .menu ul,
    .menu-list {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: var(--sp-2);
        width: 100%;
        margin: 0;
        padding: 0;
        position: relative;
    }

    .menu ul li {
        width: 100%;
        max-width: 400px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    .menu ul li:last-child {
        border-bottom: none;
    }

    .menu ul li a,
    .menu-list li a {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.3rem;
        font-weight: 500;
        padding: 1.25rem 0.5rem;
        width: 100%;
        text-align: center;
        color: var(--clr-text);
        transition: color 0.2s, background 0.2s;
        border-radius: var(--radius-sm);
    }
    
    .menu ul li a:hover,
    .menu-list li a:hover,
    .menu ul li a:active {
        color: var(--clr-gold);
        background: rgba(250, 204, 21, 0.05);
    }

    .menu li .dropdown-content {
        position: static;
        border: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.02);
        border-radius: var(--radius-sm);
        margin-left: 0;
        padding: var(--sp-2);
        margin-top: var(--sp-2);
        margin-bottom: var(--sp-2);
        display: none;
    }

    .menu li.dropdown:hover .dropdown-content {
        display: none;
    }

    .menu li.dropdown.active .dropdown-content {
        display: block;
    }

    .top-bar {
        justify-content: space-between;
        padding: 0 var(--sp-4);
    }

    .quick-access-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    :root {
        --nav-h: 60px;
    }

    .logo {
        width: 130px;
        height: 44px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .tournament-card {
        max-width: 100%;
    }

    form {
        padding: var(--sp-5);
        margin: var(--sp-6) var(--sp-4);
    }

    .tournaments-grid {
        grid-template-columns: 1fr;
    }

    .etkinlik-listesi {
        flex-direction: column;
        align-items: center;
    }

    .etkinlik {
        width: 90%;
        max-width: 380px;
    }

    .quick-access-row {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: var(--sp-5);
    }

    footer {
        font-size: 0.72rem;
        padding: 0 var(--sp-3);
        height: auto;
        min-height: var(--footer-h);
        flex-wrap: wrap;
        padding: var(--sp-2) var(--sp-3);
    }

    main {
        padding: 0 var(--sp-3);
    }

    .medya-container {
        grid-template-columns: 1fr;
        padding: 0 var(--sp-4);
    }

    button,
    input[type="submit"],
    input[type="button"] {
        width: 100%;
    }

    .sosyal-bar {
        right: 6px;
        gap: var(--sp-1);
    }

    .sosyal-bar a {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }
}

/* ── MEDIA QUERY FOOTER OVERRIDE ── */
@media (max-width: 768px) {
    :root {
        --footer-h: 55px;
    }

    .hamburger-button.active {
        background: rgba(250, 204, 21, 0.15) !important;
        border-color: var(--clr-gold);
    }

    .main-nav.active {
        background-color: rgba(8, 8, 18, 0.98);
    }

    footer {
        height: auto;
        min-height: var(--footer-h);
        font-size: 0.75rem;
    }
}

/* ── Rank table mobile ── */
@media (max-width: 768px) {
    .rank-table {
        width: 900px;
    }

    .rank-table th,
    .rank-table td {
        font-size: 13px;
        padding: 5px 4px;
    }

    main h2 {
        font-size: 1.8rem;
    }
}

/* ── Mobile 768px safe buttons override ── */
@media (max-width: 768px) {
    .tournament-card button {
        width: 100%;
        margin-top: var(--sp-4);
    }
}