/* ═══════════════════════════════════════════
   BHARATSEC EVENTS — SHARED DESIGN SYSTEM
   Used by all pages for consistent look
═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #07090f;
  --surface:   #0f1521;
  --surface2:  #151e2e;
  --surface3:  #1c2840;
  --border:    #1e2d45;
  --border2:   #263550;
  --accent:    #3b7ef8;
  --accent2:   #06c0d9;
  --accentg:   linear-gradient(135deg, #3b7ef8, #06c0d9);
  --text:      #eef2f9;
  --text2:     #b8c6dc;
  --muted:     #6b829e;
  --green:     #12c97a;
  --red:       #f04060;
  --yellow:    #f5a623;
  --radius:    12px;
  --radius-lg: 16px;
  --shadow:    0 4px 24px rgba(0,0,0,.45);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAVIGATION ── */
.site-nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(7,9,15,.88);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  height: 64px;
  display: flex; align-items: center;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  gap: 2rem;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo-mark {
  width: 34px; height: 34px;
  background: var(--accentg);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: .9rem; color: #fff;
}
.nav-logo-text { font-weight: 800; font-size: 1rem; color: var(--text); }
.nav-logo-text em { color: var(--accent); font-style: normal; }
.nav-links { display: flex; align-items: center; gap: 1.75rem; flex: 1; }
.nav-links a {
  color: var(--text2); text-decoration: none;
  font-size: .875rem; font-weight: 500;
  transition: color .18s;
}
.nav-links a:hover { color: var(--text); }
.nav-spacer { flex: 1; }
.nav-cta {
  background: var(--accent); color: #fff !important;
  padding: .45rem 1.1rem; border-radius: 7px;
  font-size: .85rem; font-weight: 700;
  text-decoration: none; transition: opacity .18s;
  white-space: nowrap;
}
.nav-cta:hover { opacity: .85; }
.hamburger {
  display: none; background: none; border: none;
  color: var(--text); cursor: pointer; font-size: 1.4rem;
  padding: .25rem;
}
.mobile-nav {
  display: none; flex-direction: column;
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem; gap: .9rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: var(--text2); text-decoration: none;
  font-size: .95rem; font-weight: 500;
}

/* ── FOOTER ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 4rem clamp(1rem,4vw,2.5rem) 2rem;
  margin-top: 6rem;
}
.footer-inner { max-width: 1160px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem; margin-bottom: 3rem;
}
.footer-col h4 {
  font-size: .78rem; font-weight: 700; color: var(--text);
  text-transform: uppercase; letter-spacing: .07em;
  margin-bottom: 1rem;
}
.footer-col a, .footer-col p {
  display: block; color: var(--muted);
  text-decoration: none; font-size: .875rem;
  margin-bottom: .55rem; transition: color .18s;
}
.footer-col a:hover { color: var(--text2); }
.footer-brand-desc { color: var(--muted); font-size: .875rem; line-height: 1.7; margin-top: .5rem; }
.footer-socials { display: flex; gap: .75rem; margin-top: 1.25rem; flex-wrap: wrap; }
.footer-socials a {
  width: 36px; height: 36px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  color: var(--muted); transition: all .18s; margin: 0;
}
.footer-socials a:hover { background: var(--surface3); color: var(--text); border-color: var(--border2); }
.footer-socials svg { width: 16px; height: 16px; }
.footer-bottom {
  padding-top: 2rem; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: .75rem;
}
.footer-bottom p { color: var(--muted); font-size: .8rem; }
.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--text2); }

/* ── UTILITY ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 clamp(1rem,4vw,2.5rem); }
.section { padding: 5rem 0; }
.section-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .72rem; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: .1em;
  background: rgba(59,126,248,.1); border: 1px solid rgba(59,126,248,.25);
  padding: .3rem .85rem; border-radius: 999px;
  margin-bottom: 1rem;
}
.section-label .dot { width:5px; height:5px; background:var(--accent); border-radius:50%; }
.section-title { font-size: clamp(1.5rem,3vw,2rem); font-weight: 800; margin-bottom: .5rem; }
.section-sub { color: var(--text2); font-size: .975rem; }

/* Divider */
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* Spinner */
.spinner-wrap { display: flex; justify-content: center; align-items: center; padding: 4rem; }
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Empty state */
.empty-state {
  text-align: center; padding: 5rem 2rem;
  color: var(--muted); font-size: .95rem;
}
.empty-state svg { width: 48px; height: 48px; color: var(--border2); margin: 0 auto 1.25rem; display: block; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.4rem; border-radius: 8px;
  font-size: .9rem; font-weight: 700;
  text-decoration: none; cursor: pointer;
  border: none; transition: opacity .18s, transform .15s;
}
.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-outline { background: transparent; border: 1px solid var(--border2); color: var(--text2); }
.btn-outline:hover { border-color: var(--accent); color: var(--text); }
.btn-ghost { background: var(--surface2); color: var(--text2); }
.btn-danger { background: var(--red); color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-sm { padding: .45rem .9rem; font-size: .8rem; border-radius: 6px; }

/* Badge */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: .2rem .65rem; border-radius: 4px;
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.badge-upcoming { background: rgba(59,126,248,.12); color: var(--accent); }
.badge-past     { background: rgba(107,130,158,.1);  color: var(--muted); }
.badge-draft    { background: rgba(245,166,35,.12);  color: var(--yellow); }
.badge-online   { background: rgba(18,201,122,.1);   color: var(--green); }
.badge-offline  { background: rgba(245,166,35,.12);  color: var(--yellow); }
.badge-hybrid   { background: rgba(6,192,217,.1);    color: var(--accent2); }
.badge-free     { background: rgba(18,201,122,.1);   color: var(--green); }
.badge-paid     { background: rgba(240,64,96,.1);    color: var(--red); }

/* Form elements (shared) */
.field { margin-bottom: 1.25rem; }
.field label {
  display: block; font-size: .75rem; font-weight: 700;
  color: var(--muted); text-transform: uppercase;
  letter-spacing: .05em; margin-bottom: .4rem;
}
.field label .req { color: var(--red); margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 8px; padding: .7rem 1rem;
  color: var(--text); font-family: inherit; font-size: .9rem;
  outline: none; transition: border-color .18s, box-shadow .18s;
  appearance: none;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59,126,248,.12);
}
.field select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b829e' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.field select option { background: var(--surface2); color: var(--text); }
.field textarea { resize: vertical; min-height: 90px; line-height: 1.6; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }

/* Toast */
.toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 999;
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: 10px; padding: .875rem 1.25rem;
  font-size: .875rem; font-weight: 600;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none;
  transform: translateY(8px);
  transition: opacity .25s, transform .25s;
  display: flex; align-items: center; gap: .6rem;
  max-width: 340px;
}
.toast.show { opacity: 1; transform: none; pointer-events: auto; }
.toast.t-success { border-color: var(--green); }
.toast.t-error   { border-color: var(--red); }

/* Legal pages */
.legal-wrap { max-width: 760px; margin: 0 auto; padding: 4rem clamp(1rem,4vw,2.5rem); }
.legal-wrap h1 { font-size: 2rem; font-weight: 800; margin-bottom: .4rem; }
.legal-wrap .updated { color: var(--muted); font-size: .875rem; margin-bottom: 2.5rem; }
.legal-wrap h2 { font-size: 1.1rem; font-weight: 700; margin: 2rem 0 .6rem; color: var(--text); }
.legal-wrap p { color: var(--text2); font-size: .95rem; line-height: 1.8; margin-bottom: 1rem; }
.legal-wrap ul { color: var(--text2); font-size: .95rem; line-height: 1.8; padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-wrap ul li { margin-bottom: .4rem; }
.legal-wrap a { color: var(--accent); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-spacer { display: none; }
  .hamburger { display: block; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .field-row, .field-row-3 { grid-template-columns: 1fr; }
}
