/* ══════════════════════════════════════════════════════════════════════════
   101 Okey Platform - Responsive CSS
   ══════════════════════════════════════════════════════════════════════════ */

:root {
    --primary: #1a5c2e;
    --primary-light: #2d8a46;
    --primary-dark: #0f3d1d;
    --accent: #c8a951;
    --accent-light: #e8d591;
    --bg: #f5f2eb;
    --bg-dark: #e8e4da;
    --text: #2d3436;
    --text-muted: #636e72;
    --border: #ddd;
    --white: #fff;
    --success: #27ae60;
    --danger: #e74c3c;
    --warning: #f39c12;
    --info: #3498db;
    --radius: 10px;
    --radius-lg: 16px;
    --shadow: 0 2px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
    overflow-x: hidden;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }

/* ── Container ─────────────────────────────────────────────────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
@media (max-width: 768px) {
    .container { padding: 0 15px; }
}

/* ── Navbar ────────────────────────────────────────────────────────────── */
.navbar {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.navbar-brand {
    color: #fff !important;
    font-size: 1.4rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo-icon {
    font-size: 1.6rem;
}
.navbar-nav {
    display: flex;
    list-style: none;
    gap: 8px;
}
.navbar-nav a {
    color: rgba(255,255,255,0.85);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s;
}
.navbar-nav a:hover,
.navbar-nav a.active {
    background: rgba(255,255,255,0.15);
    color: #fff;
}
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.lang-switch {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(255,255,255,0.1);
}
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mobile Nav */
@media (max-width: 900px) {
    .navbar-nav,
    .navbar-actions {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-dark);
        flex-direction: column;
        padding: 15px;
        gap: 8px;
        z-index: 1000;
    }
    .navbar-nav.show {
        display: flex;
    }
    .navbar-actions.show {
        display: flex;
        top: auto;
        position: relative;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        border-top: 1px solid rgba(255,255,255,0.1);
        padding-top: 15px;
        margin-top: 10px;
    }
    .nav-toggle {
        display: block;
    }
    .navbar .container {
        flex-wrap: wrap;
        position: relative;
    }
}

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.btn-sm { padding: 6px 14px; font-size: 0.85rem; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-gold { background: linear-gradient(135deg, var(--accent), #b8983d); color: #fff; }
.btn-gold:hover { background: linear-gradient(135deg, #b8983d, #a08530); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { background: var(--bg-dark); }

/* ── Cards ─────────────────────────────────────────────────────────────── */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.card-header {
    padding: 18px 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.card-body { padding: 24px; }
@media (max-width: 576px) {
    .card-header, .card-body { padding: 16px; }
}

/* ── Forms ─────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--text);
}
.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,92,46,0.1);
}

/* ── Alerts ────────────────────────────────────────────────────────────── */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 0.9rem;
}
.alert-success { background: #d4edda; color: #155724; border-left: 4px solid var(--success); }
.alert-danger { background: #f8d7da; color: #721c24; border-left: 4px solid var(--danger); }
.alert-warning { background: #fff3cd; color: #856404; border-left: 4px solid var(--warning); }
.alert-info { background: #d1ecf1; color: #0c5460; border-left: 4px solid var(--info); }

/* ── Badges ────────────────────────────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-success { background: #d4edda; color: #155724; }
.badge-danger { background: #f8d7da; color: #721c24; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-primary { background: #d4e7ff; color: #004085; }

/* ── Okey Tile Badge ───────────────────────────────────────────────────── */
.okey-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    border-radius: 4px;
    font-family: 'Georgia', serif;
}
.okey-tile.black {
    background: linear-gradient(145deg, #3a3a3a 0%, #1a1a1a 50%, #2a2a2a 100%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}
.okey-tile-sm { width: 22px; height: 28px; font-size: 0.8rem; }
.okey-tile-lg { width: 50px; height: 65px; font-size: 1.6rem; }

/* ── Table Status ──────────────────────────────────────────────────────── */
.table-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}
.status-waiting { background: #fff3cd; color: #856404; }
.status-full { background: #d4edda; color: #155724; }
.status-playing { background: #d1ecf1; color: #0c5460; }
.status-finished { background: #e2e3e5; color: #383d41; }
.status-cancelled { background: #f8d7da; color: #721c24; }

/* ══════════════════════════════════════════════════════════════════════════
   MASA KARTI - ÜSTTEN GÖRÜNÜM OTURMA DÜZENİ
   ══════════════════════════════════════════════════════════════════════════ */
.table-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    gap: 24px;
}
@media (max-width: 576px) {
    .table-grid { grid-template-columns: 1fr; gap: 16px; }
}

.game-table-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.game-table-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Masa Üst Görünümü */
.table-top-view {
    position: relative;
    height: 180px;
    background: linear-gradient(145deg, #1a5c2e, #0f3d1d);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Yeşil Masa */
.table-surface {
    position: relative;
    width: 140px;
    height: 100px;
    background: linear-gradient(145deg, #2d8a46, #1a5c2e);
    border-radius: 50px;
    border: 4px solid #0f3d1d;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.3), 0 4px 15px rgba(0,0,0,0.4);
}

/* Oturan Oyuncular */
.table-seats {
    position: absolute;
    width: 100%;
    height: 100%;
}
.seat {
    position: absolute;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px dashed rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.seat.occupied {
    border: none;
}
.seat.occupied img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}
.seat.empty::after {
    content: '?';
    color: rgba(255,255,255,0.4);
    font-weight: bold;
    font-size: 1.2rem;
}

/* 4 Kişilik Masa Pozisyonları */
.seats-4 .seat:nth-child(1) { top: -20px; left: 50%; transform: translateX(-50%); }
.seats-4 .seat:nth-child(2) { bottom: -20px; left: 50%; transform: translateX(-50%); }
.seats-4 .seat:nth-child(3) { left: -20px; top: 50%; transform: translateY(-50%); }
.seats-4 .seat:nth-child(4) { right: -20px; top: 50%; transform: translateY(-50%); }

/* 2 Kişilik */
.seats-2 .seat:nth-child(1) { top: -20px; left: 50%; transform: translateX(-50%); }
.seats-2 .seat:nth-child(2) { bottom: -20px; left: 50%; transform: translateX(-50%); }

/* 3 Kişilik */
.seats-3 .seat:nth-child(1) { top: -20px; left: 50%; transform: translateX(-50%); }
.seats-3 .seat:nth-child(2) { bottom: -15px; left: 15%; }
.seats-3 .seat:nth-child(3) { bottom: -15px; right: 15%; }

/* 5+ Kişilik */
.seats-5 .seat:nth-child(1) { top: -20px; left: 50%; transform: translateX(-50%); }
.seats-5 .seat:nth-child(2) { bottom: -20px; left: 50%; transform: translateX(-50%); }
.seats-5 .seat:nth-child(3) { left: -20px; top: 50%; transform: translateY(-50%); }
.seats-5 .seat:nth-child(4) { right: -20px; top: 50%; transform: translateY(-50%); }
.seats-5 .seat:nth-child(5) { top: -15px; right: 10px; }

.seats-6 .seat:nth-child(1) { top: -20px; left: 30%; }
.seats-6 .seat:nth-child(2) { top: -20px; right: 30%; }
.seats-6 .seat:nth-child(3) { bottom: -20px; left: 30%; }
.seats-6 .seat:nth-child(4) { bottom: -20px; right: 30%; }
.seats-6 .seat:nth-child(5) { left: -20px; top: 50%; transform: translateY(-50%); }
.seats-6 .seat:nth-child(6) { right: -20px; top: 50%; transform: translateY(-50%); }

.seats-8 .seat:nth-child(1) { top: -20px; left: 25%; }
.seats-8 .seat:nth-child(2) { top: -20px; right: 25%; }
.seats-8 .seat:nth-child(3) { bottom: -20px; left: 25%; }
.seats-8 .seat:nth-child(4) { bottom: -20px; right: 25%; }
.seats-8 .seat:nth-child(5) { left: -20px; top: 30%; }
.seats-8 .seat:nth-child(6) { left: -20px; bottom: 30%; }
.seats-8 .seat:nth-child(7) { right: -20px; top: 30%; }
.seats-8 .seat:nth-child(8) { right: -20px; bottom: 30%; }

/* Kart Alt Bilgiler */
.game-table-info {
    padding: 16px;
}
.game-table-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.game-table-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.game-table-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}
.game-table-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════════════════════════════
   FİLTRE SİSTEMİ
   ══════════════════════════════════════════════════════════════════════════ */
.filter-section {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}
.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    align-items: end;
}
@media (max-width: 576px) {
    .filter-grid { grid-template-columns: 1fr 1fr; }
}

/* ══════════════════════════════════════════════════════════════════════════
   ÜYE KARTLARI
   ══════════════════════════════════════════════════════════════════════════ */
.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
    gap: 20px;
}
@media (max-width: 576px) {
    .member-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}
.member-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}
.member-card:hover {
    transform: translateY(-4px);
}
.member-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
    border: 3px solid var(--bg);
}
@media (max-width: 576px) {
    .member-card { padding: 15px; }
    .member-card img { width: 60px; height: 60px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════════════════════════════════════ */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}
.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}
.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}
.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}
.hero p {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 30px;
}
.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}
.hero-stat {
    text-align: center;
}
.hero-stat-number {
    font-size: 2.2rem;
    font-weight: 800;
}
.hero-stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}
.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}
.btn-secondary {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.25);
    color: #fff;
}
@media (max-width: 768px) {
    .hero { padding: 50px 0; }
    .hero h1 { font-size: 1.8rem; }
    .hero p { font-size: 1rem; }
    .hero-stats { gap: 30px; }
    .hero-stat-number { font-size: 1.6rem; }
}

/* ══════════════════════════════════════════════════════════════════════════
   SECTION
   ══════════════════════════════════════════════════════════════════════════ */
.section {
    padding: 60px 0;
}
.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 10px;
}
.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 40px;
}
@media (max-width: 768px) {
    .section { padding: 40px 0; }
    .section-title { font-size: 1.4rem; margin-bottom: 8px; }
    .section-subtitle { margin-bottom: 24px; }
}

/* ── Table Cards (Home Page) ───────────────────────────────────────────── */
.table-card {
    display: flex;
    flex-direction: column;
}
.table-card-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    padding: 18px 20px;
}
.table-card-header h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}
.table-card-header .creator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    opacity: 0.9;
}
.table-card-content {
    padding: 20px;
    flex: 1;
}
.table-card-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 15px;
}
.table-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}
.table-meta-icon {
    font-size: 1.1rem;
}
.table-card-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.player-dots {
    display: flex;
    gap: 4px;
}
.player-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
}
.player-dot.filled {
    background: var(--success);
}

/* ── Testimonials ──────────────────────────────────────────────────────── */
.testimonials-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
}
.testimonials-section .section-title,
.testimonials-section .section-subtitle {
    color: #fff;
}
.testimonials-section .section-subtitle {
    opacity: 0.8;
}
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 24px;
}
.testimonial-card {
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 24px;
    backdrop-filter: blur(10px);
}
.testimonial-stars {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 12px;
}
.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
    font-style: italic;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.testimonial-author img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}
.testimonial-author-name {
    font-weight: 600;
}
.testimonial-author-rank {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* ── References ────────────────────────────────────────────────────────── */
.references-section {
    background: var(--bg-dark);
}
.ref-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: 24px;
}
.ref-card {
    text-align: center;
}
.ref-card img {
    max-height: 80px;
    margin-bottom: 12px;
}
.ref-card h4 {
    font-size: 1rem;
}

/* ══════════════════════════════════════════════════════════════════════════
   DASHBOARD
   ══════════════════════════════════════════════════════════════════════════ */
.dashboard-wrapper {
    display: flex;
    min-height: calc(100vh - 60px);
}
.sidebar {
    width: 280px;
    background: var(--white);
    border-right: 1px solid var(--border);
    flex-shrink: 0;
}
.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid var(--border);
}
.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
}
.sidebar-user img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}
.sidebar-user-name {
    font-weight: 600;
    font-size: 0.95rem;
}
.sidebar-user-role {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}
.sidebar-nav {
    list-style: none;
    padding: 15px 0;
}
.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--text);
    font-size: 0.9rem;
    transition: all 0.2s;
}
.sidebar-nav li a:hover,
.sidebar-nav li a.active {
    background: var(--bg);
    color: var(--primary);
}
.nav-divider {
    padding: 10px 20px 5px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.sidebar-badge {
    margin-left: auto;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    line-height: 1.4;
}
.sidebar-badge-danger  { background: #e74c3c; color: #fff; }
.sidebar-badge-warning { background: #f39c12; color: #fff; }
.sidebar-badge-muted   { background: var(--border); color: var(--text-muted); }
.dashboard-content {
    flex: 1;
    padding: 30px;
    background: var(--bg);
    overflow-x: auto;
}
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 15px;
}
.dashboard-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Dashboard Mobile */
@media (max-width: 900px) {
    .dashboard-wrapper { flex-direction: column; }
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .sidebar-nav {
        display: flex;
        flex-wrap: wrap;
        padding: 10px;
        gap: 5px;
    }
    .sidebar-nav li a {
        padding: 8px 12px;
        border-radius: 8px;
        font-size: 0.8rem;
    }
    .nav-divider { display: none; }
    .dashboard-content { padding: 20px 15px; }
}

/* ── Stat Cards ────────────────────────────────────────────────────────── */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}
.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}
.stat-card:hover { transform: translateY(-2px); }
.stat-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}
.stat-card-icon.green { background: #d4edda; }
.stat-card-icon.blue { background: #d1ecf1; }
.stat-card-icon.gold { background: #fff3cd; }
.stat-card-icon.red { background: #f8d7da; }
.stat-card-value { font-size: 1.6rem; font-weight: 800; }
.stat-card-label { font-size: 0.85rem; color: var(--text-muted); }

/* ══════════════════════════════════════════════════════════════════════════
   DATA TABLES
   ══════════════════════════════════════════════════════════════════════════ */
.data-table {
    width: 100%;
    border-collapse: collapse;
}
.data-table th,
.data-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.data-table th {
    background: var(--bg);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.data-table tbody tr:hover {
    background: var(--bg);
}

/* DataTables Override */
table.dataTable { width: 100% !important; }
.dataTables_wrapper { font-size: 0.9rem; }
.dataTables_filter input {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 12px;
}
.dataTables_length select {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 6px 10px;
}

/* ══════════════════════════════════════════════════════════════════════════
   MODAL
   ══════════════════════════════════════════════════════════════════════════ */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 30px;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.modal h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
}
@media (max-width: 576px) {
    .modal { padding: 20px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   AUTH PAGES
   ══════════════════════════════════════════════════════════════════════════ */
.auth-wrapper {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}
.auth-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 450px;
    width: 100%;
    box-shadow: var(--shadow-lg);
}
.auth-card h2 {
    text-align: center;
    margin-bottom: 8px;
}
.auth-card .subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 30px;
}
@media (max-width: 576px) {
    .auth-card { padding: 25px 20px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════════════════ */
.footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.85);
    padding: 50px 0 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}
.footer-brand {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}
.footer-desc {
    font-size: 0.9rem;
    opacity: 0.8;
}
.footer h4 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #fff;
}
.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 8px;
    font-size: 0.9rem;
}
.footer-links a {
    color: rgba(255,255,255,0.7);
}
.footer-links a:hover {
    color: #fff;
}
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    opacity: 0.7;
}
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
}

/* ══════════════════════════════════════════════════════════════════════════
   UTILITY CLASSES
   ══════════════════════════════════════════════════════════════════════════ */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }

/* Table Info Grid */
.table-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 576px) {
    .table-info-grid { grid-template-columns: 1fr; }
}

/* Application Item */
.application-item {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
@media (max-width: 576px) {
    .application-item { flex-direction: column; align-items: flex-start; }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════════════════════════════
   SPONSORS SLIDER
   ══════════════════════════════════════════════════════════════════════════ */
.sponsors-section {
    background: #f8f9fb;
    padding: 60px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}
.sponsors-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 36px;
    width: 100%;
}
.sponsors-header-text .section-title { margin-bottom: 4px; }
.sponsors-header-text .section-subtitle { margin-bottom: 0; }

/* Slider */
.sponsors-slider {
    overflow: hidden;
    padding: 8px 0;
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.sponsors-track {
    display: flex;
    gap: 24px;
    animation: scroll-sponsors 35s linear infinite;
}
.sponsors-track:hover {
    animation-play-state: paused;
}
.sponsor-item {
    flex-shrink: 0;
}
.sponsor-item a,
.sponsor-item > img {
    display: flex;
    align-items: center;
    justify-content: center;
}
.sponsor-item-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
    height: 110px;
    min-width: 180px;
}
.sponsor-item-box:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.1);
    transform: translateY(-3px);
    border-color: var(--primary);
}
.sponsor-item-box img {
    height: 70px;
    max-width: 160px;
    object-fit: contain;
    filter: grayscale(60%);
    opacity: 0.85;
    transition: all 0.3s ease;
}
.sponsor-item-box:hover img {
    filter: grayscale(0%);
    opacity: 1;
}
@keyframes scroll-sponsors {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@media (max-width: 768px) {
    .sponsor-item-box { height: 80px; min-width: 130px; padding: 14px 18px; }
    .sponsor-item-box img { height: 50px; max-width: 120px; }
    .sponsors-track { gap: 16px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE (Tüm Sayfalar)
   ══════════════════════════════════════════════════════════════════════════ */

/* === NAVBAR MOBILE === */
@media (max-width: 900px) {
    .navbar .container {
        flex-wrap: wrap;
        position: relative;
    }
    .navbar-brand {
        font-size: 1.1rem;
    }
    .nav-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: rgba(255,255,255,0.1);
        border: none;
        border-radius: 8px;
        color: #fff;
        font-size: 1.4rem;
        cursor: pointer;
    }
    .navbar-nav,
    .navbar-actions {
        display: none;
        width: 100%;
        flex-direction: column;
        background: var(--primary-dark);
        padding: 15px;
        gap: 5px;
        border-radius: 0 0 10px 10px;
    }
    .navbar-nav.show,
    .navbar-actions.show {
        display: flex !important;
    }
    .navbar-nav a {
        padding: 12px 15px;
        border-radius: 8px;
    }
    .navbar-nav a:hover,
    .navbar-nav a.active {
        background: rgba(255,255,255,0.1);
    }
    .navbar-actions {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        border-top: 1px solid rgba(255,255,255,0.1);
        margin-top: 10px;
        padding-top: 15px;
    }
}

/* === DASHBOARD MOBILE === */
@media (max-width: 900px) {
    .dashboard-layout {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 15px;
    }
    .sidebar-user { display: none; }
    .sidebar-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
    }
    .sidebar-nav li {
        flex: 1;
        min-width: calc(50% - 5px);
    }
    .sidebar-nav a {
        padding: 10px;
        font-size: 0.8rem;
        text-align: center;
        border-radius: 8px;
        background: rgba(255,255,255,0.1);
    }
    .sidebar-nav a .nav-icon {
        display: block;
        font-size: 1.2rem;
        margin-bottom: 4px;
    }
    .sidebar-nav .nav-divider {
        width: 100%;
        padding: 8px 0 4px;
        font-size: 0.7rem;
    }
    .dashboard-main {
        padding: 15px;
    }
    .dashboard-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .dashboard-header h1 {
        font-size: 1.3rem;
    }
}

/* === STAT CARDS MOBILE === */
@media (max-width: 768px) {
    .stat-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .stat-card {
        padding: 15px;
        flex-direction: column;
        text-align: center;
    }
    .stat-card-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    .stat-card-value {
        font-size: 1.4rem;
    }
    .stat-card-label {
        font-size: 0.75rem;
    }
}
@media (max-width: 400px) {
    .stat-cards {
        grid-template-columns: 1fr;
    }
}

/* === CARDS & TABLES MOBILE === */
@media (max-width: 768px) {
    .card {
        border-radius: 10px;
    }
    .card-header,
    .card-body {
        padding: 15px;
    }
    
    /* DataTables Mobile */
    .dataTables_wrapper {
        overflow-x: auto;
    }
    table.dataTable {
        font-size: 0.85rem;
    }
    table.dataTable th,
    table.dataTable td {
        padding: 10px 8px;
    }
    .dataTables_length,
    .dataTables_filter {
        float: none !important;
        text-align: center !important;
        margin-bottom: 10px;
    }
    .dataTables_info,
    .dataTables_paginate {
        float: none !important;
        text-align: center !important;
        margin-top: 10px;
    }
}

/* === FORMS MOBILE === */
@media (max-width: 576px) {
    .form-group {
        margin-bottom: 15px;
    }
    .form-control {
        padding: 12px;
        font-size: 16px; /* iOS zoom fix */
    }
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    .btn-sm {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}

/* === MODALS MOBILE === */
@media (max-width: 576px) {
    .modal-overlay {
        padding: 15px;
        align-items: flex-start;
        padding-top: 50px;
    }
    .modal {
        width: 100%;
        max-width: 100%;
        max-height: 85vh;
        overflow-y: auto;
        padding: 20px;
        border-radius: 15px;
    }
    .modal h3 {
        font-size: 1.2rem;
    }
}

/* === HERO MOBILE === */
@media (max-width: 576px) {
    .hero {
        padding: 40px 0;
    }
    .hero h1 {
        font-size: 1.5rem;
    }
    .hero p {
        font-size: 0.95rem;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .hero-buttons .btn {
        width: 100%;
    }
    .hero-stats {
        gap: 20px;
    }
    .hero-stat-number {
        font-size: 1.5rem;
    }
    .hero-stat-label {
        font-size: 0.8rem;
    }
}

/* === TABLE CARDS MOBILE === */
@media (max-width: 576px) {
    .table-grid,
    .game-table-grid {
        grid-template-columns: 1fr;
    }
    .table-card-header {
        padding: 15px;
    }
    .table-card-header h3 {
        font-size: 1rem;
    }
    .table-card-content {
        padding: 15px;
    }
    .table-card-meta {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .table-card-footer {
        padding: 12px 15px;
        flex-wrap: wrap;
    }
}

/* === MEMBERS GRID MOBILE === */
@media (max-width: 576px) {
    .member-grid {
        grid-template-columns: 1fr;
    }
    .member-card {
        padding: 15px;
    }
}

/* === TESTIMONIALS MOBILE === */
@media (max-width: 576px) {
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    .testimonial-card {
        padding: 20px;
    }
}

/* === PROFILE PAGE MOBILE === */
@media (max-width: 576px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .profile-avatar {
        width: 100px;
        height: 100px;
    }
}

/* === TABLE DETAIL MOBILE === */
@media (max-width: 576px) {
    .table-detail-header {
        padding: 20px 15px;
    }
    .table-detail-header h1 {
        font-size: 1.3rem;
    }
    .table-top-view {
        height: 140px;
    }
    .seat {
        width: 30px;
        height: 30px;
    }
}

/* === FILTERS MOBILE === */
@media (max-width: 768px) {
    .filters-form {
        flex-direction: column;
    }
    .filters-form .form-group {
        width: 100%;
    }
    .filters-form .btn {
        width: 100%;
    }
}

/* === FOOTER MOBILE === */
@media (max-width: 576px) {
    .footer {
        padding: 30px 0;
    }
    .footer-grid {
        gap: 20px;
    }
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}

/* === AUTH PAGES MOBILE === */
@media (max-width: 576px) {
    .auth-container {
        padding: 20px;
    }
    .auth-card {
        padding: 25px 20px;
    }
}

/* === NOTIFICATIONS/MESSAGES MOBILE === */
@media (max-width: 576px) {
    .notification-item,
    .message-item {
        padding: 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .notification-item .btn,
    .message-item .btn {
        width: 100%;
    }
}

/* === HIDE ON MOBILE === */
@media (max-width: 576px) {
    .hide-mobile { display: none !important; }
}

/* === SHOW ON MOBILE === */
@media (min-width: 577px) {
    .show-mobile { display: none !important; }
}

/* === TOUCH IMPROVEMENTS === */
@media (max-width: 768px) {
    a, button, .btn, input, select, textarea {
        -webkit-tap-highlight-color: transparent;
    }
    input[type="date"],
    input[type="time"],
    select {
        min-height: 44px;
    }
}

/* === FIX iOS INPUT ZOOM === */
@media screen and (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    input[type="number"],
    input[type="url"],
    textarea,
    select {
        font-size: 16px !important;
    }
}

/* === SPONSORS GRID (Az sponsor için) === */
.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 8px 0;
}
.sponsor-item-static {
    text-align: center;
}
.sponsor-item-static a,
.sponsor-item-static > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 28px 20px;
    transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
}
.sponsor-item-static:hover a,
.sponsor-item-static:hover > div {
    box-shadow: 0 8px 28px rgba(0,0,0,0.1);
    transform: translateY(-4px);
    border-color: var(--primary);
}
.sponsor-item-static img {
    height: 90px;
    max-width: 200px;
    object-fit: contain;
    filter: grayscale(40%);
    opacity: 0.9;
    transition: all 0.3s ease;
}
.sponsor-item-static:hover img {
    filter: grayscale(0%);
    opacity: 1;
}
.sponsor-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
}
@media (max-width: 576px) {
    .sponsors-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .sponsor-item-static img { height: 70px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   RANKS SECTION (Homepage)
   ══════════════════════════════════════════════════════════════════════════ */
.ranks-section {
    background: var(--bg);
    padding: 60px 0;
}
.ranks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}
.rank-card {
    background: var(--white);
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.rank-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.rank-card-starter {
    border: 2px solid var(--accent);
}
.rank-tile-wrapper {
    margin-bottom: 12px;
}
.okey-tile-home {
    width: 50px;
    height: 65px;
    margin: 0 auto;
    background: linear-gradient(145deg, #f8f4e8, #e8e0c8);
    border-radius: 6px;
    box-shadow: 
        0 3px 6px rgba(0,0,0,0.15),
        inset 0 1px 0 rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d4c8a8;
}
.tile-num {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--tile-color, #1a5c2e);
    font-family: 'Georgia', serif;
}
.rank-name {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}
.rank-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 12px;
}
.free-badge {
    background: var(--success);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}
.rank-buy-btn {
    width: 100%;
}

@media (max-width: 576px) {
    .ranks-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .rank-card {
        padding: 15px 10px;
    }
    .okey-tile-home {
        width: 40px;
        height: 52px;
    }
    .tile-num {
        font-size: 1.3rem;
    }
}

/* ══════════════════════════════════════════════════════════════════════════
   PAYMENT METHODS (Footer)
   ══════════════════════════════════════════════════════════════════════════ */
.payment-methods {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
    flex-wrap: wrap;
}
.payment-methods img {
    height: 28px;
    opacity: 0.8;
    transition: opacity 0.3s;
}
.payment-methods img:hover {
    opacity: 1;
}

/* ══════════════════════════════════════════════════════════════════════════
   OKEY TILE REALISTIC (Global)
   ══════════════════════════════════════════════════════════════════════════ */
.okey-tile-realistic {
    width: 45px;
    height: 60px;
    background: linear-gradient(145deg, #f8f4e8, #e8e0c8);
    border-radius: 6px;
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.8),
        inset 0 -1px 0 rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid #d4c8a8;
}
.okey-tile-realistic.okey-tile-lg {
    width: 60px;
    height: 80px;
}
.okey-tile-realistic.okey-tile-lg .tile-number {
    font-size: 2rem;
}
.okey-tile-realistic.okey-tile-sm {
    width: 35px;
    height: 46px;
}
.okey-tile-realistic.okey-tile-sm .tile-number {
    font-size: 1.1rem;
}
.okey-tile-realistic.okey-tile-xs {
    width: 28px;
    height: 36px;
}
.okey-tile-realistic.okey-tile-xs .tile-number {
    font-size: 0.9rem;
}
.tile-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.tile-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--tile-color, #1a5c2e);
    text-shadow: 1px 1px 0 rgba(255,255,255,0.5);
    font-family: 'Georgia', serif;
}

/* ══════════════════════════════════════════════════════════════════════════
   OKEY TILE - BLACK BACKGROUND VERSION
   ══════════════════════════════════════════════════════════════════════════ */
.okey-tile-realistic,
.okey-tile-home {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a) !important;
    border: 1px solid #444 !important;
    box-shadow: 
        0 3px 8px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.15),
        inset 0 -1px 0 rgba(0,0,0,0.3) !important;
}
.okey-tile-realistic .tile-number,
.okey-tile-realistic .tile-num,
.okey-tile-home .tile-num,
.tile-number,
.tile-num {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8) !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   RANKS CTA BANNER
   ══════════════════════════════════════════════════════════════════════════ */
.ranks-cta-section {
    background: var(--bg);
    padding: 40px 0;
}
.ranks-cta-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 16px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
}
.cta-content h2 {
    margin: 0 0 8px;
    font-size: 1.6rem;
}
.cta-content p {
    margin: 0;
    opacity: 0.9;
}
.btn-lg {
    padding: 14px 30px;
    font-size: 1rem;
}
@media (max-width: 768px) {
    .ranks-cta-banner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 28px 16px;
    }
    .cta-content h2 { font-size: 1.2rem; }
    .ranks-cta-banner .btn { width: 100%; justify-content: center; }
}
