/* FGS Ticketing - Modern Design System */
:root {
  /* Fonts */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Poppins', system-ui, -apple-system, sans-serif;

  /* Color Palette - Main */
  --primary: #F04266;
  --primary-hover: #D63656;
  --primary-light: #FDB8C6;
  --primary-soft: rgba(240, 66, 102, 0.08);

  /* Backgrounds - Pure White as requested */
  --bg-body: #ffffff;
  --bg-surface: #ffffff;
  --bg-elevated: #ffffff;

  /* Text Colors */
  --text-main: #1e293b;
  /* Soft dark */
  --text-muted: #64748b;
  /* Grey */
  --text-light: #94a3b8;

  /* Borders & Strokes */
  --border-color: rgba(0, 0, 0, 0.06);
  /* Low opacity grey */
  --border-focus: rgba(240, 66, 102, 0.4);

  /* Radius (Reduced - Sharp/Modern) */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Shadows (Subtle/Soft) */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  background: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  margin: 0 0 1rem;
  font-weight: 600;
  line-height: 1.25;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-hover);
}

img,
svg {
  vertical-align: middle;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

main {
  min-height: 80vh;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-main);
}

.brand img {
  height: 56px;
  width: auto;
  transition: transform 0.2s ease;
}

.brand:hover img {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-main);
}

/* Admin quick navigation */
.admin-quickbar {
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(90deg, rgba(240, 66, 102, 0.06), rgba(255, 255, 255, 0.9));
}

.admin-quickbar .container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.65rem 1.5rem;
}

.admin-chip {
  background: #0f172a;
  color: #fff;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.admin-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.admin-links a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.admin-links a:hover,
.admin-links a.active {
  color: var(--primary);
  background: var(--primary-soft);
  border-color: var(--border-color);
}

.btn-compact {
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.btn-primary {
  background: var(--primary);
  color: white;
  border: 1px solid var(--primary);
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: white;
  /* Ensure text remains white */
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: white;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary-soft);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--text-muted);
  background: #f8fafc;
}

/* Hero Section */
.hero {
  padding: 4rem 0 5rem;
  text-align: center;
  background: white;
  /* No gradients */
}

.hero h1 {
  font-size: 3.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.hero h1 span {
  color: var(--primary);
  background: none;
  /* Removed gradient text */
  -webkit-text-fill-color: initial;
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Cards */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--border-focus);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.card-img {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 1rem;
  aspect-ratio: 16/9;
  background: #f1f5f9;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.card-content h3 a {
  color: var(--text-main);
}

.card-content h3 a:hover {
  color: var(--primary);
}

.card-date {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-main);
  font-size: 0.9rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

/* Utilities */
.text-gradient {
  background: none;
  -webkit-background-clip: border-box;
  -webkit-text-fill-color: currentcolor;
  color: var(--primary);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

.tag.primary {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: transparent;
}

/* Footer */
.footer {
  background: white;
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer li {
  margin-bottom: 0.75rem;
}

.footer a {
  color: var(--text-muted);
}

.footer a:hover {
  color: var(--primary);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-light);
  font-size: 0.875rem;
}

/* Stepper */
.stepper {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.step {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  background: white;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.step.active {
  background: white;
  border-color: var(--primary);
  color: var(--primary);
}

/* Alerts */
.alert {
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}

.alert.error {
  background: #fee2e2;
  color: #ef4444;
  border: 1px solid #fecaca;
}

.alert.success {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.alert.info {
  background: #e0f2fe;
  color: #0284c7;
  border: 1px solid #bae6fd;
}

.alert-close {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  color: inherit;
  opacity: 0.7;
}

/* Table */
.table-container {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  background: #f8fafc;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 3.5rem;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    flex-direction: column;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
  }

  .mobile-nav-toggle {
    display: block;
  }

  body.nav-open .nav-links {
    display: flex;
  }
}

/* Form Validation */
.field-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.form-error-inline {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  font-weight: 500;
}

/* Auth Pages */
.auth-container {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 160px);
  padding: 2rem;
  background: var(--bg-body);
}

.auth-box {
  width: 100%;
  max-width: 420px;
  background: var(--bg-surface);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
}

.auth-box h2 {
  font-family: var(--font-heading);
  color: var(--text-main);
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 90%;
  box-shadow: var(--shadow-lg);
}

/* Badge Pill */
.badge-pill {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 99px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Fade In Animation */
.fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Glass Effect */
.glass {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

/* Pills */
.pill {
  display: inline-flex;
  padding: 0.5rem 1rem;
  border-radius: 99px;
  background: #f1f5f9;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.pill:hover {
  background: #e2e8f0;
}

.pill.active {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-sm);
}


.btn-danger {
  background: #b42318;
  color: #fff;
  border-color: #b42318;
}

.btn-danger:hover {
  background: #912018;
  border-color: #912018;
}

.btn-danger:focus-visible {
  outline: 2px solid rgba(180, 35, 24, 0.35);
  outline-offset: 2px;
}

.legal-page {
  max-width: 900px;
}

.legal-body {
  white-space: pre-line;
  line-height: 1.75;
  color: var(--text-secondary);
}

.danger-zone {
  border: 1px solid rgba(180, 35, 24, 0.2);
}
