/* ============================================================
   style.css — ShriRam Shivkalin Mardani Khel Akhada
   Custom properties + component classes
   ============================================================ */

/* CSS Variables (Design Tokens) */
:root {
  --bg:         hsl(30, 15%, 7%);
  --fg:         hsl(36, 60%, 92%);
  --card:       hsl(30, 18%, 12%);
  --border:     hsl(30, 20%, 20%);
  --muted:      hsl(30, 15%, 15%);
  --muted-fg:   hsl(30, 20%, 55%);
  --primary:    hsl(28, 90%, 52%);
  --primary-fg: hsl(30, 15%, 7%);
  --gold:       hsl(42, 80%, 55%);
  --secondary:  hsl(30, 25%, 18%);
  --radius:     0.5rem;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: 'Raleway', 'Noto Sans Devanagari', sans-serif;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cinzel', 'Noto Sans Devanagari', serif;
}

a { text-decoration: none; }

img, video { max-width: 100%; display: block; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: hsl(28, 90%, 52%, 0.35); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: hsl(28, 90%, 52%, 0.55); }

/* ── Layout ─────────────────────────────────────────────────── */
.section-container {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px)  { .section-container { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .section-container { padding-left: 2rem; padding-right: 2rem; } }

/* ── Typography ─────────────────────────────────────────────── */
.section-title {
  font-family: 'Cinzel', 'Noto Sans Devanagari', serif;
  font-size: clamp(1.75rem, 5vw, 3.5rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.3;
  padding-bottom: 0.1em;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--muted-fg);
  font-size: 1.125rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.text-gradient-saffron {
  background: linear-gradient(135deg, var(--primary) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.3;
  padding-bottom: 0.1em;
}

/* ── Divider ornament ────────────────────────────────────────── */
.divider-ornament {
  width: 6rem;
  height: 4px;
  margin: 1.5rem auto;
  border-radius: 9999px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

/* ── Cards ───────────────────────────────────────────────────── */
.card-warrior {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.card-warrior:hover {
  border-color: hsl(28, 90%, 52%, 0.5);
  box-shadow: 0 8px 32px hsl(28, 90%, 52%, 0.15);
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-saffron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 2rem;
  font-family: 'Cinzel', 'Noto Sans Devanagari', serif;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: box-shadow 0.3s, transform 0.3s;
  background: linear-gradient(135deg, var(--primary) 0%, var(--gold) 100%);
  color: var(--primary-fg);
  text-decoration: none;
}
.btn-saffron:hover {
  box-shadow: 0 4px 20px hsl(28, 90%, 52%, 0.5);
  transform: translateY(-2px);
}
.btn-saffron:disabled, .btn-saffron.disabled {
  opacity: 0.5;
  transform: none;
  cursor: not-allowed;
}

.btn-outline-saffron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 2rem;
  font-family: 'Cinzel', 'Noto Sans Devanagari', serif;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
  cursor: pointer;
  transition: background 0.3s;
  text-decoration: none;
}
.btn-outline-saffron:hover {
  background: hsl(28, 90%, 52%, 0.1);
}

/* ── Form inputs ─────────────────────────────────────────────── */
.form-input {
  width: 100%;
  padding: 0.625rem 1rem;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--fg);
  font-size: 0.9rem;
  font-family: 'Raleway', 'Noto Sans Devanagari', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-input:focus {
  border-color: hsl(28, 90%, 52%, 0.5);
  box-shadow: 0 0 0 3px hsl(28, 90%, 52%, 0.15);
}
.form-input::placeholder { color: var(--muted-fg); }

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 0.375rem;
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-section .hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-section .hero-overlay-1 {
  position: absolute;
  inset: 0;
  background: hsl(30, 15%, 7%, 0.72);
}

.hero-section .hero-overlay-2 {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, hsl(30,15%,7%,0.3) 40%, transparent 100%);
}

.hero-section .hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 1rem;
}

/* Category filter buttons */
.filter-btn {
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
  background: var(--muted);
  color: var(--muted-fg);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  color: var(--primary-fg);
  border-color: var(--primary);
}

/* ── Gallery Lightbox ────────────────────────────────────────── */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: hsl(30, 15%, 5%, 0.97);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
#lightbox.open { display: flex; }
#lightbox img {
  max-width: 100%;
  max-height: 88vh;
  border-radius: var(--radius);
  object-fit: contain;
}
#lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--fg);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}
#lightbox-close:hover { opacity: 1; }

/* ── Admin Layout ────────────────────────────────────────────── */
.admin-sidebar-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: none;
  border: none;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--muted-fg);
  width: 100%;
  text-align: left;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.admin-sidebar-btn:hover {
  color: var(--fg);
  background: var(--muted);
}
.admin-sidebar-btn.active {
  color: var(--primary);
  background: hsl(28, 90%, 52%, 0.1);
}

/* Admin table */
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.admin-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  background: var(--muted);
  color: var(--muted-fg);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.admin-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--fg);
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: hsl(30,15%,10%); }

/* Badge */
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-green  { background: hsl(142,60%,20%); color: hsl(142,60%,80%); }
.badge-yellow { background: hsl(40,60%,20%);  color: hsl(40,80%,80%); }
.badge-red    { background: hsl(0,60%,20%);   color: hsl(0,60%,80%); }

/* Alert flash */
.flash-success { background:hsl(142,50%,18%); border:1px solid hsl(142,50%,35%); color:hsl(142,60%,85%); padding:.75rem 1.25rem; border-radius:.5rem; margin-bottom:1rem; }
.flash-error   { background:hsl(0,50%,18%);   border:1px solid hsl(0,50%,35%);   color:hsl(0,60%,85%);   padding:.75rem 1.25rem; border-radius:.5rem; margin-bottom:1rem; }
