/* ============================================================
   RESET + BASE
============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --gold-light: #f6e27a;
  --gold: #FFD700;
  --gold-dark: #b8860b;
  --background: #000;
  --card: #111;
  --border: #222;
  --text-muted: #888;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--background);
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ============================================================
   HEADER + NAV
============================================================ */
header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  min-height: 300px;
  background-color: #000;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  text-align: center;
}

.header-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

.logo img {
  max-width: 300px;
  width: 100%;
  z-index: 2;
  position: relative;
}

/* NAVBAR */
nav {
  background: #000;
  padding: 20px 40px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 99;
}

nav ul {
  display: flex;
  justify-content: center;
  gap: 30px;
  list-style: none;
}

nav a {
  position: relative;
  padding: 5px;
  font-weight: 600;
  transition: color 0.2s;
}

nav a.active {
  background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav a:hover {
  color: var(--gold);
}

nav a::after {
  content: "";
  position: absolute;
  height: 2px;
  width: 100%;
  background: var(--gold);
  left: 0;
  bottom: -4px;
  transform: scaleX(0);
  transition: transform .3s ease;
  transform-origin: right;
}

nav a:hover::after,
nav a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

@media (max-width: 600px) {
  nav ul { flex-direction: column; gap: 15px; }
}

/* ============================================================
   HEADINGS
============================================================ */
h1, h2 {
  background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
  display: inline-block;
}

h1 {
  font-size: 2.75rem;
  margin: 50px 0 20px;
}

h2 {
  font-size: 1.5rem;
}

/* ============================================================
   BUTTONS
============================================================ */
.buy-btn {
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  color: black;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  min-height: 44px;
}

.buy-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
}

.buy-btn.sold-out {
  background: #444;
  color: #aaa;
  cursor: not-allowed;
}

/* STAFF TAB BUTTONS */
.tab-btn {
  background: #111;
  border: 1px solid #333;
  color: var(--gold);
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s ease;
}

.tab-btn:hover {
  background: var(--gold-dark);
  color: #000;
}

.tab-btn.active {
  background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--gold-dark));
  color: black;
}

/* ============================================================
   EVENT CARDS + GRIDS
============================================================ */
.events-grid,
.opportunities-container {
  display: grid;
  gap: 30px;
  padding: 40px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.event-card1,
.event-card2,
.event-card3,
.event-card4,
.event-card {
  height: 300px;
  border-radius: 12px;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  color: white;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
  backdrop-filter: brightness(.7);
  box-shadow: 0 0 12px rgba(255,215,0,0.15);
  transition: transform .25s ease, box-shadow .25s ease;
}

.event-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 22px rgba(255,215,0,0.3);
}

/* ============================================================
   FORMS (NEW EVENT FORM INCLUDED)
============================================================ */
form,
.form-card {
  background: #111;
  border: 1px solid #222;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.1);
  margin-bottom: 25px;
}

form input,
form textarea,
form select,
.form-card input,
.form-card textarea,
.form-card select {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  margin-bottom: 15px;
  background: #000;
  border: 1px solid #333;
  border-radius: 6px;
  color: #fff;
  font-family: inherit;
}

form label,
.form-card label {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 10px;
}

/* This fixes the large spacing and makes the event form look structured */
.form-card h3 {
  margin-top: 10px;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 1.2rem;
}

/* File input style */
input[type="file"] {
  border: none;
  padding: 6px;
  background: #000;
}

/* ============================================================
   TABLE STYLING (Used by Events, Tickets, Summary)
============================================================ */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  background: #111;
  border-radius: 8px;
  overflow: hidden;
}

th, td {
  padding: 12px 15px;
  border-bottom: 1px solid #222;
  color: #ddd;
  font-size: 0.95rem;
}

th {
  background: #000;
  text-transform: uppercase;
  color: var(--gold);
}

tr:hover td {
  background: rgba(255,215,0,0.05);
}

/* Action buttons in tables */
table .buy-btn {
  padding: 6px 12px;
  font-size: 0.85rem;
}

/* ============================================================
   STAFF DASHBOARD LAYOUT
============================================================ */
.tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 30px 0;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn .3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   FOOTER
============================================================ */
footer {
  padding: 30px;
  text-align: center;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  background: #000;
}

/* ============================================================
   EVENT CREATION WIZARD
============================================================ */
.wizard-card {
  max-width: 900px;
  margin: 30px auto 60px;
  background: #111;
  border-radius: 16px;
  border: 1px solid #222;
  box-shadow: 0 0 20px rgba(255,215,0,0.15);
  padding: 25px 25px 20px;
}

.wizard-progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

#wizard-step-label {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-light);
}

.wizard-steps-dots {
  display: flex;
  gap: 8px;
}

.wizard-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #333;
}

.wizard-dot.active {
  background: var(--gold);
}

.wizard-dot.done {
  background: var(--gold-dark);
}

.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
}

.wizard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
}

.wizard-field {
  display: flex;
  flex-direction: column;
}

.wizard-field.full {
  grid-column: 1 / -1;
}

.wizard-field label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.wizard-field input,
.wizard-field textarea,
.wizard-field select {
  width: 100%;
}

.banner-preview-wrap {
  width: 100%;
  min-height: 120px;
  border-radius: 10px;
  border: 1px dashed #444;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}

.banner-preview-wrap img {
  max-width: 100%;
  height: auto;
  display: block;
}

.banner-preview-wrap.summary {
  margin-top: 10px;
}

.wizard-note {
  font-size: 0.85rem;
  color: #ccc;
  margin-top: 10px;
}

.wizard-controls {
  display: flex;
  justify-content: space-between;
  margin-top: 25px;
}

.wizard-btn.secondary {
  background: #222;
  color: #fff;
}

.wizard-btn.secondary:hover {
  background: #333;
}

.wizard-summary h3 {
  margin-top: 15px;
  margin-bottom: 5px;
}

.wizard-summary p {
  margin: 2px 0;
}

.wizard-error {
  color: #ff6b6b;
  margin-top: 10px;
  font-size: 0.9rem;
}

/* Events tab header bar */
.events-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

@media (max-width: 700px) {
  .wizard-grid {
    grid-template-columns: 1fr;
  }
  .wizard-controls {
    flex-direction: column-reverse;
    gap: 10px;
  }
  .wizard-btn {
    width: 100%;
    text-align: center;
  }
  .events-header-bar {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}

/* STAFF BUTTON IN TOP-RIGHT CORNER */
.staff-btn {
  display: none;
  position: absolute;
  top: 20px;
  right: 25px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  color: #000;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 0.9rem;
  text-transform: uppercase;
  z-index: 10;
  box-shadow: 0 0 10px rgba(255,215,0,0.3);
  transition: all 0.2s ease;
}

.staff-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
}

/* Make sure header remains clickable & layered properly */
header {
  position: relative;
}

/* Dimmed cards for past events */
.event-card.past {
  opacity: 0.55;
  filter: grayscale(40%);
}

.event-card.past:hover {
  transform: none;
  box-shadow: none;
  cursor: default;
}

/* Coming Soon button optional flair */
.buy-btn.coming-soon {
  background: #555;
  color: var(--gold);
  cursor: pointer;
}


.staff-name-cell {
  position: relative;
  overflow: visible;
}

.staff-name-hover {
  cursor: pointer;
  color: #ffd84d;
  font-weight: bold;
}

.staff-hover-card {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 50;
  min-width: 260px;
  padding: 12px;
  margin-top: 6px;
  background: rgba(10, 10, 10, 0.96);
  border: 1px solid #ffd84d;
  border-radius: 8px;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  text-align: left;
}

.staff-hover-card p {
  margin: 6px 0 0;
  color: #ddd;
}

.staff-hover-card span {
  color: #ffd84d;
  font-weight: bold;
}

.staff-name-cell:hover .staff-hover-card {
  display: block;
}

/* Allow staff hierarchy hover cards to extend outside table/card containers */
#staff-directory,
#staff-directory .form-card,
#staff-directory table,
#staff-directory tbody,
#staff-directory tr,
#staff-directory td {
  overflow: visible;
}

.staff-hover-card {
  max-height: none;
  white-space: normal;
}

.fyld-team-card {
  border: 1px solid rgba(255, 216, 77, 0.35);
  border-radius: 8px;
  padding: 12px;
  margin: 10px 0;
  background: rgba(0, 0, 0, 0.25);
}

.fyld-team-card strong {
  color: #ffd84d;
  font-size: 1.05rem;
}

.fyld-team-card p {
  margin: 6px 0 0;
  color: #ddd;
}

.resident-soundcloud-feature {
  max-width: 1100px;
  margin: 24px auto 0;
  text-align: center;
}

.resident-soundcloud-feature h3 {
  color: #ffd84d;
  margin-bottom: 14px;
}

.resident-soundcloud-frame {
  border: 1px solid rgba(255, 216, 77, 0.55);
  border-radius: 14px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 0 28px rgba(255, 216, 77, 0.12);
}

.resident-soundcloud-frame iframe {
  display: block;
  border-radius: 10px;
}

.resident-hero-image-wrap {
  margin: 12px auto 20px;
  max-width: 720px;
}

.resident-hero-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255, 216, 77, 0.55);
  box-shadow: 0 0 28px rgba(255, 216, 77, 0.14);
}

.resident-tagline {
  color: #ffd84d;
  font-size: 1.15rem;
  margin: 8px 0 12px;
}

#resident-booking-wrap {
  margin-top: 22px;
}

.resident-hero .buy-btn {
  margin-bottom: 22px;
}

.resident-hero-image-wrap {
  margin: 24px auto 42px;
}

.resident-hero h1 {
  margin-top: 8px;
}

.resident-hero {
  padding-top: 46px;
}

.public-team-card {
  display: flex;
  gap: 16px;
  align-items: center;
}

.public-team-card-image {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 216, 77, 0.45);
  flex-shrink: 0;
}

.public-team-card-info {
  flex: 1;
}

@media (max-width: 640px) {
  .public-team-card {
    align-items: flex-start;
  }

  .public-team-card-image {
    width: 76px;
    height: 76px;
  }
}

