/* ========================================
   LA LiveTickets - Main Stylesheet (v1)
   Pixel-perfect clone
   ======================================== */

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

:root {
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-light: #eef2ff;
  --secondary: #0f172a;
  --dark: #0f172a;
  --dark-800: #1e293b;
  --dark-700: #334155;
  --dark-600: #475569;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --white: #ffffff;
  --red: #ef4444;
  --red-light: #fef2f2;
  --orange: #f59e0b;
  --green: #22c55e;
  --green-light: #f0fdf4;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --transition: all 0.2s ease;
  --transition-slow: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--white);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === Animations === */
@keyframes fade-up {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  opacity: 0;
}

.animate-fade-up.animated {
  animation: fade-up 0.6s ease-out forwards;
}

/* === Header === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition-slow);
}

.header.scrolled {
  background: rgba(15, 23, 42, 0.98);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  transition: var(--transition);
}

.logo:hover {
  opacity: 0.9;
}

.logo-icon {
  font-size: 24px;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding: 4px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cart-link {
  position: relative;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.cart-link:hover {
  color: var(--white);
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--primary);
  color: var(--white);
  font-size: 10px;
  font-weight: 600;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-signin {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-signin:hover {
  background: rgba(255, 255, 255, 0.18);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  background: var(--dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu .nav-link {
  padding: 12px 0;
  font-size: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
}

.btn-white {
  background: var(--white);
  color: var(--dark);
}

.btn-white:hover {
  background: var(--gray-100);
}

/* === Hero === */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.80) 0%,
    rgba(15, 23, 42, 0.70) 50%,
    rgba(15, 23, 42, 0.90) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.emoji {
  display: inline-block;
}

.hero-subtitle {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 36px;
  font-weight: 400;
}

.search-bar {
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-full);
  padding: 6px 6px 6px 20px;
  max-width: 560px;
  margin: 0 auto 32px;
  box-shadow: var(--shadow-xl);
}

.search-icon {
  color: var(--gray-400);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 12px;
  font-size: 15px;
  color: var(--dark);
  background: transparent;
}

.search-input::placeholder {
  color: var(--gray-400);
}

.search-btn {
  background: var(--primary);
  color: var(--white);
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
  flex-shrink: 0;
}

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

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* === Sections === */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 18px;
  color: var(--gray-500);
  max-width: 500px;
  margin: 0 auto;
}

/* === Events Section === */
.events-section {
  background: var(--gray-100);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.event-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition-slow);
}

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

.event-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

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

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

.event-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}

.badge-hot {
  background: var(--red);
  color: var(--white);
}

.badge-available {
  background: rgba(34, 197, 94, 0.9);
  color: var(--white);
}

.event-card-body {
  padding: 20px;
}

.event-artist {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 2px;
}

.event-name {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 14px;
}

.event-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.event-detail {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gray-600);
}

.event-detail svg {
  flex-shrink: 0;
  color: var(--gray-400);
}

.event-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-200);
}

.event-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
}

.star {
  font-size: 14px;
}

.event-tickets-left {
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
  background: var(--red-light);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.event-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.event-price {
  font-size: 14px;
  color: var(--gray-500);
}

.event-price strong {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
}

/* === Genre Section === */
.genre-section {
  background: var(--white);
  padding: 60px 0;
}

.genre-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.genre-tag {
  padding: 10px 28px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 500;
  background: var(--gray-100);
  color: var(--gray-600);
  transition: var(--transition);
  border: 2px solid transparent;
}

.genre-tag:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

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

/* === Venues Section === */
.venues-section {
  background: var(--gray-100);
}

.venues-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.venue-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition-slow);
}

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

.venue-card-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.venue-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.venue-card:hover .venue-card-image img {
  transform: scale(1.05);
}

.venue-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-slow);
}

.venue-card:hover .venue-overlay {
  opacity: 1;
}

.venue-card-body {
  padding: 20px;
}

.venue-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

.venue-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 4px;
}

.venue-location svg {
  color: var(--gray-400);
  flex-shrink: 0;
}

.venue-capacity {
  font-size: 13px;
  color: var(--gray-400);
  font-weight: 500;
}

/* === App Section === */
.app-section {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
  color: var(--white);
  overflow: hidden;
}

.app-content {
  display: flex;
  align-items: center;
  gap: 60px;
}

.app-text {
  flex: 1;
}

.app-section .section-title {
  color: var(--white);
  text-align: left;
}

.app-description {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
  margin: 16px 0 28px;
  line-height: 1.7;
}

.app-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.app-store-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 20px;
  border-radius: var(--radius);
  color: var(--white);
  transition: var(--transition);
}

.app-store-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.app-store-small {
  display: block;
  font-size: 10px;
  opacity: 0.7;
  line-height: 1;
}

.app-store-big {
  display: block;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.coming-soon-text {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

.app-image {
  flex: 0 0 280px;
}

.phone-mockup {
  width: 240px;
  height: 440px;
  background: var(--dark);
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  margin: 0 auto;
  border: 3px solid rgba(255, 255, 255, 0.15);
}

.phone-screen {
  background: var(--dark-800);
  border-radius: 26px;
  height: 100%;
  padding: 20px 16px;
  overflow: hidden;
}

.phone-header {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.phone-event {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  margin-bottom: 10px;
}

.phone-event-img {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), #a855f7);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.phone-event-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
}

.phone-event-date {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}

/* === Newsletter Section === */
.newsletter-section {
  background: var(--white);
  padding: 80px 0;
}

.newsletter-content {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.newsletter-icon {
  color: var(--primary);
  margin-bottom: 16px;
  display: inline-flex;
}

.newsletter-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.newsletter-subtitle {
  font-size: 16px;
  color: var(--gray-500);
  margin-bottom: 28px;
}

.newsletter-form {
  margin-bottom: 12px;
}

.newsletter-input-wrapper {
  display: flex;
  gap: 8px;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  padding: 6px 6px 6px 20px;
  border: 2px solid var(--gray-200);
  transition: var(--transition);
}

.newsletter-input-wrapper:focus-within {
  border-color: var(--primary);
  background: var(--white);
}

.newsletter-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  color: var(--dark);
  padding: 8px 0;
}

.newsletter-input::placeholder {
  color: var(--gray-400);
}

.newsletter-btn {
  flex-shrink: 0;
}

.newsletter-disclaimer {
  font-size: 13px;
  color: var(--gray-400);
}

/* === Footer === */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
  margin-bottom: 16px;
}

.footer-description {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary);
  color: var(--white);
}

.footer-heading {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  transition: var(--transition);
}

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

.footer-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
  line-height: 1.6;
}

.footer-newsletter {
  display: flex;
  gap: 8px;
}

.footer-email-input {
  flex: 1;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 13px;
  outline: none;
  transition: var(--transition);
  min-width: 0;
}

.footer-email-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.footer-email-input:focus {
  border-color: var(--primary);
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}

/* === Responsive === */

/* Tablet */
@media (max-width: 1024px) {
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .venues-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-title {
    font-size: 40px;
  }

  .app-content {
    gap: 40px;
  }

  .app-image {
    flex: 0 0 220px;
  }

  .phone-mockup {
    width: 200px;
    height: 380px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }

  .header-actions .btn-signin {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .header-inner {
    height: 60px;
  }

  .hero {
    padding: 120px 0 60px;
    min-height: 500px;
  }

  .hero-title {
    font-size: 30px;
  }

  .hero-subtitle {
    font-size: 16px;
    margin-bottom: 24px;
  }

  .search-bar {
    flex-direction: column;
    border-radius: var(--radius-lg);
    padding: 12px;
    gap: 8px;
  }

  .search-icon {
    display: none;
  }

  .search-input {
    width: 100%;
    padding: 10px;
    text-align: center;
  }

  .search-btn {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius);
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 28px;
  }

  .section-subtitle {
    font-size: 16px;
  }

  .events-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .venues-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .app-content {
    flex-direction: column;
    text-align: center;
  }

  .app-section .section-title {
    text-align: center;
  }

  .app-buttons {
    justify-content: center;
  }

  .app-image {
    flex: none;
  }

  .phone-mockup {
    width: 200px;
    height: 360px;
  }

  .newsletter-input-wrapper {
    flex-direction: column;
    border-radius: var(--radius-lg);
    padding: 12px;
  }

  .newsletter-btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .genre-tags {
    gap: 8px;
  }

  .genre-tag {
    padding: 8px 20px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-title {
    font-size: 26px;
  }

  .section-title {
    font-size: 24px;
  }

  .event-card-image {
    height: 180px;
  }

  .venue-card-image {
    height: 180px;
  }
}
