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

:root {
  --black: #0a0a0a;
  --dark: #111111;
  --card: #181818;
  --border: #2a2a2a;
  --gold: #c9a84c;
  --gold-light: #e8c96b;
  --white: #f5f5f0;
  --gray: #888;
  --red: #e03a3a;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
}

/* NAV */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 3px;
  color: var(--gold);
  text-decoration: none;
}

.nav-logo span { color: var(--white); }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--gray);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }

.nav-cta {
  background: var(--gold);
  color: var(--black) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
  font-weight: 700 !important;
}

.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.hamburger span { width: 24px; height: 2px; background: var(--white); transition: 0.3s; }

/* HERO */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 100px 2rem 4rem;
  position: relative;
  overflow: hidden;
  background: var(--black);
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(201,168,76,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(201,168,76,0.05) 0%, transparent 50%);
}

.hero-tag {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  padding: 0.4rem 1.2rem;
  border-radius: 2px;
  margin-bottom: 2rem;
  animation: fadeUp 0.8s ease both;
}

.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(5rem, 15vw, 12rem);
  line-height: 0.9;
  letter-spacing: 6px;
  animation: fadeUp 0.8s ease 0.1s both;
}

.hero h1 span { color: var(--gold); }

.hero-sub {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 480px;
  margin: 2rem auto;
  font-weight: 300;
  animation: fadeUp 0.8s ease 0.2s both;
}

.hero-btns {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  animation: fadeUp 0.8s ease 0.3s both;
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-gold {
  background: var(--gold);
  color: var(--black);
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* SECTIONS */
section { padding: 6rem 2rem; }

.container { max-width: 1100px; margin: 0 auto; }

.section-tag {
  font-size: 0.75rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  font-weight: 600;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: 3px;
  line-height: 1;
  margin-bottom: 1.5rem;
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat-box {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: 8px;
}

.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  color: var(--gold);
  line-height: 1;
}

.stat-label { font-size: 0.85rem; color: var(--gray); margin-top: 0.3rem; }

.about-visual {
  position: relative;
}

.about-img-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
}

.about-img-placeholder .icon { font-size: 4rem; opacity: 0.3; }
.about-img-placeholder p { color: var(--gray); font-size: 0.85rem; }

/* FEATURES */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.feature-card p { color: var(--gray); font-size: 0.9rem; }

/* CONTACT */
.contact-section { background: var(--dark); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-links { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--white);
  transition: all 0.2s;
}

.contact-link:hover { border-color: var(--gold); color: var(--gold); }

.contact-link .cl-icon { font-size: 1.5rem; width: 2rem; text-align: center; }
.contact-link .cl-text { font-weight: 500; }
.contact-link .cl-sub { font-size: 0.8rem; color: var(--gray); }

/* FORM */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-group label {
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--white);
  padding: 0.85rem 1rem;
  border-radius: 6px;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--gold); }

.form-group textarea { resize: vertical; min-height: 120px; }

/* FOOTER */
footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  letter-spacing: 4px;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.footer-copy { color: var(--gray); font-size: 0.85rem; }

/* ALERTS */
.alert {
  padding: 1rem 1.5rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}
.alert-success { background: rgba(46,160,67,0.15); border: 1px solid #2ea04320; color: #4caf72; }
.alert-error { background: rgba(224,58,58,0.15); border: 1px solid #e03a3a20; color: #e05a5a; }
.alert-info { background: rgba(201,168,76,0.1); border: 1px solid rgba(201,168,76,0.3); color: var(--gold); }

/* LOGIN */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--black);
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 3rem 2.5rem;
}

.login-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  letter-spacing: 4px;
  color: var(--gold);
  text-align: center;
  margin-bottom: 0.5rem;
}

.login-sub { text-align: center; color: var(--gray); font-size: 0.9rem; margin-bottom: 2.5rem; }

/* DASHBOARD */
.dash-layout {
  display: flex;
  min-height: 100vh;
  padding-top: 70px;
}

.sidebar {
  width: 260px;
  background: var(--dark);
  border-right: 1px solid var(--border);
  padding: 2rem 1.5rem;
  position: fixed;
  top: 70px;
  bottom: 0;
  overflow-y: auto;
}

.sidebar-title {
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-nav { list-style: none; display: flex; flex-direction: column; gap: 0.3rem; }

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  color: var(--gray);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
  background: rgba(201,168,76,0.1);
  color: var(--gold);
}

.sidebar-nav .icon { font-size: 1.1rem; width: 1.5rem; text-align: center; }

.dash-main {
  margin-left: 260px;
  flex: 1;
  padding: 2.5rem;
  max-width: 100%;
}

.dash-header {
  margin-bottom: 2.5rem;
}

.dash-greeting {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  letter-spacing: 2px;
}

.dash-greeting span { color: var(--gold); }

.dash-sub { color: var(--gray); font-size: 0.9rem; margin-top: 0.3rem; }

/* VIDEO GRID */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.video-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.video-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.video-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--black);
  position: relative;
  cursor: pointer;
}

.video-thumb iframe {
  width: 100%; height: 100%; border: none;
}

.video-thumb-preview {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #1a1a1a, #111);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  cursor: pointer;
  transition: background 0.2s;
}

.video-thumb-preview:hover { background: rgba(201,168,76,0.1); }
.play-btn { font-size: 3rem; margin-bottom: 0.5rem; }
.play-hint { color: var(--gray); font-size: 0.8rem; }

.video-info { padding: 1.25rem; }

.video-category {
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.video-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
}

.video-desc { color: var(--gray); font-size: 0.85rem; }

.video-date {
  color: var(--gray);
  font-size: 0.75rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

/* ADMIN TABLE */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
}

.admin-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  background: var(--dark);
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray);
}

.admin-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.admin-table tr:hover td { background: rgba(255,255,255,0.02); }

.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-gold { background: rgba(201,168,76,0.15); color: var(--gold); }
.badge-gray { background: rgba(136,136,136,0.15); color: var(--gray); }
.badge-green { background: rgba(46,160,67,0.15); color: #4caf72; }
.badge-red { background: rgba(224,58,58,0.15); color: #e05a5a; }

.action-btn {
  padding: 0.35rem 0.8rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.2s;
}
.action-btn:hover { opacity: 0.8; }
.btn-sm-gold { background: rgba(201,168,76,0.2); color: var(--gold); }
.btn-sm-red { background: rgba(224,58,58,0.2); color: #e05a5a; }
.btn-sm-green { background: rgba(46,160,67,0.2); color: #4caf72; }

/* PAGE HEADER */
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.page-head h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 2px;
}

/* MODAL */
.modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-overlay.open { display: flex; }

.modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
}

.modal-footer { display: flex; gap: 1rem; justify-content: flex-end; margin-top: 1.5rem; }

/* STATS CARDS */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.stat-card .num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  color: var(--gold);
  line-height: 1;
}

.stat-card .lbl { color: var(--gray); font-size: 0.85rem; margin-top: 0.3rem; }

/* EMPTY STATE */
.empty-state {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--gray);
}
.empty-state .icon { font-size: 4rem; margin-bottom: 1rem; opacity: 0.3; }
.empty-state h3 { font-family: 'Bebas Neue', sans-serif; font-size: 1.8rem; color: var(--white); letter-spacing: 1px; }
.empty-state p { margin-top: 0.5rem; font-size: 0.9rem; }

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray); }

/* MOBILE BOTTOM NAV (admin) */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 0.5rem 0 env(safe-area-inset-bottom, 0.5rem);
}

.mobile-bottom-nav ul {
  list-style: none;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.mobile-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--gray);
  text-decoration: none;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  transition: color 0.2s;
}

.mobile-bottom-nav a .mn-icon { font-size: 1.3rem; }
.mobile-bottom-nav a:hover,
.mobile-bottom-nav a.active { color: var(--gold); }

/* RESPONSIVE TABLE — scrollable on mobile */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .sidebar { width: 220px; }
  .dash-main { margin-left: 220px; }
}

@media (max-width: 700px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .features-grid { grid-template-columns: 1fr; }

  /* Hide desktop sidebar on mobile */
  .sidebar { display: none; }

  /* Show mobile bottom nav */
  .mobile-bottom-nav { display: block; }

  /* Main content fills full width, add bottom padding for bottom nav */
  .dash-main {
    margin-left: 0;
    padding: 1.25rem 1rem;
    padding-bottom: 80px;
  }

  /* Shrink greeting on mobile */
  .dash-greeting { font-size: 1.8rem; }

  /* Stats row: 2 columns on mobile */
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-bottom: 1.5rem; }
  .stat-card { padding: 1rem; }
  .stat-card .num { font-size: 2rem; }

  /* Page head stacks on mobile */
  .page-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .page-head h1 { font-size: 1.5rem; }

  /* Table: wrap in scrollable container */
  .admin-table {
    min-width: 600px;
  }

  /* Tighten table cells on mobile */
  .admin-table th,
  .admin-table td {
    padding: 0.6rem 0.75rem;
    font-size: 0.82rem;
  }

  /* Modal full-screen on mobile */
  .modal {
    max-width: 100%;
    border-radius: 12px;
    padding: 1.5rem;
  }
}
