﻿:root {
  --bg-top: #5b2d3e;
  --bg-bottom: #2f1621;
  --card: rgba(255, 245, 236, 0.92);
  --text: #4b1f30;
  --accent: #6f1737;
  --accent-2: #b48769;
  --shadow: 0 16px 40px rgba(83, 21, 45, 0.2);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Montserrat", sans-serif;
  color: var(--text);
  background: linear-gradient(160deg, var(--bg-top), var(--bg-bottom));
  position: relative;
}

.background-glow {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.12), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(111, 23, 55, 0.32), transparent 42%),
    radial-gradient(circle at 50% 90%, rgba(180, 135, 105, 0.16), transparent 36%);
  pointer-events: none;
}

.container {
  width: min(1500px, 96vw);
  margin: 0 auto;
  padding: 2rem 0 1.5rem;
}

.hero {
  text-align: center;
  margin-bottom: 1.4rem;
}

.verse {
  font-style: italic;
  margin: 0;
}

h1,
h2 {
  font-family: "Cinzel", serif;
  letter-spacing: 0.5px;
}

h1 {
  margin: 0.65rem 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.subtitle {
  margin: 0;
  opacity: 0.88;
}

.upload-card,
.carousel-card {
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(5px);
}

.upload-card {
  position: relative;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.upload-card h2 {
  margin-top: 0;
}

#photoInput {
  display: none;
}

.upload-btn,
button {
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.upload-btn,
button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
}

.upload-btn:hover,
button:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.hint {
  margin: 0.75rem 0 0.3rem;
  opacity: 0.8;
}

.status {
  margin: 0.3rem 0 0.9rem;
  font-weight: 500;
  color: #6f1737;
}

.status.error {
  color: #8f2f2f;
}

.actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.mini-toggle {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.72rem;
  line-height: 1;
  background: #6f1737;
  color: #fff;
}

.mini-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.72rem;
  background: #6f1737;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
  display: none;
}

.upload-hidden #uploadCard {
  display: none;
}

.upload-hidden .mini-fab {
  display: inline-block;
}

.carousel-card {
  padding: clamp(0.8rem, 1.2vw, 1.1rem);
}

.carousel {
  position: relative;
  height: clamp(460px, 74vh, 900px);
  border-radius: 14px;
  overflow: hidden;
  background: #260d16;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.empty-state {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
  color: #7a5443;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d9bfab;
}

.dot.active {
  background: var(--accent-2);
}

@media (max-width: 700px) {
  .container {
    width: min(96vw, 760px);
    padding-top: 1.2rem;
  }

  .upload-card,
  .carousel-card {
    border-radius: 14px;
  }

  .carousel {
    height: clamp(300px, 57vh, 520px);
  }

  .mini-fab {
    right: 0.7rem;
    bottom: 0.7rem;
    font-size: 0.68rem;
    padding: 0.4rem 0.65rem;
  }
}

@media (min-width: 701px) and (max-width: 1100px) {
  .container {
    width: 94vw;
  }

  .carousel {
    height: clamp(420px, 66vh, 760px);
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .carousel {
    height: clamp(250px, 52vh, 420px);
  }
}
