:root {
  --primary-red: #dc2626;
  --dark-red: #991b1b;
  --light-red: #ef4444;
  --black: #0a0a0a;
  --dark-gray: #1a1a1a;
  --medium-gray: #2a2a2a;
  --light-gray: #404040;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --shadow: rgba(0, 0, 0, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  background: radial-gradient(ellipse at center, var(--dark-red) 0%, var(--black) 70%);
  font-family: 'Montserrat', sans-serif;
  color: var(--white);
  overflow-x: hidden;
  position: relative;
}

/* Animação de estrelas no fundo */
.stars, .stars2, .stars3 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.stars {
  background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="0.5" fill="white" opacity="0.8"/><circle cx="80" cy="40" r="0.3" fill="white" opacity="0.6"/><circle cx="40" cy="80" r="0.4" fill="white" opacity="0.7"/><circle cx="90" cy="10" r="0.2" fill="white" opacity="0.5"/><circle cx="10" cy="90" r="0.3" fill="white" opacity="0.6"/></svg>') repeat;
  animation: sparkle 20s linear infinite;
}

.stars2 {
  background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="60" cy="30" r="0.4" fill="red" opacity="0.4"/><circle cx="30" cy="70" r="0.2" fill="red" opacity="0.3"/><circle cx="70" cy="70" r="0.3" fill="red" opacity="0.5"/></svg>') repeat;
  animation: sparkle 25s linear infinite reverse;
}

.stars3 {
  background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="0.2" fill="white" opacity="0.3"/><circle cx="15" cy="60" r="0.3" fill="white" opacity="0.4"/><circle cx="85" cy="80" r="0.2" fill="white" opacity="0.5"/></svg>') repeat;
  animation: sparkle 30s linear infinite;
}

@keyframes sparkle {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-100px) rotate(360deg); }
}

.container {
  position: relative;
  z-index: 1;
  max-width: 500px;
  margin: 0 auto;
  padding: 2rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.profile-section {
  text-align: center;
  margin-bottom: 1rem;
}

.avatar {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 0 30px rgba(220, 38, 38, 0.4),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
  border: 3px solid var(--glass-border);
  transition: all 0.3s ease;
}

.avatar:hover {
  transform: scale(1.05);
  box-shadow: 
    0 0 40px rgba(220, 38, 38, 0.6),
    inset 0 0 20px rgba(255, 255, 255, 0.2);
}

.avatar-letter {
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  z-index: 2;
  position: relative;
}

.avatar-glow {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--primary-red), var(--light-red), var(--primary-red));
  opacity: 0.3;
  animation: rotate 4s linear infinite;
  z-index: -1;
}

@keyframes rotate {
  to { transform: rotate(360deg); }
}

.name {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-red);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}

.subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 300;
  letter-spacing: 1px;
}

.content-section {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.date-section {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
}

.date-label {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.8rem;
  font-weight: 500;
}

.date-input {
  width: 100%;
  padding: 0.8rem;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid var(--glass-border);
  border-radius: 12px;
  color: var(--white);
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  transition: all 0.3s ease;
}

.date-input:focus {
  outline: none;
  border-color: var(--primary-red);
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
}

.button-section {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
}

.rainbow-btn {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: var(--dark-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  color: var(--black);
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.3),
    inset 0 0 20px rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  overflow: hidden;
}

.rainbow-btn::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: conic-gradient(
    from 0deg,
    #ff0000, #ff8000, #ffff00, #80ff00,
    #00ff00, #00ff80, #00ffff, #0080ff,
    #0000ff, #8000ff, #ff00ff, #ff0080,
    #ff0000
  );
  animation: rainbow-spin 3s linear infinite;
  z-index: -1;
}

.rainbow-btn::after {
  content: '';
  position: absolute;
  inset: 8px;
  background: var(--light-red);
  border-radius: 50%;
  z-index: 0;
}

.btn-text {
  position: relative;
  z-index: 2;
  font-weight: 600;
  text-shadow: none;
}

.rainbow-btn:hover {
  transform: scale(1.05);
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.4),
    inset 0 0 30px rgba(255, 255, 255, 0.3);
}

.rainbow-btn:active {
  transform: scale(0.95);
}

.rainbow-btn.pulse {
  animation: btn-pulse 0.6s ease-out;
}

@keyframes rainbow-spin {
  to { transform: rotate(360deg); }
}

@keyframes btn-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.reveal-section {
  display: none;
  animation: fadeInUp 0.8s ease-out;
}

.reveal-section.show {
  display: block;
}

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

.message-card {
  background: var(--glass);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.message-content {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
  white-space: pre-line;
  text-align: justify;
}

.timer-card {
  background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 
    0 10px 30px rgba(220, 38, 38, 0.3),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.timer-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.timer-display {
  font-family: 'Montserrat', monospace;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 1px;
}

.footer {
  margin-top: 2rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.heart-animation {
  animation: heartbeat 2s ease-in-out infinite;
}

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

/* Responsividade */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
    gap: 1.5rem;
  }
  
  .avatar {
    width: 100px;
    height: 100px;
  }
  
  .avatar-letter {
    font-size: 2.5rem;
  }
  
  .name {
    font-size: 2rem;
  }
  
  .rainbow-btn {
    width: 120px;
    height: 120px;
    font-size: 0.9rem;
  }
  
  .message-card {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0.5rem;
  }
  
  .avatar {
    width: 80px;
    height: 80px;
  }
  
  .avatar-letter {
    font-size: 2rem;
  }
  
  .name {
    font-size: 1.8rem;
  }
  
  .rainbow-btn {
    width: 100px;
    height: 100px;
    font-size: 0.8rem;
  }
}

img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
}