/* ===== Shadow Esports - Main Stylesheet ===== */
:root {
  --primary: #6c63ff;
  --secondary: #ff6584;
  --accent: #00ff88;
  --dark: #0a0a0f;
  --dark-2: #12121a;
  --dark-3: #1a1a2e;
  --border: #1e1e2e;
  --text: #c0c0d0;
  --text-muted: #666680;
  --gradient: linear-gradient(135deg, #6c63ff, #ff6584);
}

* { box-sizing: border-box; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark-2); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* NAVBAR */
.navbar { background: rgba(10,10,15,0.95) !important; backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); padding: 1rem 0; position: sticky; top: 0; z-index: 1000; }
.navbar-brand { font-size: 1.5rem; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-link { color: var(--text) !important; font-weight: 500; transition: color 0.3s; }
.nav-link:hover, .nav-link.active { color: var(--primary) !important; }

/* HERO */
.hero { min-height: 100vh; background: var(--dark); position: relative; display: flex; align-items: center; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 50%, rgba(108,99,255,0.15) 0%, transparent 60%), radial-gradient(ellipse at 80% 20%, rgba(255,101,132,0.1) 0%, transparent 50%); }
.hero-title { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 900; line-height: 1.1; color: #fff; }
.hero-title .gradient-text { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: 1.2rem; color: var(--text-muted); max-width: 500px; }

/* BUTTONS */
.btn-primary-custom { background: var(--gradient); border: none; color: #fff; padding: 0.75rem 2rem; border-radius: 8px; font-weight: 700; font-size: 1rem; transition: all 0.3s; text-decoration: none; display: inline-block; cursor: pointer; }
.btn-primary-custom:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(108,99,255,0.4); color: #fff; }
.btn-outline-custom { background: transparent; border: 2px solid var(--primary); color: var(--primary); padding: 0.7rem 2rem; border-radius: 8px; font-weight: 700; transition: all 0.3s; text-decoration: none; display: inline-block; cursor: pointer; }
.btn-outline-custom:hover { background: var(--primary); color: #fff; }

/* CARDS */
.card-dark { background: var(--dark-2); border: 1px solid var(--border); border-radius: 12px; transition: all 0.3s; overflow: hidden; }
.card-dark:hover { border-color: var(--primary); }
.card-dark .card-body { padding: 1.5rem; }

/* TOURNAMENT CARD */
.tournament-card { position: relative; }
.tournament-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(108,99,255,0.15); }
.tournament-card .card-img-top { height: 200px; object-fit: cover; }
.tournament-card .game-badge { position: absolute; top: 1rem; left: 1rem; background: var(--gradient); color: #fff; padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.8rem; font-weight: 700; z-index: 2; }
.tournament-card .prize { color: var(--accent); font-size: 1.5rem; font-weight: 800; }
.tournament-card .meta { color: var(--text-muted); font-size: 0.85rem; }

/* STATS */
.stat-card { background: var(--dark-2); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; transition: all 0.3s; height: 100%; }
.stat-card:hover { border-color: var(--primary); }
.stat-number { font-size: 3rem; font-weight: 900; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { color: var(--text-muted); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }

/* FORMS */
.form-dark { background: var(--dark-2); border: 1px solid var(--border); border-radius: 16px; padding: 2.5rem; }
.form-control-dark { background: var(--dark-3) !important; border: 1px solid var(--border) !important; color: #fff !important; border-radius: 8px; padding: 0.75rem 1rem; transition: border-color 0.3s; }
.form-control-dark:focus { border-color: var(--primary) !important; box-shadow: 0 0 0 3px rgba(108,99,255,0.15) !important; outline: none; }
.form-control-dark::placeholder { color: var(--text-muted) !important; }
.form-label-dark { color: var(--text); font-weight: 600; margin-bottom: 0.5rem; display: block; }
.form-select-dark { background: var(--dark-3) !important; border: 1px solid var(--border) !important; color: #fff !important; }

/* SECTION */
.section { padding: 5rem 0; }
.section-title { font-size: 2.5rem; font-weight: 800; color: #fff; margin-bottom: 1rem; }
.section-subtitle { color: var(--text-muted); font-size: 1.1rem; }
.text-gradient { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.text-accent { color: var(--accent) !important; }

/* FOOTER */
footer { background: var(--dark-2); border-top: 1px solid var(--border); padding: 3rem 0 1.5rem; }
footer .footer-brand { font-size: 1.5rem; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
footer a { color: var(--text-muted); text-decoration: none; transition: color 0.3s; }
footer a:hover { color: var(--primary); }
.social-links a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--dark-3); border: 1px solid var(--border); border-radius: 8px; color: var(--text-muted); transition: all 0.3s; margin-right: 0.5rem; }
.social-links a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ADMIN */
.admin-sidebar { width: 260px; min-height: 100vh; background: var(--dark-2); border-right: 1px solid var(--border); position: fixed; top: 0; left: 0; z-index: 100; overflow-y: auto; }
.admin-sidebar .sidebar-brand { padding: 1.5rem; border-bottom: 1px solid var(--border); }
.admin-sidebar .nav-link { color: var(--text-muted) !important; padding: 0.75rem 1.5rem; transition: all 0.3s; display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active { color: #fff !important; background: rgba(108,99,255,0.15); border-left: 3px solid var(--primary); }
.admin-content { margin-left: 260px; min-height: 100vh; background: var(--dark); }
.admin-topbar { background: var(--dark-2); border-bottom: 1px solid var(--border); padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between; }

/* WIDGETS */
.widget-card { background: var(--dark-2); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; }
.widget-card .widget-icon { width: 50px; height: 50px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.widget-card .widget-number { font-size: 2rem; font-weight: 800; color: #fff; }
.widget-card .widget-label { color: var(--text-muted); font-size: 0.85rem; }

/* TABLE */
.table-dark-custom { background: var(--dark-2); border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.table-dark-custom thead th { background: var(--dark-3); color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; border: none; padding: 1rem; }
.table-dark-custom tbody td { border-color: var(--border); color: var(--text); padding: 1rem; vertical-align: middle; background: transparent; }
.table-dark-custom tbody tr:hover td { background: rgba(108,99,255,0.05); }

/* ALERTS */
.alert { border-radius: 10px; border: none; }
.alert-success { background: rgba(0,255,136,0.1); color: var(--accent); border: 1px solid rgba(0,255,136,0.2); }
.alert-danger { background: rgba(255,68,68,0.1); color: #ff6b6b; border: 1px solid rgba(255,68,68,0.2); }
.alert-warning { background: rgba(255,193,7,0.1); color: #ffc107; border: 1px solid rgba(255,193,7,0.2); }
.alert-info { background: rgba(108,99,255,0.1); color: var(--primary); border: 1px solid rgba(108,99,255,0.2); }

#particles { position: absolute; inset: 0; pointer-events: none; }

/* RESPONSIVE */
@media (max-width: 991px) {
  .admin-sidebar { transform: translateX(-100%); transition: transform 0.3s; }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-content { margin-left: 0; }
}

/* ANIMATIONS */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.fade-in-up { animation: fadeInUp 0.6s ease forwards; }
.float { animation: float 3s ease-in-out infinite; }
