/* CSS Variables */
:root {
  --neon-pink: #f72585;
  --neon-purple: #7209b7;
  --neon-blue: #4cc9f0;
  --dark-bg: #0b0914;
  --text-main: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.7);
  
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --glass-bg: rgba(20, 15, 35, 0.6);
  --glass-border: rgba(255, 255, 255, 0.15);
  --glass-blur: blur(16px);
}

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

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--dark-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Utility */
.hidden {
  display: none !important;
}

/* Background */
.bg-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-size: cover;
  background-position: center;
  z-index: -2;
  transform: scale(1.05); /* Slight scale to prevent edge bleed on mobile scroll */
}

.bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 75% 50%, rgba(11, 9, 20, 0.4) 0%, rgba(11, 9, 20, 0.85) 60%, rgba(5, 4, 10, 0.95) 100%);
  z-index: -1;
}

/* Layout */
.page-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  position: relative;
}

.sponsor-container {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.sponsor-logo {
  width: 180px;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5));
}

.sponsor-tag span {
  display: inline-block;
  background: var(--text-main);
  color: var(--dark-bg);
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  padding: 0.4rem 1rem;
  border-radius: 4px;
}

.main-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  flex: 1;
  justify-content: center;
}

@media (min-width: 900px) {
  .main-content {
    flex-direction: row;
    align-items: center;
    gap: 5rem;
  }
  
  .hero-section {
    flex: 1.2;
  }
  
  .action-section {
    flex: 1;
    max-width: 500px;
  }
}

/* Typography & Hero */
.hero-section {
  text-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.artist-name {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  background: linear-gradient(135deg, #fff, #ddd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tour-name {
  font-family: var(--font-heading);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  margin-bottom: 1.5rem;
  color: var(--neon-pink);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-shadow: 0 0 20px rgba(247, 37, 133, 0.4);
}

.special-guests {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.4;
}

.special-guests .highlight {
  color: var(--neon-blue);
  font-size: 1.5rem;
}

.event-details {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  padding: 0.75rem 1.25rem;
  border-radius: 99px;
  border: 1px solid rgba(255,255,255,0.1);
}

.detail-item svg {
  color: var(--neon-purple);
}

/* Cards & Glassmorphism */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
}

/* Subtle gradient glow inside card */
.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--neon-pink), var(--neon-purple), var(--neon-blue));
}

.card-header {
  margin-bottom: 2rem;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.section-subtitle {
  color: var(--text-muted);
  line-height: 1.6;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"] {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s ease;
  color-scheme: dark;
}

input:focus {
  outline: none;
  border-color: var(--neon-pink);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 0 3px rgba(247, 37, 133, 0.2);
}

input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

/* Checkbox specific styles */
.checkbox-label {
  display: flex !important;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem !important;
  color: rgba(255,255,255,0.8) !important;
  cursor: pointer;
  line-height: 1.4;
  text-transform: none !important;
  font-weight: 400 !important;
  letter-spacing: normal !important;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 0.15rem;
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--neon-pink);
  flex-shrink: 0;
  cursor: pointer;
}

/* Buttons */
.btn-primary {
  width: 100%;
  position: relative;
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
  color: white;
  border: none;
  border-radius: 12px;
  padding: 1.25rem;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(114, 9, 183, 0.4);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-text {
  position: relative;
  z-index: 2;
}

.btn-glow {
  position: absolute;
  top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: skewX(-20deg);
  transition: 0.5s;
  z-index: 1;
}

.btn-primary:hover .btn-glow {
  left: 150%;
}

.error-message {
  background: rgba(220, 53, 69, 0.1);
  border-left: 4px solid #dc3545;
  color: #ff8a95;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

/* Success & Share State */
.success-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(76, 201, 240, 0.1);
  color: var(--neon-blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
  border: 2px solid rgba(76, 201, 240, 0.3);
}

.share-panel {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
}

.share-panel h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--neon-blue);
}

.share-panel p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.share-input-group {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.share-input-group input {
  flex: 1;
  background: rgba(0,0,0,0.5);
  padding: 0.8rem 1rem;
}

.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0 1.5rem;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

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

.social-share {
  display: flex;
  gap: 1rem;
}

.social-btn {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem;
  border: none; border-radius: 12px;
  font-weight: 600; font-size: 0.9rem;
  cursor: pointer; color: white;
  transition: opacity 0.2s;
}

.social-btn:hover { opacity: 0.9; }
.social-btn.fb { background: #1877f2; }
.social-btn.tw { background: #1da1f2; }

/* Footer */
.site-footer {
  margin-top: auto;
  padding-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.text-link {
  background: none; border: none;
  color: var(--text-muted);
  text-decoration: underline;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: var(--font-body);
}

.text-link:hover {
  color: white;
}

/* Rules Modal */
.modal {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
}

.modal-backdrop {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  width: 100%; max-width: 700px; max-height: 85vh;
  display: flex; flex-direction: column;
  background: var(--dark-bg); /* Opaque for readability */
  border: 1px solid var(--neon-purple);
}

.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-weight: 700; font-size: 1.5rem;
  margin: 0;
}

.icon-btn {
  background: none; border: none; color: var(--text-muted);
  cursor: pointer; padding: 0.5rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}

.icon-btn:hover {
  background: rgba(255,255,255,0.1); color: white;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
}

.prose {
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  font-size: 0.95rem;
}

.prose p { margin-bottom: 1rem; }
.prose strong { color: white; }
.prose h1, .prose h2, .prose h3 { margin-top: 1.5rem; margin-bottom: 0.5rem; color: white; }

/* Responsive adjustments */
@media (max-width: 768px) {
  .glass-card { padding: 1.5rem; }
  .page-wrapper { padding: 1rem; gap: 2rem; }
  .main-content { gap: 2rem; }
  .special-guests { margin-bottom: 1.5rem; }
}