/**
 * =====================================================
 * 2026 VIVEN 레벨디자인 해커톤
 * 시상식 스타일 (레퍼런스 기반 리뉴얼)
 * =====================================================
 * 골드 메탈릭, 월계수 리스, 빛 광선, confetti
 */

/* =====================================================
 * 시상식 슬라이드 배경
 * ===================================================== */

.slide--award {
  position: absolute !important;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    #1A1209 0%,
    #0D0906 50%,
    #1A1209 100%
  ) !important;
  z-index: 1;
}

/* 시상 슬라이드에서 장식 요소 숨기기 */
.slide--award .deco {
  display: none !important;
}

.slide--award .slide__background {
  display: none !important;
}

/* 어두운 가죽 느낌 오버레이 */
.slide--award::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.4) 100%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

/* =====================================================
 * 배경 효과 레이어
 * ===================================================== */

.award-effects {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* =====================================================
 * 스포트라이트 효과 (상단에서 내려오는 빛)
 * ===================================================== */

.slide--award .light-rays {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 1;
  background:
    /* 왼쪽 상단 스포트라이트 */
    radial-gradient(
      ellipse 80% 60% at 0% 0%,
      rgba(255, 215, 0, 0.15) 0%,
      rgba(212, 175, 55, 0.05) 40%,
      transparent 70%
    ),
    /* 오른쪽 상단 스포트라이트 */
    radial-gradient(
      ellipse 80% 60% at 100% 0%,
      rgba(255, 215, 0, 0.12) 0%,
      rgba(212, 175, 55, 0.04) 40%,
      transparent 70%
    );
  pointer-events: none;
  /* 회전 애니메이션 비활성화 */
  animation: none !important;
  transform: none !important;
}

/* =====================================================
 * 골드 파티클 비디오 Overlay
 * ===================================================== */

.award-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.award-video-overlay video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: screen;
  opacity: 0.35;
  filter: brightness(0.9) saturate(0.8);
}

/* 대상용 약간 강화된 효과 */
.slide--award[data-award-type="champion"] .award-video-overlay video {
  opacity: 0.45;
  filter: brightness(1.0) saturate(0.9);
}

/* =====================================================
 * 중앙 글로우
 * ===================================================== */

.center-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: radial-gradient(
    ellipse 60% 50% at 50% 45%,
    rgba(212, 175, 55, 0.2) 0%,
    rgba(212, 175, 55, 0.08) 30%,
    rgba(212, 175, 55, 0.02) 50%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.8s ease-out;
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { transform: scale(1); opacity: var(--glow-opacity, 0); }
  50% { transform: scale(1.05); opacity: calc(var(--glow-opacity, 0) * 1.2); }
}

/* =====================================================
 * 콘텐츠 레이아웃
 * ===================================================== */

.slide--award .award-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl);
  width: 100%;
  height: 100%;
  gap: var(--space-sm);
}

/* =====================================================
 * 왕관 아이콘
 * ===================================================== */

.award-crown {
  font-size: 64px;
  margin-bottom: var(--space-md);
  animation: crownFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 20px rgba(212, 175, 55, 0.5));
}

@keyframes crownFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* =====================================================
 * 상 타이틀 (골드/실버 메탈릭)
 * ===================================================== */

.award-title {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: var(--fw-bold);
  letter-spacing: 0.3em;
  text-indent: 0.3em; /* letter-spacing 보정으로 중앙 정렬 */
  text-transform: uppercase;
  margin-bottom: var(--space-2xl); /* 월계관과 간격 확보 */
}

/* 골드 메탈릭 */
.award-title--gold,
.award-title--champion {
  background: linear-gradient(
    135deg,
    #AA8C2C 0%,
    #D4AF37 15%,
    #F5E7A3 30%,
    #FFD700 45%,
    #F5E7A3 55%,
    #D4AF37 70%,
    #AA8C2C 85%,
    #D4AF37 100%
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: goldShine 4s ease-in-out infinite;
  filter:
    drop-shadow(0 2px 0 #8B6914)
    drop-shadow(0 4px 8px rgba(0,0,0,0.5))
    drop-shadow(0 0 40px rgba(212, 175, 55, 0.4));
}

/* 대상 특별 효과 */
.award-title--champion {
  font-size: clamp(42px, 5vw, 72px);
  letter-spacing: 0.4em;
  animation: goldShine 3s ease-in-out infinite, titlePulse 2s ease-in-out infinite;
}

@keyframes titlePulse {
  0%, 100% {
    filter:
      drop-shadow(0 2px 0 #8B6914)
      drop-shadow(0 4px 8px rgba(0,0,0,0.5))
      drop-shadow(0 0 40px rgba(212, 175, 55, 0.4));
  }
  50% {
    filter:
      drop-shadow(0 2px 0 #8B6914)
      drop-shadow(0 4px 8px rgba(0,0,0,0.5))
      drop-shadow(0 0 60px rgba(255, 215, 0, 0.7));
  }
}

/* 실버 메탈릭 (우수상) */
.award-title--silver {
  background: linear-gradient(
    135deg,
    #808080 0%,
    #A9A9A9 15%,
    #E8E8E8 30%,
    #FFFFFF 45%,
    #E8E8E8 55%,
    #C0C0C0 70%,
    #A9A9A9 85%,
    #C0C0C0 100%
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: silverShine 5s ease-in-out infinite;
  filter:
    drop-shadow(0 2px 0 #606060)
    drop-shadow(0 4px 8px rgba(0,0,0,0.4))
    drop-shadow(0 0 30px rgba(192, 192, 192, 0.3));
}

@keyframes goldShine {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes silverShine {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* =====================================================
 * 월계수 + 팀명 컨테이너
 * ===================================================== */

.award-laurel-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 800px;
  margin: var(--space-lg) 0;
}

/* 월계수 이미지 */
.award-laurel {
  position: absolute;
  width: 100%;
  max-width: 700px;
  height: auto;
  opacity: 0.9;
  filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.3));
  animation: laurelReveal 1s ease-out;
}

@keyframes laurelReveal {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 0.9;
    transform: scale(1);
  }
}

/* =====================================================
 * 팀명
 * ===================================================== */

.award-team-name {
  position: relative;
  z-index: 5;
  font-size: clamp(48px, 7vw, 96px);
  font-weight: var(--fw-black);
  color: var(--text-primary);
  padding: var(--space-xl) var(--space-2xl);
  text-shadow:
    0 4px 8px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(255, 255, 255, 0.15);
  animation: teamNameReveal 0.8s ease-out 0.3s both;
}

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

/* =====================================================
 * 별 장식
 * ===================================================== */

.award-stars {
  font-size: clamp(24px, 2vw, 36px);
  letter-spacing: 0.5em;
  text-indent: 0.5em; /* letter-spacing 보정 */
  color: var(--gold-base);
  margin: var(--space-xl) 0 var(--space-md) 0; /* 월계관과 간격 확보 */
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
  animation: starsReveal 0.6s ease-out 0.5s both;
}

@keyframes starsReveal {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* =====================================================
 * 상금
 * ===================================================== */

.award-prize {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: var(--fw-bold);
  margin-top: var(--space-lg);
  background: linear-gradient(
    135deg,
    var(--gold-light) 0%,
    var(--gold-bright) 50%,
    var(--gold-light) 100%
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: goldShine 3s ease-in-out infinite, prizeReveal 0.6s ease-out 0.6s both;
  filter: drop-shadow(0 2px 10px rgba(212, 175, 55, 0.5));
}

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

/* =====================================================
 * 등급별 테마 (우수상 - 실버)
 * ===================================================== */

.slide--award[data-award-type="excellence"] {
  background: linear-gradient(
    180deg,
    #1a1a1a 0%,
    #0d0d0d 50%,
    #1a1a1a 100%
  );
}

.slide--award[data-award-type="excellence"] .light-rays {
  background:
    /* 부드러운 상단 스포트라이트 */
    radial-gradient(
      ellipse 80% 60% at 0% 0%,
      rgba(192, 192, 192, 0.1) 0%,
      rgba(192, 192, 192, 0.03) 40%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 80% 60% at 100% 0%,
      rgba(192, 192, 192, 0.08) 0%,
      rgba(192, 192, 192, 0.02) 40%,
      transparent 70%
    );
}

.slide--award[data-award-type="excellence"] .center-glow {
  background: radial-gradient(
    ellipse 60% 50% at 50% 45%,
    rgba(192, 192, 192, 0.15) 0%,
    rgba(192, 192, 192, 0.05) 40%,
    transparent 70%
  );
}

.slide--award[data-award-type="excellence"] .award-laurel {
  filter:
    drop-shadow(0 0 15px rgba(192, 192, 192, 0.3))
    saturate(0.3) brightness(1.2);
}

.slide--award[data-award-type="excellence"] .award-stars {
  color: var(--silver-base);
  text-shadow: 0 0 15px rgba(192, 192, 192, 0.5);
}

/* =====================================================
 * 등급별 테마 (대상 - 강화 골드)
 * ===================================================== */

.slide--award[data-award-type="champion"] .light-rays {
  opacity: 0.8;
}

.slide--award[data-award-type="champion"] .center-glow {
  background: radial-gradient(
    ellipse 70% 60% at 50% 45%,
    rgba(255, 215, 0, 0.25) 0%,
    rgba(212, 175, 55, 0.12) 30%,
    rgba(212, 175, 55, 0.04) 50%,
    transparent 70%
  );
}

.slide--award[data-award-type="champion"] .award-laurel {
  filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.5));
}

.slide--award[data-award-type="champion"] .award-team-name {
  background: linear-gradient(
    135deg,
    #FFFFFF 0%,
    #F5E7A3 30%,
    #FFFFFF 50%,
    #F5E7A3 70%,
    #FFFFFF 100%
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: goldShine 2s ease-in-out infinite, teamNameReveal 0.8s ease-out 0.3s both;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}

/* =====================================================
 * 활성화 상태 (슬라이드 진입 시)
 * ===================================================== */

.slide--award.is-visible .light-rays {
  opacity: 0.6;
}

.slide--award.is-visible .center-glow {
  opacity: 0.8;
  --glow-opacity: 0.8;
}

.slide--award[data-award-type="champion"].is-visible .light-rays {
  opacity: 0.8;
}

.slide--award[data-award-type="champion"].is-visible .center-glow {
  opacity: 1;
  --glow-opacity: 1;
}

/* =====================================================
 * 반응형
 * ===================================================== */

@media (max-width: 1280px) {
  .award-laurel-container {
    max-width: 600px;
  }

  .award-laurel {
    max-width: 550px;
  }

  .award-crown {
    font-size: 48px;
  }
}

@media (max-width: 960px) {
  .award-laurel-container {
    max-width: 450px;
  }

  .award-laurel {
    max-width: 400px;
  }
}

/* =====================================================
 * 시상식 타이틀 슬라이드 (section="awards"인 title 슬라이드)
 * ===================================================== */

.slide--title[data-section="awards"] {
  background: linear-gradient(
    180deg,
    #1A1209 0%,
    #0D0906 50%,
    #1A1209 100%
  ) !important;
}

/* 스포트라이트 효과 */
.slide--title[data-section="awards"]::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(
      135deg,
      rgba(255, 215, 0, 0.12) 0%,
      rgba(212, 175, 55, 0.06) 20%,
      transparent 40%
    ),
    linear-gradient(
      225deg,
      rgba(255, 215, 0, 0.1) 0%,
      rgba(212, 175, 55, 0.05) 25%,
      transparent 45%
    );
  pointer-events: none;
  z-index: 1;
}

/* 타이틀 텍스트 골드 메탈릭 */
.slide--title[data-section="awards"] .slide__hero-title,
.slide--title[data-section="awards"] .slide__hero-title .gradient-text {
  background: linear-gradient(
    135deg,
    #AA8C2C 0%,
    #D4AF37 15%,
    #F5E7A3 30%,
    #FFD700 45%,
    #F5E7A3 55%,
    #D4AF37 70%,
    #AA8C2C 85%,
    #D4AF37 100%
  ) !important;
  background-size: 300% 300% !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  animation: goldShine 4s ease-in-out infinite !important;
  filter:
    drop-shadow(0 2px 0 #8B6914)
    drop-shadow(0 4px 8px rgba(0,0,0,0.5))
    drop-shadow(0 0 40px rgba(212, 175, 55, 0.4)) !important;
}

/* 서브타이틀 */
.slide--title[data-section="awards"] .slide__subtitle {
  color: #D4AF37;
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

/* 배지 골드 스타일 */
.slide--title[data-section="awards"] .badge {
  background: linear-gradient(135deg, #1a1209 0%, #2a1f12 100%);
  border: 1px solid #D4AF37;
  color: #F5E7A3;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

/* 장식 요소 숨기기 (깔끔한 디자인) */
.slide--title[data-section="awards"] .deco {
  display: none !important;
}

/* 배경 라인도 숨기기 */
.slide--title[data-section="awards"] .slide__background {
  display: none !important;
}
