/* Card Show Page Styles - Scoped to fullscreen layout only */

/* Variables for card show pages */
.card-show-body {
  --light: #ffffff;
  --dark: #050001;
  
  /* Body styling with animated gradient */
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text, #0f172a);
  background: linear-gradient(135deg, var(--primary, #667eea) 0%, var(--accent, #764ba2) 100%);
  background-size: 400% 400%;
  animation: gradientAnimation 15s ease infinite;
  line-height: 1.6;
  min-height: 100vh;
}

/* Animated gradient background when no image provided */
@keyframes gradientAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Floating animation elements */
.card-show-body .floating-elements {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.card-show-body .floating-element {
  position: absolute;
  opacity: 0.6;
  animation: float 8s infinite linear;
  font-size: 2rem;
}

.card-show-body .floating-element--delay-0 { left: 10%; animation-delay: 0s; }
.card-show-body .floating-element--delay-1 { left: 20%; animation-delay: 2s; }
.card-show-body .floating-element--delay-2 { left: 30%; animation-delay: 4s; }
.card-show-body .floating-element--delay-3 { left: 40%; animation-delay: 1s; }
.card-show-body .floating-element--delay-4 { left: 50%; animation-delay: 3s; }
.card-show-body .floating-element--delay-5 { left: 60%; animation-delay: 5s; }
.card-show-body .floating-element--delay-6 { left: 70%; animation-delay: 0.5s; }
.card-show-body .floating-element--delay-7 { left: 80%; animation-delay: 2.5s; }
.card-show-body .floating-element--delay-8 { left: 90%; animation-delay: 4.5s; }

@keyframes float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* Hero section with background image if provided */
.card-show-body .hero-section {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  text-align: center;
  padding: 4rem 1rem;
  /* Ensure scroll arrow isn't clipped */
  overflow: visible;
}

.card-show-body .hero-section--with-background {
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  /* Ensure the container is tall enough to show the full image */
  min-height: 100vh;
}

/* Full background section when hero is hidden */
.card-show-body .full-background-section {
  width: 100%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  /* Ensure the container shows the full image */
  min-height: 100vh;
  /* Ensure scroll arrow isn't clipped */
  overflow: visible;
}

.card-show-body .hero-content {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 3rem;
  max-width: 800px;
  width: 90%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  animation: cardSlideUp 0.8s ease-out;
  position: relative;
  z-index: 2;
}

.card-show-body .hero-content h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.3);
  color: var(--light);
  letter-spacing: -0.025em;
}

.card-show-body .hero-content p {
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 500;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 0, 0, 0.2);
  color: var(--light);
  margin-bottom: 2rem;
  line-height: 1.4;
}

.card-show-body .scroll-arrow {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounceArrow 2.5s infinite;
  opacity: 1;
  cursor: pointer;
  z-index: 1000;
  display: block;
}

.card-show-body .arrow {
  width: 40px;
  height: 40px;
  border: solid var(--light, #ffffff);
  border-width: 0 3px 3px 0;
  display: inline-block;
  padding: 3px;
  transform: rotate(45deg);
  /* Ensure arrow is visible */
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

@keyframes bounceArrow {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

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

/* Countdown section */
.card-show-body .countdown-section {
  padding: 4rem 1rem;
  background: var(--ghost-white, rgba(255, 255, 255, 0.1));
  text-align: center;
}

.card-show-body .countdown-section h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 2rem;
  color: var(--text, #0f172a);
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2), 0 0 10px rgba(255, 255, 255, 0.3);
}

.card-show-body .countdown {
  display: flex;
  gap: 2rem;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 600px;
  justify-content: space-between;
  margin: 0 auto;
}

.card-show-body .countdown-box {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  background: transparent;
  border-radius: 15px;
  padding: 1.5rem 1rem;
  /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); */
  color: var(--light);
}

.card-show-body .countdown-number {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 0, 0, 0.2);
}

.card-show-body .countdown-label {
  font-size: clamp(0.7rem, 2vw, 1rem);
  margin-top: 0.5rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
  display: block;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Info sections */
.card-show-body .info-section {
  padding: 0;
  background: none;
}

.card-show-body .info-box {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  padding: 2rem;
  color: var(--light);
  text-align: center;
}

.card-show-body .info-box.alternate {
  background: linear-gradient(135deg, var(--accent), var(--primary));
}

.card-show-body .info-box p {
  margin: 0.5rem 0;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 500;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4), 0 0 10px rgba(0, 0, 0, 0.2);
  color: var(--light);
}

.card-show-body .info-box p:first-child {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 0, 0, 0.3);
  color: var(--light);
}

/* Divider images */
.card-show-body .divider-pic {
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  position: relative;
  width: 100%;
  /* Ensure divider images are fully visible */
  min-height: 60vh;
}

/* Map section */
.card-show-body .map-section {
  padding: 2rem 0;
  background: var(--ghost-white, rgba(255, 255, 255, 0.1));
}

.card-show-body .map-container {
  max-width: 100%;
  margin: 0 auto;
}

.card-show-body .map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card-show-body .map-iframe {
  border: none;
  border-radius: 8px;
}

/* Details section */
.card-show-body .details-section {
  padding: 3rem 2rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #ffffff;
  text-align: center;
}

.card-show-body .details h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 2rem;
  color: #ffffff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.025em;
}

.card-show-body .details p {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 500;
  margin: 1rem 0;
  color: #ffffff;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4), 0 0 10px rgba(0, 0, 0, 0.2);
  line-height: 1.4;
}

/* Share button */
.card-show-body .share-button {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--light);
  border: none;
  border-radius: 50px;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.card-show-body .share-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .card-show-body .hero-content {
    padding: 2rem;
    margin: 1rem;
  }
  
  .card-show-body .countdown {
    gap: 1rem;
  }
  
  .card-show-body .countdown-box {
    padding: 1rem 0.5rem;
  }
  
  .card-show-body .info-box, 
  .card-show-body .details-section {
    padding: 2rem 1rem;
  }
  
  .card-show-body .map-container iframe {
    height: 300px;
  }
}

/* Card accent text - for time and location info */
.card-show-body .card-accent {
  color: var(--light, #ffffff);
  font-weight: 600;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6), 0 0 10px rgba(0, 0, 0, 0.3);
  opacity: 0.95;
  letter-spacing: 0.025em;
}

/* Celebration message styles */
.card-show-body .celebration-message {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  animation: pulse 2s infinite;
  text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.3);
  color: var(--light);
  letter-spacing: -0.025em;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}