:root {
  --bg: #050608;
  --bg-elevated: #111319;
  --bg-soft: #171922;
  --text: #e5e5e5;
  --muted: #9a9cab;

  /* UPDATED TO MATCH LOGO BLUE */
  --accent: #00e5ff;
  --accent-soft: rgba(0, 229, 255, 0.15);

  --danger: #ff4b5c;
  --radius-lg: 16px;
  --radius-md: 10px;
  --shadow-soft: 0 18px 35px rgba(0, 0, 0, 0.65);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #151824 0, #050608 60%);
  color: var(--text);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}
a:hover {
  opacity: 0.85;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem;
}

.site-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(5, 6, 8, 0.95), rgba(5, 6, 8, 0.6));
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-circle {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
}

.logo-text {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.main-nav {
  display: flex;
  gap: 1rem;
  margin-left: auto;
  flex-wrap: wrap;
}
.main-nav a {
  font-size: 0.95rem;
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
}

.main-nav .nav-cta {
  border-radius: 999px;
  background: var(--accent-soft);
}

.auth-nav {
  display: flex;
  gap: 0.75rem;
  margin-left: 1rem;
  font-size: 0.85rem;
  align-items: center;
}

/* Make top-right Login/Register red to match the logo heart */
.auth-nav a {
  color: var(--danger);
  font-weight: 600;
}
.auth-nav a:hover {
  color: #ff7684;
}

.auth-label {
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #050608;
  margin-top: 3rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
}

.main-content {
  padding-top: 1.5rem;
}

/* Hero */

.hero {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
  padding: 2rem;
  background: radial-gradient(circle at top left, #24273b, #0a0b10);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.hero-text h1 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 0.5rem;
}

.hero-text p {
  max-width: 480px;
  color: var(--muted);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* Cards */

.home-grid,
.card-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

.home-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: linear-gradient(145deg, var(--bg-elevated), var(--bg-soft));
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.card h2 {
  margin-top: 0.3rem;
  margin-bottom: 0.4rem;
}

.card p {
  color: var(--muted);
  margin: 0;
}

.card-image .img-placeholder {
  width: 100%;
  height: 150px;
  border-radius: var(--radius-md);
  background: radial-gradient(circle at top, #2b3140, #111219);
  margin-bottom: 0.75rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease,
    opacity 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #00dff8, #00b7ce);
  color: #f9feff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.3),
    0 12px 26px rgba(0, 0, 0, 0.45);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #00f4ff, #00c9db);
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 16px 32px rgba(0, 0, 0, 0.55);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 8px 18px rgba(0, 0, 0, 0.5);
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.03);
}

.btn-wide {
  width: 100%;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--accent);
  margin-top: 0.5rem;
}

/* Button shine animation */

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transform: skewX(-20deg);
  opacity: 0;
}

.btn:hover::before {
  animation: btn-shine 0.7s ease;
}

@keyframes btn-shine {
  0% {
    left: -120%;
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    left: 120%;
    opacity: 0;
  }
}

/* Text */

.lead {
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 1.5rem;
}

.muted {
  color: var(--muted);
  font-size: 0.85rem;
}

/* Flash messages */

.flash-messages {
  margin-bottom: 1rem;
}

.flash {
  padding: 0.6rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

.flash-success {
  background: rgba(0, 229, 255, 0.16);
  color: #c5faff;
}

.flash-error {
  background: rgba(255, 75, 92, 0.16);
  color: #ffcfd4;
}

/* Forms */

.form {
  display: grid;
  gap: 0.9rem;
  max-width: 520px;
  padding: 1.25rem;
  background: linear-gradient(145deg, var(--bg-elevated), var(--bg-soft));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.form input,
.form select,
.form textarea {
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(5, 6, 8, 0.8);
  color: var(--text);
  padding: 0.55rem 0.7rem;
  font: inherit;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.55);
}

/* Events */

.event-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: grid;
  gap: 0.9rem;
}

.event-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 3fr;
  gap: 1rem;
  padding: 0.85rem;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.event-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.event-list--past {
  opacity: 0.85;
}

.event-detail {
  background: var(--bg-elevated);
  border-radius: 22px;
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}

.event-detail-image {
  width: 100%;
  border-radius: 20px;
  margin: 1rem 0;
  object-fit: cover;
}

.event-description {
  line-height: 1.7;
  color: var(--muted);
}

.event-actions {
  margin-top: 1.3rem;
  display: flex;
  gap: 0.75rem;
}

/* Booking */

.booking-form {
  margin-top: 1.25rem;
}

/* Misc */

.mini-list {
  list-style: none;
  padding: 0;
  margin-top: 0.5rem;
}
.mini-list li {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

/* Admin tabs */

.admin-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.2rem;
  border-radius: 999px;
  background: rgba(17, 19, 25, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-tab {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
}

.main-nav a {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  transition: background-color 0.2s, color 0.2s;
}

/* Hover effect on ALL links */
.main-nav a:hover {
  background: rgba(0, 200, 255, 0.15);
  color: #00d4ff;
}

/* Active (current page) highlight */
.main-nav a.active {
  background: rgba(0, 200, 255, 0.25);
  color: #00d4ff;
}

.admin-tab--active {
  background: var(--accent-soft);
  border-color: rgba(0, 229, 255, 0.7);
  color: var(--text);
}

/* Responsive */

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .main-nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }
  .auth-nav {
    margin-left: 0;
    margin-right: 0;
  }
  .event-card {
    grid-template-columns: 1fr;
  }
}
