/*
 * Republic of Comedy - Premium Luxury Styles
 * Republic of Comedy - Premium styles for Portugal's first international comedy club
 */

/* ========================================
   CSS Custom Properties
   ======================================== */
:root {
  --gold-primary: #c9a227;
  --gold-light: #e8d5b0;
  --gold-dark: #996515;
  --cream: #faf8f5;
  --charcoal: #1a1a1a;
  --charcoal-light: #2a2a2a;

  /* Logo-inspired accent colors */
  --magenta: #db2777;
  --magenta-light: #ec4899;
  --wine: #4a1942;
  --wine-dark: #2d1028;
  --coral: #f5a4b8;
  --coral-light: #fda4af;

  /* Refined shadows */
  --shadow-elegant: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-luxury: 0 10px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-dramatic: 0 25px 60px rgba(0, 0, 0, 0.2), 0 5px 15px rgba(0, 0, 0, 0.1);

  /* Timing functions */
  --ease-luxury: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-dramatic: cubic-bezier(0.19, 1, 0.22, 1);
}

/* ========================================
   Public Body Styling
   ======================================== */
body.public {
  background: var(--cream);
  color: var(--charcoal);
  font-family: 'Montserrat', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Premium Typography
   ======================================== */
.headline-display {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 0.95;
}

.headline-editorial {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.01em;
}

/* ========================================
   Gold Accent Elements
   ======================================== */
.gold-accent {
  color: var(--gold-primary);
}

.gold-gradient-text {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 50%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gold-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-primary) 50%, transparent 100%);
  opacity: 0.6;
}

.gold-border {
  border-color: var(--gold-primary);
  border-width: 1px;
}

/* ========================================
   Premium Buttons
   ======================================== */
.btn-premium {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal);
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 100%);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s var(--ease-luxury);
  box-shadow: 0 4px 15px rgba(201, 162, 39, 0.25);
}

.btn-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s var(--ease-luxury);
}

.btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201, 162, 39, 0.35);
}

.btn-premium:hover::before {
  left: 100%;
}

.btn-premium-dark {
  color: var(--gold-primary);
  background: var(--charcoal);
  border: 1px solid var(--gold-primary);
}

.btn-premium-dark:hover {
  background: var(--charcoal-light);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 20px rgba(201, 162, 39, 0.15);
}

/* Urgent variant - for low availability */
.btn-premium-urgent {
  animation: urgentPulse 2s ease-in-out infinite;
}

@keyframes urgentPulse {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.25);
  }
  50% {
    box-shadow: 0 4px 20px rgba(201, 162, 39, 0.5), 0 0 30px rgba(201, 162, 39, 0.2);
  }
}

/* ========================================
   Show Cards - Minimal Theatrical Style
   ======================================== */
.show-card-minimal {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  background: var(--charcoal);
  transition: transform 0.5s var(--ease-luxury), box-shadow 0.5s var(--ease-luxury);
}

.show-card-minimal:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.35);
}

/* Subtle gradient border on hover */
.show-card-minimal::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 3px;
  padding: 1px;
  background: linear-gradient(180deg, transparent 0%, transparent 60%, var(--magenta) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s var(--ease-luxury);
  pointer-events: none;
  z-index: 10;
}

.show-card-minimal:hover::before {
  opacity: 0.6;
}

/* Date overlay - text-only readability treatment */
.date-overlay-minimal .day {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 0.85;
  color: white;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.5),
    0 2px 8px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(0, 0, 0, 0.3);
}

.date-overlay-minimal .month {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: white;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.6),
    0 0 12px rgba(0, 0, 0, 0.4);
}

/* ========================================
   Section Headers - Editorial Style
   ======================================== */
.section-header-editorial {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}

.section-header-editorial .overline {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 0.5rem;
}

.section-header-editorial .title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.section-header-editorial .subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.125rem;
  font-weight: 500;
  font-style: italic;
  color: #666;
  margin-top: 0.5rem;
}

/* ========================================
   Hero Section Enhancements
   ======================================== */
.hero-title-luxury {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.85;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.5);
}

.hero-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.6;
}

/* ========================================
   Animations
   ======================================== */
.fade-in-text {
  animation: luxuryFadeUp 0.8s var(--ease-dramatic) forwards;
  animation-delay: var(--delay, 0s);
}

.fade-in-only {
  animation: luxuryFadeIn 1s var(--ease-luxury) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes luxuryFadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes luxuryFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Scroll reveal animations are handled by scroll_reveal_controller.js */
/* Cards start hidden and animate in when they enter the viewport */

/* ========================================
   Decorative Elements
   ======================================== */
.decorative-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-primary), var(--gold-light));
}

.decorative-star::before {
  content: '\2726';
  color: var(--gold-primary);
  margin: 0 0.75rem;
}

/* ========================================
   Footer Styling
   ======================================== */
.footer-premium {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 2rem 0;
  margin-top: 4rem;
}

.footer-premium p {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: #888;
}

/* ========================================
   Sold Out Ribbon - 3D Effect
   ======================================== */
.ribbon-3d {
  position: absolute;
  top: 20px;
  left: -35px;
  padding: 0.5rem 2.5rem;
  background: linear-gradient(
    to bottom,
    #e5c442 0%,
    var(--gold-primary) 50%,
    #a68b1a 100%
  );
  color: var(--charcoal);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transform: rotate(-45deg);
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.3),
    0 1px 3px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  z-index: 10;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ========================================
   Responsive Refinements
   ======================================== */
@media (max-width: 1024px) {
  .section-header-editorial .title {
    font-size: 2rem;
  }

  .date-badge-republic .day {
    font-size: 2rem;
  }
}

@media (max-width: 640px) {
  .section-header-editorial .title {
    font-size: 1.75rem;
  }

  .btn-premium {
    padding: 0.75rem 1.5rem;
    font-size: 0.8rem;
  }
}

/* ========================================
   THEATRICAL PUBLIC PAGES
   Cabaret-inspired design for show landing pages
   ======================================== */

/* Noise texture overlay for vintage cinema feel */
.republic-noise::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.03;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Spotlight effect - theatrical stage lighting */
.republic-spotlight {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.republic-spotlight::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 150%;
  height: 80%;
  background: radial-gradient(
    ellipse 60% 40% at 50% 0%,
    rgba(219, 39, 119, 0.12) 0%,
    rgba(201, 162, 39, 0.08) 30%,
    transparent 70%
  );
  animation: spotlight 4s ease-in-out infinite;
}

/* Secondary magenta spotlight */
.republic-spotlight::after {
  content: '';
  position: absolute;
  top: 10%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(
    ellipse 50% 50% at 80% 20%,
    rgba(236, 72, 153, 0.08) 0%,
    rgba(245, 164, 184, 0.04) 40%,
    transparent 70%
  );
  animation: spotlightSecondary 5s ease-in-out infinite;
}

@keyframes spotlight {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.9; transform: translateX(-50%) scale(1.05); }
}

@keyframes spotlightSecondary {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

/* Art Deco corner decorations */
.art-deco-corner {
  position: absolute;
  width: 80px;
  height: 80px;
  opacity: 0.15;
  pointer-events: none;
}

.art-deco-corner::before,
.art-deco-corner::after {
  content: '';
  position: absolute;
  background: var(--gold-primary);
}

.art-deco-corner--tl::before {
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
}

.art-deco-corner--tl::after {
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
}

.art-deco-corner--tr::before {
  top: 0;
  right: 0;
  width: 100%;
  height: 2px;
}

.art-deco-corner--tr::after {
  top: 0;
  right: 0;
  width: 2px;
  height: 100%;
}

.art-deco-corner--bl::before {
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
}

.art-deco-corner--bl::after {
  bottom: 0;
  left: 0;
  width: 2px;
  height: 100%;
}

.art-deco-corner--br::before {
  bottom: 0;
  right: 0;
  width: 100%;
  height: 2px;
}

.art-deco-corner--br::after {
  bottom: 0;
  right: 0;
  width: 2px;
  height: 100%;
}

/* Art Deco diamond pattern divider */
.art-deco-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  opacity: 0.6;
}

.art-deco-divider::before {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--magenta), var(--gold-primary));
}

.art-deco-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-primary), var(--coral), transparent);
}

.art-deco-divider span {
  background: linear-gradient(135deg, var(--magenta-light), var(--gold-primary), var(--coral));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.25rem;
}

/* Theatre ticket CTA button */
.btn-republic-ticket {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-light) 50%, var(--gold-primary) 100%);
  background-size: 200% 100%;
  color: #0f0f0f;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s var(--ease-luxury);
  box-shadow:
    0 4px 20px rgba(201, 162, 39, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}

.btn-republic-ticket::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transform: skewX(-20deg);
  transition: left 0.6s var(--ease-luxury);
}

@media (hover: hover) {
  .btn-republic-ticket:hover {
    background: linear-gradient(135deg, var(--magenta) 0%, var(--coral) 50%, var(--gold-primary) 100%);
    background-size: 200% 100%;
    transform: translateY(-3px);
    box-shadow:
      0 8px 30px rgba(219, 39, 119, 0.4),
      0 0 40px rgba(245, 164, 184, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.4),
      inset 0 -2px 0 rgba(0, 0, 0, 0.15);
  }

  .btn-republic-ticket:hover::before {
    left: 150%;
  }
}

.btn-republic-ticket:active {
  transform: translateY(-1px);
}

/* Dark card for show listings */
.republic-card {
  position: relative;
  background: linear-gradient(145deg, rgba(35, 35, 35, 0.9) 0%, rgba(15, 15, 15, 0.95) 100%);
  border: 1px solid rgba(201, 162, 39, 0.15);
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.5s var(--ease-luxury);
}

.republic-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--magenta), var(--gold-primary), var(--coral));
  opacity: 0;
  transition: opacity 0.4s ease;
}

@media (hover: hover) {
  .republic-card:hover {
    border-color: rgba(219, 39, 119, 0.3);
    transform: translateY(-4px);
    box-shadow:
      0 20px 40px rgba(0, 0, 0, 0.4),
      0 0 30px rgba(219, 39, 119, 0.1),
      0 0 60px rgba(245, 164, 184, 0.05);
  }

  .republic-card:hover::before {
    opacity: 1;
  }
}

/* Venue card with subtle glow */
.venue-card-republic {
  position: relative;
  background: rgba(35, 35, 35, 0.6);
  border: 1px solid rgba(74, 25, 66, 0.3);
  border-radius: 4px;
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.venue-card-republic::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 10%, var(--magenta) 30%, var(--gold-primary) 50%, var(--coral) 70%, transparent 90%);
}

/* Staggered animation classes */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* Animate on scroll - starts hidden */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
}

.animate-on-scroll.is-visible {
  animation: luxuryFadeUp 0.8s var(--ease-dramatic) forwards;
}

/* Hero overline with decorative elements */
.hero-overline {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--magenta-light), var(--gold-primary), var(--coral));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-overline::before,
.hero-overline::after {
  content: '◆';
  font-size: 0.5rem;
  background: linear-gradient(135deg, var(--magenta), var(--gold-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Theatrical date display */
.republic-date {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
  min-width: 5.5rem;
}

.republic-date::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--magenta), var(--gold-primary), var(--coral));
}

.republic-date .day {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  color: #faf8f5;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.republic-date .month {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--magenta-light), var(--gold-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 0.25rem;
}

/* Curtain reveal effect for images */
.curtain-reveal {
  position: relative;
  overflow: hidden;
}

.curtain-reveal::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0f0f0f;
  transform: translateX(-101%);
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.curtain-reveal.revealed::after {
  transform: translateX(101%);
}

/* Gold text glow effect */
.text-glow-gold {
  text-shadow:
    0 0 10px rgba(201, 162, 39, 0.3),
    0 0 20px rgba(201, 162, 39, 0.2),
    0 0 30px rgba(201, 162, 39, 0.1);
}

/* Premium prose styling for dark backgrounds */
.prose-republic {
  color: rgba(250, 248, 245, 0.85);
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.75;
}

.prose-republic p {
  margin-bottom: 1.5rem;
}

.prose-republic strong {
  color: #faf8f5;
  font-weight: 600;
}

/* Footer style */
.footer-republic {
  position: relative;
  background: #0a0a0a;
  border-top: 1px solid rgba(74, 25, 66, 0.3);
}

.footer-republic::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--magenta), var(--gold-primary), var(--coral), transparent);
}

/* Responsive styles */
@media (max-width: 768px) {
  .republic-date {
    padding: 1rem;
    min-width: 4rem;
  }

  .republic-date .day {
    font-size: 1.75rem;
  }

  .btn-republic-ticket {
    padding: 0.875rem 1.75rem;
    font-size: 0.8rem;
  }

  .prose-republic {
    font-size: 1.1rem;
  }
}
