/* =============================================
   GrooveLink SA — style.css
   Upgraded UI: Bebas Neue + Outfit fonts,
   CSS variables, expanded dance categories,
   event type badges, full mobile responsiveness
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ===== CSS Variables ===== */
:root {
  --bg-primary:    #0a0a0a;
  --bg-secondary:  #111111;
  --bg-card:       #1a1a1a;
  --bg-card-hover: #222222;
  --accent-blue:   #00bfff;
  --accent-dark:   #003366;
  --text-primary:  #f0f0f0;
  --text-muted:    #aaaaaa;
  --border-color:  rgba(0, 191, 255, 0.15);
  --shadow-glow:   0 4px 20px rgba(0, 191, 255, 0.2);
  --shadow-hover:  0 8px 30px rgba(0, 191, 255, 0.35);
  --radius:        14px;
  --radius-sm:     8px;
  --gradient:      linear-gradient(135deg, var(--accent-dark), var(--accent-blue));

  /* Dance category colors */
  --cat-hip-hop:       #ff6b35;
  --cat-breaking:      #e74c3c;
  --cat-popping:       #f39c12;
  --cat-locking:       #16a085;
  --cat-amapiano:      #8e44ad;
  --cat-afrobeats:     #d35400;
  --cat-house:         #2980b9;
  --cat-ballroom:      #c0392b;
  --cat-latin:         #e91e63;
  --cat-ballet:        #e91e8c;
  --cat-contemporary:  #9c27b0;
  --cat-tap:           #1abc9c;
  --cat-jazz:          #34495e;
  --cat-acro:          #27ae60;
  --cat-allstyles:     #00bfff;
  --cat-other:         #95a5a6;
}

/* ===== Reset & Base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.05em;
}

a {
  text-decoration: none;
  color: var(--accent-blue);
  transition: 0.3s;
}

a:hover { color: #66ccff; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  background: var(--gradient);
  color: white;
  padding: 0.75rem 1.75rem;
  border-radius: 30px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  margin: 0.5rem;
  transition: 0.3s;
  box-shadow: 0 0 15px rgba(0, 191, 255, 0.3);
  letter-spacing: 0.03em;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 191, 255, 0.5);
  color: white;
}

/* ===== Header ===== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: rgba(10, 10, 10, 0.95);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

.logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.1em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav ul { list-style: none; display: flex; gap: 1.5rem; }

nav ul li a {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.25rem 0;
  position: relative;
  transition: color 0.3s;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--gradient);
  transition: width 0.3s;
  border-radius: 2px;
}

nav ul li a:hover::after, nav a.active::after { width: 100%; }
nav ul li a:hover, nav a.active { color: var(--accent-blue); }

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 85vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.hero video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 5rem;
  letter-spacing: 0.08em;
  line-height: 1;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
  color: rgba(255,255,255,0.85);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

/* ===== Mission / About ===== */
.why-groovelink {
  padding: 4rem 2rem;
  text-align: center;
  background-color: var(--bg-secondary);
}

.why-groovelink h2 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.why-groovelink p {
  max-width: 680px;
  margin: 0 auto 1rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ===== Homepage Events Section ===== */
.home-events-section {
  position: relative;
  min-height: 60vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  background: url('background_event.jpg') center center / cover no-repeat;
  overflow: hidden;
  margin: 2rem 0;
}

.events_list-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 3rem 2rem;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home-events-section h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  letter-spacing: 0.08em;
  margin-bottom: 2rem;
}

/* ===== Events Page Section ===== */
.featured-events {
  padding: 4rem 2rem;
  background-color: var(--bg-primary);
  text-align: center;
}

.featured-events h2 {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.featured-events .section-sub {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 1rem;
}

/* ===== Event Cards Grid ===== */
.event-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

/* ===== Event Card ===== */
.event-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-glow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
  width: 100%;
  display: flex;
  flex-direction: column;
  text-align: left;
}

/* Clickable card styles */
.event-card--clickable {
  cursor: pointer;
}

.event-card--clickable:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  background: var(--bg-card-hover);
  border-color: rgba(0, 191, 255, 0.4);
}

.event-card--clickable:focus {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
}

/* Tap hint text */
.card-tap-hint {
  margin-top: auto !important;
  padding-top: 0.75rem;
  font-size: 0.78rem !important;
  color: var(--accent-blue) !important;
  opacity: 0.7;
  letter-spacing: 0.03em;
}

.event-card--clickable:hover .card-tap-hint {
  opacity: 1;
}

.event-card-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.event-card-image-placeholder {
  width: 100%;
  height: 280px;
  background: linear-gradient(135deg, var(--accent-dark) 0%, #001a33 50%, #000d1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.event-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.event-card h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  line-height: 1.2;
}

.event-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ===== Category Badges ===== */
.event-category {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  width: fit-content;
}

.cat-hip-hop       { background: rgba(255,107,53,0.15);  color: var(--cat-hip-hop);       border: 1px solid var(--cat-hip-hop); }
.cat-breaking      { background: rgba(231,76,60,0.15);   color: var(--cat-breaking);      border: 1px solid var(--cat-breaking); }
.cat-popping       { background: rgba(243,156,18,0.15);  color: var(--cat-popping);       border: 1px solid var(--cat-popping); }
.cat-locking       { background: rgba(22,160,133,0.15);  color: var(--cat-locking);       border: 1px solid var(--cat-locking); }
.cat-amapiano      { background: rgba(142,68,173,0.15);  color: var(--cat-amapiano);      border: 1px solid var(--cat-amapiano); }
.cat-afrobeats     { background: rgba(211,84,0,0.15);    color: var(--cat-afrobeats);     border: 1px solid var(--cat-afrobeats); }
.cat-house         { background: rgba(41,128,185,0.15);  color: var(--cat-house);         border: 1px solid var(--cat-house); }
.cat-ballroom      { background: rgba(192,57,43,0.15);   color: var(--cat-ballroom);      border: 1px solid var(--cat-ballroom); }
.cat-latin         { background: rgba(233,30,99,0.15);   color: var(--cat-latin);         border: 1px solid var(--cat-latin); }
.cat-ballet        { background: rgba(233,30,140,0.15);  color: var(--cat-ballet);        border: 1px solid var(--cat-ballet); }
.cat-contemporary  { background: rgba(156,39,176,0.15);  color: var(--cat-contemporary);  border: 1px solid var(--cat-contemporary); }
.cat-tap           { background: rgba(26,188,156,0.15);  color: var(--cat-tap);           border: 1px solid var(--cat-tap); }
.cat-jazz          { background: rgba(52,73,94,0.15);    color: var(--cat-jazz);          border: 1px solid var(--cat-jazz); }
.cat-acro          { background: rgba(39,174,96,0.15);   color: var(--cat-acro);          border: 1px solid var(--cat-acro); }
.cat-allstyles     { background: rgba(0,191,255,0.15);   color: var(--cat-allstyles);     border: 1px solid var(--cat-allstyles); }
.cat-other         { background: rgba(149,165,166,0.15); color: var(--cat-other);         border: 1px solid var(--cat-other); }

/* ===== Event Type Badge ===== */
.event-type-badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 15px;
  font-size: 0.65rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(0,191,255,0.1);
  color: var(--accent-blue);
  border: 1px solid rgba(0,191,255,0.4);
  width: fit-content;
}

/* ===== Skeleton Loader ===== */
.skeleton {
  background: linear-gradient(90deg, #1a1a1a 25%, #252525 50%, #1a1a1a 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  overflow: hidden;
  width: 100%;
}

.skeleton-img   { height: 280px; border-radius: 0; }
.skeleton-body  { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; }
.skeleton-line  { height: 14px; border-radius: 4px; }
.skeleton-line.short  { width: 40%; }
.skeleton-line.medium { width: 70%; }
.skeleton-title { height: 22px; width: 80%; border-radius: 4px; }

/* ===== Spotlight Card ===== */
.spotlight-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 0.75rem;
  text-align: left;
  max-width: 900px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.spotlight-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid rgba(0,191,255,0.3);
  box-shadow: 0 0 40px rgba(0,191,255,0.12);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 900px;
  margin: 0 auto 3rem;
  text-align: left;
  transition: transform 0.3s, box-shadow 0.3s;
}

.spotlight-card--clickable {
  cursor: pointer;
}

.spotlight-card--clickable:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 50px rgba(0,191,255,0.25);
}

.spotlight-card-image {
  width: 100%; height: 100%;
  min-height: 260px;
  object-fit: cover;
  display: block;
}

.spotlight-card-placeholder {
  min-height: 260px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.spotlight-card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.6rem;
}

.spotlight-card h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  line-height: 1.1;
}

.spotlight-card p { color: var(--text-muted); font-size: 0.92rem; }

/* ===== Features ===== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.feature {
  background: var(--bg-card);
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-glow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.feature h3 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feature p { color: var(--text-muted); font-size: 0.95rem; }

/* ===== Submit CTA ===== */
.submit-cta {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--accent-dark) 0%, #001833 50%, #000d1a 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.submit-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,191,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.submit-cta h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: white;
  position: relative;
}

/* ===== Event Form ===== */
.event-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 480px;
  width: 100%;
  position: relative;
}

.event-form label {
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  text-align: left;
  font-size: 0.9rem;
}

.event-form input,
.event-form textarea,
.event-form select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  background-color: rgba(255,255,255,0.07);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.event-form input:focus,
.event-form textarea:focus,
.event-form select:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 12px rgba(0,191,255,0.2);
}

.event-form textarea { resize: vertical; min-height: 110px; }
.event-form select { appearance: none; cursor: pointer; }
.event-form select option { background: #1a1a1a; color: var(--text-primary); }

.event-form .submit-btn {
  background: var(--gradient);
  border: none;
  padding: 0.9rem 2rem;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  color: white;
  align-self: center;
  transition: 0.3s;
  box-shadow: 0 0 20px rgba(0,191,255,0.3);
}

.event-form .submit-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0,191,255,0.5);
}

/* ===== Search & Filter Bar ===== */
.search-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 0 auto 2.5rem;
  padding: 1.25rem;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-glow);
  max-width: 1200px;
}

.search-filter input,
.search-filter select {
  padding: 0.65rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  transition: all 0.3s ease;
  min-width: 140px;
}

.search-filter input::placeholder { color: var(--text-muted); }

.search-filter input:focus,
.search-filter select:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 10px rgba(0,191,255,0.2);
}

.search-filter select option { background: var(--bg-card); color: var(--text-primary); }

/* ===== View All ===== */
.view-all {
  display: inline-block;
  margin-top: 2.5rem;
  font-weight: 600;
  color: var(--accent-blue);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.view-all:hover { border-color: var(--accent-blue); color: var(--accent-blue); }

/* ===== Footer ===== */
footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  text-align: center;
  padding: 2.5rem 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links {
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}

.footer-links a { color: #66ccff; font-weight: 500; transition: color 0.3s; }
.footer-links a:hover { color: white; }

/* ===== Scroll Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.active { opacity: 1; transform: translateY(0); }

/* ===== Hamburger ===== */
.hamburger { display: none; }

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 26px; height: 20px;
    cursor: pointer;
    z-index: 1100;
  }

  .hamburger span {
    display: block;
    height: 3px; width: 100%;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
  }

  .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  nav {
    max-height: 0;
    overflow: hidden;
    position: absolute;
    top: 65px; right: 0;
    background: rgba(10,10,10,0.98);
    width: 220px;
    padding: 0 1rem;
    border-radius: 0 0 12px 12px;
    border: 1px solid var(--border-color);
    border-top: none;
    z-index: 1000;
    opacity: 0;
    transition: max-height 0.4s ease-in-out, opacity 0.3s ease-in-out;
  }

  nav.show { max-height: 500px; opacity: 1; }
  nav ul { flex-direction: column; gap: 0; padding: 0.75rem 0; }
  nav ul li a { display: block; padding: 0.6rem 0; border-bottom: 1px solid var(--border-color); font-size: 1rem; }
  nav ul li:last-child a { border-bottom: none; }

  .hero { height: 70vh; }
  .hero h1 { font-size: 3rem; }
  .hero h2 { font-size: 1rem; }
  .hero-buttons { flex-direction: column; align-items: center; }

  .home-events-section { min-height: auto; background-size: cover; background-position: center; }
  .home-events-section h2 { font-size: 2rem; }

  .event-cards {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .spotlight-card { grid-template-columns: 1fr; }
  .spotlight-card-image,
  .spotlight-card-placeholder { min-height: 200px; }

  .why-groovelink { padding: 2.5rem 1.25rem; }
  .why-groovelink h2 { font-size: 2.2rem; }
  .why-groovelink p  { font-size: 0.97rem; }

  .features { grid-template-columns: 1fr; max-width: 420px; }

  .submit-cta { padding: 2.5rem 1.25rem; }
  .submit-cta h2 { font-size: 1.8rem; }

  .event-form { max-width: 100%; }

  .search-filter { flex-direction: column; align-items: stretch; }
  .search-filter input,
  .search-filter select { width: 100%; min-width: unset; }

  .featured-events { padding: 2.5rem 1.25rem; }
  .featured-events h2 { font-size: 2.2rem; }
}

@media (max-width: 480px) {
  header { padding: 0.9rem 1.25rem; }
  .hero h1 { font-size: 2.5rem; }
  .btn { width: 100%; max-width: 260px; text-align: center; margin: 0.3rem auto; display: block; }
}