/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --pink-soft: #f8b4d9;
  --pink-mid: #f472b6;
  --pink-deep: #ec4899;
  --rose: #f43f5e;
  --gold: #fbbf24;
  --cream: #fef3f8;
  --white: #ffffff;
  --shadow: rgba(236, 72, 153, 0.25);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Quicksand', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: linear-gradient(135deg, #fef3f8 0%, #fce7f3 30%, #fbcfe8 60%, #f9a8d4 100%);
  min-height: 100vh;
  overflow-x: hidden;
  color: #831843;
}

/* ===== Tela de Senha ===== */
.lock-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #fdf2f8 0%, #fce7f3 40%, #fbcfe8 100%);
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.lock-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.lock-content {
  text-align: center;
  padding: 2rem;
  max-width: 380px;
}

.lock-content h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 700;
  color: var(--pink-deep);
  margin-bottom: 0.5rem;
  animation: fadeInDown 0.8s ease;
}

.lock-subtitle {
  font-size: 1rem;
  color: var(--rose);
  margin-bottom: 2rem;
  animation: fadeInDown 0.8s ease 0.2s both;
}

.lock-hearts {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  animation: fadeInDown 0.8s ease 0.1s both;
}

.mini-heart {
  font-size: 1.5rem;
  animation: pulse 1.5s ease-in-out infinite;
}

.mini-heart:nth-child(2) { animation-delay: 0.2s; }
.mini-heart:nth-child(3) { animation-delay: 0.4s; }

.password-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  animation: fadeInUp 0.8s ease 0.3s both;
}

#password-input {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.9rem 1rem;
  border: 2px solid var(--pink-soft);
  border-radius: 999px;
  background: var(--white);
  color: #831843;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

#password-input:focus {
  border-color: var(--pink-deep);
  box-shadow: 0 0 0 4px var(--shadow);
}

#password-input::placeholder {
  color: #c084a8;
}

#unlock-btn {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.9rem 1.5rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink-deep), var(--rose));
  color: var(--white);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s;
}

#unlock-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px var(--shadow);
}

#unlock-btn:active {
  transform: scale(0.98);
}

.wrong-password {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--rose);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s, transform 0.3s;
}

.wrong-password.show {
  opacity: 1;
  transform: translateY(0);
  animation: shake 0.5s ease;
}

/* Floating hearts on lock screen */
.floating-hearts {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.floating-hearts .float-heart {
  position: absolute;
  font-size: 1.2rem;
  opacity: 0.6;
  animation: floatUp 8s linear infinite;
}

@keyframes floatUp {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.4;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

/* ===== Main Content ===== */
.main-content {
  min-height: 100vh;
  padding: 2rem 1rem 4rem;
  transition: opacity 0.6s ease;
}

.main-content.hidden {
  display: none;
}

/* Celebration container (confetti/hearts) */
.celebration-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  overflow: hidden;
}

.celebration-item {
  position: absolute;
  font-size: 1.5rem;
  animation: celebrateFall 4s ease-out forwards;
  pointer-events: none;
}

.click-hearts-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 45;
  overflow: hidden;
}

.click-hearts-overlay .floating-click-heart {
  position: fixed;
  font-size: 1.4rem;
  animation: floatClickHeart 2s ease-out forwards;
  pointer-events: none;
}

@keyframes floatClickHeart {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -150%) scale(1.2);
    opacity: 0;
  }
}

@keyframes celebrateFall {
  0% {
    transform: translateY(-20px) scale(1) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) scale(0.5) rotate(720deg);
    opacity: 0;
  }
}

/* Hero */
.hero {
  text-align: center;
  padding: 3rem 1rem 4rem;
  position: relative;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 8vw, 4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-title .line {
  display: block;
  animation: fadeInUp 0.8s ease both;
}

.hero-title .line:nth-child(1) { animation-delay: 0.1s; }
.hero-title .line:nth-child(2) { animation-delay: 0.3s; }
.hero-title .line:nth-child(3) { animation-delay: 0.5s; }

.hero-title .highlight {
  background: linear-gradient(135deg, var(--pink-deep), var(--rose));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: clamp(2.8rem, 10vw, 5rem);
}

.hero-from {
  font-size: 1.2rem;
  color: var(--rose);
  margin-top: 1rem;
  animation: fadeInUp 0.8s ease 0.7s both;
}

.hero-hearts {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-hearts .h {
  position: absolute;
  font-size: 1.5rem;
  opacity: 0.5;
  animation: floatAround 12s ease-in-out infinite;
}

@keyframes floatAround {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(20px, -30px) rotate(90deg);
  }
  50% {
    transform: translate(-15px, -60px) rotate(180deg);
  }
  75% {
    transform: translate(10px, -30px) rotate(270deg);
  }
}

/* Messages section */
.messages {
  max-width: 900px;
  margin: 0 auto 4rem;
}

.messages h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  text-align: center;
  color: var(--pink-deep);
  margin-bottom: 2rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: 0 10px 40px var(--shadow);
  border: 1px solid rgba(248, 180, 217, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 50px var(--shadow);
}

.card-heart {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.75rem;
}

.card p {
  font-size: 1rem;
  line-height: 1.6;
  color: #701a75;
}

.card-long {
  grid-column: 1 / -1;
}

.card-long p {
  font-size: 1.05rem;
  line-height: 1.75;
}

/* ===== Bolinho de aniversário ===== */
.cake-section {
  text-align: center;
  padding: 2rem 1rem 3rem;
}

.cake-hint {
  font-size: 0.95rem;
  color: var(--pink-deep);
  margin-bottom: 1rem;
  opacity: 0.9;
  animation: pulse 2s ease-in-out infinite;
}

.cake-wrap {
  display: inline-flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 200px;
}

.cake {
  position: relative;
  width: 140px;
  height: 120px;
}

.cake-base {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 50px;
  background: linear-gradient(180deg, #f472b6 0%, #ec4899 50%, #db2777 100%);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.4);
}

.cake-top {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 45px;
  background: linear-gradient(180deg, #fdf2f8 0%, #fce7f3 40%, #fbcfe8 100%);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.cake-candle {
  position: absolute;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  z-index: 5;
  padding: 4px;
  border-radius: 4px;
  transition: transform 0.2s;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
}

.cake-candle:hover {
  transform: translateX(-50%) scale(1.1);
}

.candle-stick {
  width: 8px;
  height: 32px;
  background: linear-gradient(90deg, #fef3c7, #fde68a);
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.3);
}

.candle-flame {
  width: 16px;
  height: 24px;
  margin-bottom: 2px;
  background: linear-gradient(180deg, #fef08a 0%, #fbbf24 40%, #f59e0b 70%, #ea580c 100%);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  box-shadow: 0 0 12px #fbbf24, 0 0 24px rgba(251, 191, 36, 0.5);
  animation: flameFlicker 0.15s ease-in-out infinite alternate;
}

.candle-flame.off {
  width: 12px;
  height: 12px;
  background: linear-gradient(180deg, #9ca3af 0%, #6b7280 100%);
  box-shadow: none;
  animation: none;
  border-radius: 50%;
}

@keyframes flameFlicker {
  from { transform: scale(1) translateY(0); }
  to { transform: scale(1.05) translateY(-1px); }
}

/* Heart rain / click area */
.heart-rain {
  text-align: center;
  padding: 2rem 1rem;
}

/* Navegação para outras surpresas */
.nav-surpresas {
  text-align: center;
  padding: 2rem 1rem 3rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.nav-surpresas h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  color: var(--pink-deep);
  margin-bottom: 0.5rem;
}

.nav-surpresas-text {
  font-size: 0.95rem;
  color: #701a75;
  margin-bottom: 1.5rem;
}

.nav-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.nav-btn {
  display: inline-block;
  padding: 0.85rem 1.25rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--pink-deep);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid var(--pink-soft);
  box-shadow: 0 4px 16px var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.nav-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px var(--shadow);
  background: var(--white);
}

.heart-rain-text {
  font-size: 0.95rem;
  color: var(--pink-deep);
  margin-bottom: 1rem;
  opacity: 0.9;
}

.heart-rain-area {
  min-height: 200px;
  position: relative;
}

.heart-rain-area .click-heart {
  position: absolute;
  font-size: 2rem;
  pointer-events: none;
  animation: clickHeart 2s ease-out forwards;
}

@keyframes clickHeart {
  0% {
    transform: scale(0) translate(-50%, -50%);
    opacity: 1;
  }
  50% {
    transform: scale(1.5) translate(-50%, -50%);
    opacity: 1;
  }
  100% {
    transform: scale(1) translate(-50%, -50%);
    opacity: 0;
  }
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--pink-deep);
  font-size: 0.95rem;
}

.footer-date {
  margin-top: 0.25rem;
  font-weight: 600;
}

/* ===== Surpresa escondida ===== */
.secret-trigger {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(236, 72, 153, 0.2);
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 40;
  transition: transform 0.2s, background 0.2s;
  box-shadow: 0 4px 12px var(--shadow);
}

.secret-trigger:hover {
  transform: scale(1.15);
  background: rgba(236, 72, 153, 0.35);
}

.secret-trigger:active {
  transform: scale(0.95);
}

.secret-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.secret-modal.open {
  opacity: 1;
  visibility: visible;
}

.secret-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(131, 24, 67, 0.4);
  backdrop-filter: blur(6px);
}

.secret-modal-content {
  position: relative;
  max-width: 420px;
  max-height: 85vh;
  overflow-y: auto;
  background: linear-gradient(180deg, #fdf2f8 0%, #fce7f3 100%);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 24px 60px rgba(131, 24, 67, 0.25);
  border: 1px solid rgba(248, 180, 217, 0.6);
  animation: modalPop 0.4s ease;
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.secret-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(236, 72, 153, 0.15);
  color: var(--pink-deep);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.secret-modal-close:hover {
  background: rgba(236, 72, 153, 0.3);
  transform: scale(1.1);
}

.secret-modal h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--pink-deep);
  margin-bottom: 1.25rem;
  padding-right: 2rem;
}

.secret-modal-body p {
  font-size: 1rem;
  line-height: 1.75;
  color: #701a75;
  margin-bottom: 1rem;
}

.secret-modal-body p:last-child {
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 600px) {
  .lock-content {
    padding: 1rem;
  }

  .hero {
    padding: 2rem 1rem 3rem;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .cake {
    width: 120px;
    height: 100px;
  }

  .cake-base { width: 100px; height: 44px; }
  .cake-top { width: 110px; height: 40px; bottom: 42px; }
  .cake-candle { bottom: 78px; }
  .candle-stick { height: 26px; }

  .secret-trigger {
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}
