/* 
 * queboleta.com Design System
 * Focus: Premium, High-Contrast, Glassmorphism
 */

:root {
  --background: 240 10% 4%;
  --foreground: 0 0% 95%;
  --card: 240 10% 10%;
  --card-foreground: 0 0% 95%;
  --popover: 240 10% 10%;
  --popover-foreground: 0 0% 95%;
  --primary: 0 83% 59%;
  --primary-foreground: 0 0% 100%;
  --secondary: 240 6% 14%;
  --secondary-foreground: 0 0% 90%;
  --muted: 240 6% 14%;
  --muted-foreground: 240 4% 55%;
  --accent: 166 69% 50%;
  --accent-foreground: 240 10% 4%;
  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 100%;
  --border: 240 6% 18%;
  --input: 240 6% 18%;
  --ring: 0 83% 59%;
  --radius: 0.75rem;

  --gradient-primary: linear-gradient(135deg, hsl(0, 83%, 59%), hsl(355, 95%, 53%));
  --gradient-accent: linear-gradient(135deg, hsl(166, 69%, 50%), hsl(170, 80%, 40%));
  --gradient-card: linear-gradient(145deg, hsl(240, 8%, 10%), hsl(240, 8%, 6%));
  --shadow-glow: 0 0 40px hsl(0, 83%, 59%, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-color: hsl(var(--border) / 0.1);
}

body {
  background-color: hsl(var(--background));
  font-family: 'Barlow', sans-serif;
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

h1,
h2,
h3,
h4,
.font-heading {
  font-family: 'Bebas Neue', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Glassmorphism */
.glass {
  background: rgba(24, 24, 27, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Navbar */
header {
  height: 64px;
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.75rem;
  letter-spacing: 0.15em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: hsl(var(--primary));
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-links a:hover {
  color: #fff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(237, 64, 64, 0.3);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(237, 64, 64, 0.4);
}

.btn-secondary {
  background: hsl(var(--secondary));
  color: #fff;
}

.btn-secondary:hover {
  background: hsl(var(--secondary) / 0.8);
}

/* Hero */
.hero {
  padding: 10rem 0 6rem;
  position: relative;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.9;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  max-width: 600px;
  margin-bottom: 3rem;
}

/* Filter Pills */
.filters {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 3rem;
  overflow-x: auto;
  padding-top: 0.5rem;
  padding-bottom: 1rem;
}

.filter-pill {
  padding: 0.6rem 1.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.filter-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  transform: translateY(-1px);
}

.filter-pill.active {
  background: hsl(var(--primary));
  border-color: hsl(var(--primary));
  color: #fff;
  box-shadow: 0 4px 15px hsl(var(--primary) / 0.3);
}

/* Grid Features */
.section-header {
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: hsl(var(--muted-foreground));
}

.popular-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 1.5rem;
}

.featured-event {
  grid-row: span 2;
  position: relative;
}

/* Event Card Overlays like Reference */
.event-card {
  position: relative;
  background: hsl(var(--card));
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
}

.event-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}

.event-card .content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  z-index: 10;
}

.event-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.event-card:hover img {
  transform: scale(1.1);
}

/* Badge Improvements */
.badge {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  padding: 0.35rem 1rem;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 20;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.badge-urgent {
  background: rgba(237, 64, 64, 0.9);
  left: auto;
  right: 1rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(237, 64, 64, 0.4);
  }

  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(237, 64, 64, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(237, 64, 64, 0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

.animate-slide-up {
  animation: slideUp 0.6s ease-out forwards;
}

.availability-bar {
  width: 100%;
  height: 8px;
  background: hsl(var(--secondary));
  border-radius: 9999px;
  margin: 1.5rem 0;
  overflow: hidden;
}

.availability-progress {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 9999px;
}

@media (max-width: 1024px) {
  .popular-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .popular-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .featured-event {
    grid-row: span 1;
  }
}

/* Internal Page */
.event-hero {
  position: relative;
  height: 85vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: hsl(var(--background));
}

.event-hero img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.event-hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsl(var(--background)) 0%, rgba(9, 9, 11, 0.6) 50%, rgba(9, 9, 11, 0.3) 100%);
  z-index: 2;
}

.event-hero .container {
  position: relative;
  z-index: 10;
  width: 100%;
}

/* Footer Improvements */
footer {
  padding: 6rem 0 4rem;
  background: hsl(var(--card));
  border-top: 1px solid hsl(var(--border) / 0.1);
  margin-top: 6rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  color: hsl(var(--muted-foreground));
  font-size: 0.9375rem;
  margin-top: 1.5rem;
  max-width: 300px;
}

footer h4 {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  color: #fff;
}

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

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

footer ul li a {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

footer ul li a:hover {
  color: #fff;
}

.social-links a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: hsl(var(--secondary));
  color: hsl(var(--muted-foreground));
  font-size: 1rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: hsl(var(--primary));
  color: #fff;
  transform: translateY(-3px);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--border) / 0.1);
  text-align: center;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

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

.glass {
  background: rgba(24, 24, 27, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .popular-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .featured-event {
    grid-row: span 1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}