/* =====================================================
   Party-Uploader — style.css
   ===================================================== */

/* ===== Phase 1: Base + Poppins ===== */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Poppins', system-ui, sans-serif;
  background: #0a1628;
  color: #e0e1dd;
  margin: 0;
  padding: 1.5rem 1rem 3rem;
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  max-width: 540px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ===== Phase 2: Bokeh blobs ===== */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}
.blob-1 {
  width: 360px; height: 360px;
  background: #00b4d8;
  top: -80px; left: -100px;
  animation: float1 28s ease-in-out infinite;
}
.blob-2 {
  width: 240px; height: 240px;
  background: #9d4edd;
  top: 35%; right: -70px;
  animation: float2 22s ease-in-out infinite;
}
.blob-3 {
  width: 280px; height: 280px;
  background: #f72585;
  bottom: 12%; left: 15%;
  animation: float3 32s ease-in-out infinite;
}
.blob-4 {
  width: 200px; height: 200px;
  background: #4361ee;
  top: 55%; left: -50px;
  animation: float1 24s ease-in-out infinite reverse;
}
.blob-5 {
  width: 260px; height: 260px;
  background: #06d6a0;
  top: 18%; right: 5%;
  animation: float2 30s ease-in-out infinite reverse;
}
@keyframes float1 {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(35px,-45px) scale(1.06); }
  66%     { transform: translate(-25px,25px) scale(0.94); }
}
@keyframes float2 {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(-45px,35px) scale(1.1); }
  66%     { transform: translate(25px,-25px) scale(0.92); }
}
@keyframes float3 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(45px,-35px) scale(1.06); }
}

/* ===== Phase 6: Top progress bar ===== */
#top-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  opacity: 0;
  background: linear-gradient(90deg, #00b4d8, #90e0ef, #48cae4);
  background-size: 200% auto;
  animation: progress-shimmer 1.5s linear infinite;
  z-index: 1000;
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 10px rgba(72,202,228,0.7);
  transition: width 0.3s ease, opacity 0.4s;
}
@keyframes progress-shimmer {
  to { background-position: 200% center; }
}

/* ===== Phase 1: Title ===== */
.title {
  font-size: 2.6rem;
  font-weight: 900;
  margin-bottom: 0.15rem;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #90e0ef 0%, #48cae4 40%, #00b4d8 60%, #90e0ef 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 5s linear infinite;
}
@keyframes gradient-shift {
  to { background-position: 200% center; }
}

.subtitle {
  margin-bottom: 1.4rem;
  color: #9fb1c7;
  font-size: 1rem;
  font-weight: 400;
}

/* ===== Phase 4: Camera button ===== */
.camera-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #00b4d8, #0077b6);
  color: #fff;
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  border-radius: 16px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  user-select: none;
  animation: pulse-glow 2.5s ease-in-out infinite;
}
.camera-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
  animation: shimmer 3s ease-in-out infinite;
}
.camera-btn:active { transform: scale(0.97); }

@keyframes pulse-glow {
  0%,100% { box-shadow: 0 4px 18px rgba(0,180,216,0.4); }
  50%     { box-shadow: 0 4px 35px rgba(0,180,216,0.75), 0 0 50px rgba(0,180,216,0.2); }
}
@keyframes shimmer {
  0%      { left: -120%; }
  55%,100%{ left: 160%;  }
}

/* ===== Phase 3 + 5: Glassmorphism dropzone ===== */
.dropzone {
  border: none !important;
  border-radius: 18px !important;
  background: rgba(27, 38, 59, 0.55) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 2.5rem 2rem !important;
  color: #e0e1dd;
  margin-bottom: 1rem;
  position: relative;
  transition: background 0.3s;
}
.dropzone::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  border: 2px dashed rgba(72,202,228,0.6);
  pointer-events: none;
  animation: border-pulse 2.5s ease-in-out infinite;
}
.dropzone.dz-drag-hover {
  background: rgba(72,202,228,0.1) !important;
}
.dropzone.dz-drag-hover::before {
  border-color: #90e0ef;
  box-shadow: inset 0 0 30px rgba(72,202,228,0.12), 0 0 25px rgba(72,202,228,0.2);
}
@keyframes border-pulse {
  0%,100% { border-color: rgba(72,202,228,0.55); }
  50%     { border-color: rgba(144,224,239,0.9); box-shadow: inset 0 0 20px rgba(72,202,228,0.08); }
}

/* Dropzone message */
.dz-message { text-align: center; }
.dz-icon {
  display: block;
  margin: 0 auto 0.8rem;
  color: #48cae4;
  opacity: 0.8;
  width: 48px; height: 48px;
  animation: icon-float 3s ease-in-out infinite;
}
@keyframes icon-float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-6px); }
}
.dz-msg-text {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #c8d8e8;
}
.dz-msg-sub {
  display: block;
  font-size: 0.85rem;
  color: #6b8199;
  margin-top: 0.2rem;
}

/* Dropzone preview tweaks */
.dz-preview .dz-progress { background: #1a2e45 !important; }
.dz-preview .dz-upload   { background: linear-gradient(90deg,#00b4d8,#48cae4) !important; }

/* ===== Upload counter ===== */
.upload-counter {
  margin: 0.4rem 0 0.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #9fb1c7;
}

/* ===== Status feedback ===== */
.status-text {
  min-height: 1.4rem;
  margin: 0.4rem 0 0.8rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s;
}
.status-uploading { color: #48cae4; }
.status-success   { color: #52c41a; }
.status-error     { color: #ff6b6b; }

/* ===== Phase 8: Section transitions ===== */
.section-exit {
  animation: sectionOut 0.28s ease forwards;
}
.section-enter {
  animation: sectionIn 0.4s ease forwards;
}
@keyframes sectionOut {
  to { opacity: 0; transform: translateY(-10px) scale(0.98); }
}
@keyframes sectionIn {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== Phase 7: Success screen ===== */
.success-screen {
  text-align: center;
  padding: 2.5rem 1rem 2rem;
}
.success-icon-wrap {
  position: relative;
  width: 110px; height: 110px;
  margin: 0 auto 1.5rem;
}
.success-svg {
  width: 110px; height: 110px;
  display: block;
}
.success-circle {
  fill: none;
  stroke: #48cae4;
  stroke-width: 3.5;
  stroke-dasharray: 276;
  stroke-dashoffset: 276;
  animation: draw-circle 0.65s cubic-bezier(0.65,0,0.45,1) 0.1s forwards;
}
.success-check {
  fill: none;
  stroke: #52c41a;
  stroke-width: 5.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 86;
  stroke-dashoffset: 86;
  animation: draw-check 0.38s ease 0.65s forwards;
}
@keyframes draw-circle {
  to { stroke-dashoffset: 0; }
}
@keyframes draw-check {
  to { stroke-dashoffset: 0; }
}

/* Radiating rings */
.success-ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  border-radius: 50%;
  border: 2px solid rgba(72,202,228,0.5);
  opacity: 0;
}
.success-ring-1 {
  width: 110px; height: 110px;
  animation: ring-out 1.2s ease 0.8s forwards;
}
.success-ring-2 {
  width: 110px; height: 110px;
  animation: ring-out 1.2s ease 1.15s forwards;
}
@keyframes ring-out {
  0%   { transform: translate(-50%,-50%) scale(1); opacity: 0.6; }
  100% { transform: translate(-50%,-50%) scale(2.2); opacity: 0; }
}

.success-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: #90e0ef;
  margin-bottom: 0.4rem;
  letter-spacing: -0.5px;
}
.success-msg {
  font-size: 1.1rem;
  color: #9fb1c7;
  margin-bottom: 2rem;
}
.reset-btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  background: transparent;
  color: #48cae4;
  border: 2px solid #48cae4;
  border-radius: 14px;
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.reset-btn:hover {
  background: #48cae4;
  color: #0a1628;
  box-shadow: 0 4px 20px rgba(72,202,228,0.4);
}
.reset-btn:active { transform: scale(0.97); }

/* ===== Phase 3: Glassmorphism cards ===== */
.rules-card {
  background: rgba(27, 38, 59, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px;
  padding: 1.5rem;
  margin-top: 2rem;
  color: #e0e1dd;
  line-height: 1.6;
}
.rules-card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #90e0ef;
  margin-bottom: 0.8rem;
}
.rules-card ol { padding-left: 1.2rem; }
.rules-card li { margin-bottom: 0.4rem; }
.rules-card a  { color: #48cae4; }
.rules-card a:hover { color: #90e0ef; }

/* ===== Footer ===== */
.party-footer {
  margin-top: 2.5rem;
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: #e0e1dd;
  background: rgba(27, 38, 59, 0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  animation: fadeIn 1s ease;
}
.party-footer a {
  color: #48cae4;
  text-decoration: none;
  font-weight: 600;
}
.party-footer a:hover {
  color: #90e0ef;
  text-decoration: underline;
}

.site-footer {
  text-align: center;
  font-size: 0.8rem;
  color: #4a6070;
  margin-top: 1.2rem;
  padding-bottom: 1rem;
}
.site-footer a { color: #48cae4; text-decoration: none; }
.site-footer a:hover { color: #90e0ef; }

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