/* ==============================================================================
   PADURA LIVE - GLOBAL STYLESHEET
   Design System: Colorful, Festive Padura Concert Night Atmosphere
   Palette: Rich Midnight Navy, Marquee Amber Gold, Radiant Magenta, Neon Cyan, Stage Violet
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --bg-main: #070B14;
  --bg-surface: rgba(17, 24, 39, 0.82);
  --bg-card: rgba(30, 41, 59, 0.78);
  --bg-card-hover: rgba(38, 53, 77, 0.88);
  --bg-input: rgba(15, 23, 42, 0.85);
  
  /* Primary & Festival Colors */
  --primary: #9333EA;
  --primary-hover: #7E22CE;
  --primary-glow: rgba(147, 51, 234, 0.45);
  
  --secondary: #2563EB;
  --secondary-hover: #1D4ED8;
  --secondary-glow: rgba(37, 99, 235, 0.4);

  --accent-gold: #F59E0B;
  --gold-glow: rgba(245, 158, 11, 0.45);

  --accent-magenta: #EC4899;
  --magenta-glow: rgba(236, 72, 153, 0.45);

  --accent-cyan: #06B6D4;
  --cyan-glow: rgba(6, 182, 212, 0.4);
  
  /* Colorful Dynamic Gradients */
  --accent-gradient: linear-gradient(135deg, #A855F7 0%, #EC4899 50%, #3B82F6 100%);
  --accent-gradient-hover: linear-gradient(135deg, #C084FC 0%, #F472B6 50%, #60A5FA 100%);
  --gold-gradient: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
  --marquee-gradient: linear-gradient(135deg, #FF5E36 0%, #FFAE00 50%, #FF1361 100%);
  --stage-gradient: linear-gradient(135deg, #8B5CF6 0%, #EC4899 50%, #F59E0B 100%);
  
  --live-red: #EF4444;
  --live-glow: rgba(239, 68, 68, 0.6);
  --success: #10B981;
  --warning: #F59E0B;
  --info: #06B6D4;
  
  --text-main: #F8FAFC;
  --text-muted: #CBD5E1;
  --text-dim: #94A3B8;
  
  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-focus: rgba(168, 85, 247, 0.7);
  --border-glow: 0 0 15px rgba(217, 70, 239, 0.35);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.75);
  --shadow-glow: 0 0 30px var(--primary-glow);
  
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* ==============================================================================
   PADURA FESTIVAL BACKGROUND LAYER (Featuring Uploaded Photo)
   ============================================================================== */
.padura-bg-backdrop {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(180deg, 
      rgba(7, 11, 20, 0.75) 0%, 
      rgba(13, 11, 28, 0.85) 45%, 
      rgba(7, 11, 20, 0.95) 100%
    ),
    radial-gradient(circle at 50% 12%, rgba(236, 72, 153, 0.22), transparent 55%),
    radial-gradient(circle at 85% 20%, rgba(245, 158, 11, 0.2), transparent 50%),
    radial-gradient(circle at 15% 35%, rgba(59, 130, 246, 0.22), transparent 55%),
    url('../images/padura-banner.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
  z-index: -2;
  pointer-events: none;
  filter: saturate(1.2) contrast(1.08);
}

/* Colorful Animated Stage Lights Glow */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: 600px;
  background: 
    radial-gradient(circle at 35% 25%, rgba(236, 72, 153, 0.18), transparent 50%),
    radial-gradient(circle at 65% 20%, rgba(245, 158, 11, 0.16), transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.18), transparent 60%);
  pointer-events: none;
  z-index: -1;
  animation: ambient-drift 8s ease-in-out infinite alternate;
}

@keyframes ambient-drift {
  0% { transform: translateX(-50%) scale(1); opacity: 0.85; }
  100% { transform: translateX(-50%) scale(1.08); opacity: 1; }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.text-gradient-gold {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-festival {
  background: var(--stage-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

p {
  color: var(--text-muted);
}

a {
  color: #C084FC;
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: #F472B6;
}

a:hover {
  color: #A78BFA;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  letter-spacing: 0.01em;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent-gradient);
  color: #FFFFFF;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4), 0 0 15px rgba(236, 72, 153, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-primary:hover {
  background: var(--accent-gradient-hover);
  box-shadow: 0 6px 25px rgba(236, 72, 153, 0.5), 0 0 20px rgba(168, 85, 247, 0.4);
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--gold-gradient);
  color: #FFFFFF;
  box-shadow: 0 4px 20px var(--gold-glow);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-gold:hover {
  box-shadow: 0 6px 25px rgba(245, 158, 11, 0.6);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(236, 72, 153, 0.4);
  box-shadow: 0 0 15px rgba(236, 72, 153, 0.2);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.2);
  color: #FCA5A5;
  border-color: rgba(239, 68, 68, 0.4);
}

.btn-danger:hover {
  background: var(--live-red);
  color: #FFFFFF;
  box-shadow: 0 0 20px var(--live-glow);
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.775rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.95rem 2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn-icon {
  padding: 0.6rem;
  border-radius: var(--radius-md);
}

/* Form Controls */
.form-group {
  margin-bottom: 1.25rem;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.45rem;
  letter-spacing: 0.01em;
}

.form-label .required {
  color: var(--live-red);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-main);
  font-size: 0.9rem;
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  outline: none;
  transition: var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background-color: #131E33;
}

.form-input::placeholder {
  color: var(--text-dim);
}

.form-textarea {
  resize: vertical;
  min-height: 90px;
}

.input-with-icon {
  position: relative;
}

.input-with-icon .input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

.input-with-icon input {
  padding-left: 2.75rem;
}

.input-with-icon .toggle-pw {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0.25rem;
}

.input-with-icon .toggle-pw:hover {
  color: var(--text-main);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: var(--radius-full);
}

.badge-live {
  background: rgba(239, 68, 68, 0.2);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.badge-live .pulse-dot {
  width: 7px;
  height: 7px;
  background-color: var(--live-red);
  border-radius: 50%;
  animation: pulse-animation 1.5s infinite;
}

@keyframes pulse-animation {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.badge-upcoming {
  background: rgba(59, 130, 246, 0.15);
  color: #60A5FA;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-ended {
  background: rgba(148, 163, 184, 0.15);
  color: #94A3B8;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.badge-active {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-inactive {
  background: rgba(239, 68, 68, 0.15);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 17, 32, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.25s ease;
}

.modal-backdrop.open .modal-content {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 1.15rem;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0.35rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.15);
}

/* Toast System */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 300px;
  max-width: 420px;
  padding: 0.9rem 1.2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-main);
  font-size: 0.875rem;
  animation: slide-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slide-in {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast.toast-success { border-left: 4px solid var(--success); }
.toast.toast-error { border-left: 4px solid var(--live-red); }
.toast.toast-warning { border-left: 4px solid var(--warning); }
.toast.toast-info { border-left: 4px solid var(--info); }

/* Navigation & Header */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 11, 20, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.5);
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}

.brand-logo-img {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 0 10px rgba(236, 72, 153, 0.4));
  transition: var(--transition);
}

.brand-wrapper:hover .brand-logo-img {
  transform: scale(1.06);
  filter: drop-shadow(0 0 16px rgba(245, 158, 11, 0.6));
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  background: var(--marquee-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(239, 68, 68, 0.3));
}

.brand-tagline {
  font-size: 0.7rem;
  color: #CBD5E1;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-top: -2px;
  font-weight: 600;
}

/* User pill */
.user-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #FFF;
}

.user-info-text {
  text-align: left;
}

.user-name {
  font-size: 0.825rem;
  font-weight: 600;
  line-height: 1.2;
}

.user-meta {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* Utility Helpers */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mono { font-family: var(--font-mono); }
