/* Clean Styles - Main Page Only (No Admin Features) */

/* CSS Variables - Elementor WordPress Theme */
:root {
  --primary-color: #6EC1E4;
  --secondary-color: #54595F;
  --accent-color: #CE5C5C;
  --background-color: #FFFFFF;
  --text-color: #232629;
  --text-light: #54595F;
  --text-bright: #FFFFFF;
  --border-color: #E0E0E0;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --container-bg: #FAFAFA;
  --card-bg: #FFFFFF;
  --hover-bg: #F5F5F5;
}

/* Dark Mode - Elementor Style */
[data-theme="dark"] {
  --primary-color: #6EC1E4;
  --secondary-color: #54595F;
  --accent-color: #CE5C5C;
  --background-color: #1A1A1A;
  --text-color: #FFFFFF;
  --text-light: #B0B0B0;
  --text-bright: #FFFFFF;
  --border-color: #333333;
  --shadow-color: rgba(0, 0, 0, 0.3);
  --container-bg: #2A2A2A;
  --card-bg: #333333;
  --hover-bg: #444444;
}

/* Elementor Blue Theme */
[data-theme="elementor-blue"] {
  --primary-color: #6EC1E4;
  --secondary-color: #54595F;
  --accent-color: #4A90E2;
  --background-color: #F8F9FA;
  --text-color: #232629;
  --text-light: #54595F;
  --text-bright: #FFFFFF;
  --border-color: #E0E0E0;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --container-bg: #FFFFFF;
  --card-bg: #FFFFFF;
  --hover-bg: #F5F5F5;
}

/* Elementor Green Theme */
[data-theme="elementor-green"] {
  --primary-color: #8BC34A;
  --secondary-color: #54595F;
  --accent-color: #4CAF50;
  --background-color: #F8F9FA;
  --text-color: #232629;
  --text-light: #54595F;
  --text-bright: #FFFFFF;
  --border-color: #E0E0E0;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --container-bg: #FFFFFF;
  --card-bg: #FFFFFF;
  --hover-bg: #F5F5F5;
}

/* Elementor Purple Theme */
[data-theme="elementor-purple"] {
  --primary-color: #9C27B0;
  --secondary-color: #54595F;
  --accent-color: #E91E63;
  --background-color: #F8F9FA;
  --text-color: #232629;
  --text-light: #54595F;
  --text-bright: #FFFFFF;
  --border-color: #E0E0E0;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --container-bg: #FFFFFF;
  --card-bg: #FFFFFF;
  --hover-bg: #F5F5F5;
}

/* Elementor Orange Theme */
[data-theme="elementor-orange"] {
  --primary-color: #FF9800;
  --secondary-color: #54595F;
  --accent-color: #FF5722;
  --background-color: #F8F9FA;
  --text-color: #232629;
  --text-light: #54595F;
  --text-bright: #FFFFFF;
  --border-color: #E0E0E0;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --container-bg: #FFFFFF;
  --card-bg: #FFFFFF;
  --hover-bg: #F5F5F5;
}

/* Reset and Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: var(--background-color);
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  color: var(--text-color);
  overflow-x: hidden;
  line-height: 1.6;
  transition: background 0.3s ease;
}

/* Time-based background gradients - Pink & Red Theme */
.morning-gradient {
  background: linear-gradient(135deg, #ffe0ec 0%, #ffb3d9 25%, #ff6b9d 50%, #ff4757 75%, #ee5a24 100%);
  animation: gradientShift 8s ease-in-out infinite;
}

.afternoon-gradient {
  background: linear-gradient(135deg, #ffb3d9 0%, #ff6b9d 30%, #ff4757 60%, #ee5a24 100%);
  animation: gradientShift 10s ease-in-out infinite;
}

.evening-gradient {
  background: linear-gradient(135deg, #ff6b9d 0%, #ff4757 25%, #ee5a24 50%, #c44569 75%, #2c2c54 100%);
  animation: gradientShift 12s ease-in-out infinite;
}

.night-gradient {
  background: linear-gradient(135deg, #2c2c54 0%, #40407a 25%, #ff4757 50%, #ff6b9d 75%, #ffb3d9 100%);
  animation: gradientShift 15s ease-in-out infinite;
}

.birthday-gradient {
  background: linear-gradient(135deg, #ff4757 0%, #ff6b9d 20%, #ffb3d9 40%, #ff4757 60%, #ee5a24 80%, #ff6b9d 100%);
  animation: birthdayPulse 4s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-size: 100% 100%; }
  25% { background-size: 110% 110%; }
  50% { background-size: 120% 120%; }
  75% { background-size: 110% 110%; }
}

@keyframes birthdayPulse {
  0%, 100% { background-size: 100% 100%; }
  50% { background-size: 120% 120%; }
}

/* Main Layout - Elementor Container Style */
.scene {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  gap: 2.8rem;
  max-width: 1140px;
  margin: 0 auto;
}

/* Typography */
.verse {
  text-align: center;
  max-width: 520px;
  animation: fadeInUp 1.5s ease;
}

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

.verse .label {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 1.2rem;
}

.verse h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 7vw, 4rem);
  line-height: 1.2;
  color: var(--text-color);
  margin-bottom: 0.8rem;
}

.verse h1 em {
  font-style: italic;
  color: var(--primary-color);
}

.verse p {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-light);
}

/* Flowers */
.flowers {
  display: flex;
  gap: 1.4rem;
  align-items: center;
  opacity: 0.65;
}

/* Date Pill */
.date-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-color);
  border: none;
  border-radius: 30px;
  padding: 8px 20px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--text-bright);
  text-transform: uppercase;
  box-shadow: 0 2px 4px var(--shadow-color);
}

.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary-color);
  display: inline-block;
}

/* Countdown */
.countdown-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.countdown-wrap .sub {
  font-size: 10.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--primary-color);
}

.countdown {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
}

.unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.unit .num {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(3rem, 11vw, 5.5rem);
  line-height: 1;
  color: var(--text-color);
  min-width: 1.8ch;
  text-align: center;
  transition: transform 0.3s ease;
}

.unit:hover .num {
  transform: scale(1.05);
}

.unit .lbl {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-light);
}

.sep {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 3rem;
  color: var(--text-light);
  line-height: 1;
  padding-bottom: 0.9rem;
}

/* Birthday Message */
.birthday-msg {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  text-align: center;
}

.birthday-msg.show {
  display: flex;
}

.birthday-msg h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 8vw, 3.8rem);
  color: var(--text-color);
  line-height: 1.2;
}

.birthday-msg p {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--text-light);
}

.celebrate-btn {
  margin-top: 1rem;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--text-bright);
  border: none;
  border-radius: 5px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--shadow-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.celebrate-btn:hover {
  background: #b07860;
  transform: translateY(-2px);
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 340px;
}

.divider span {
  flex: 1;
  height: 0.5px;
  background: var(--border-color);
}

.divider svg {
  flex-shrink: 0;
}

/* Wish Card */
.wish {
  max-width: 600px;
  text-align: center;
  padding: 40px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--card-bg);
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px var(--shadow-color);
}

.wish:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--shadow-color);
}

.wish::before {
  content: '\201C';
  font-family: 'Poppins', sans-serif;
  font-size: 4rem;
  color: var(--primary-color);
  position: absolute;
  top: -10px;
  left: 20px;
  line-height: 1;
  opacity: 0.3;
}

.wish p {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text-color);
  position: relative;
  z-index: 1;
  margin-bottom: 1.5rem;
}

.wish .author {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--primary-color);
}

/* Memory Timeline */
.memory-timeline {
  max-width: 600px;
  width: 100%;
  margin: 2rem 0;
}

.timeline-container {
  position: relative;
  padding: 2rem 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary-color) 0%, #f0d8c8 100%);
  transform: translateX(-50%);
}

.memory-item {
  position: relative;
  margin: 1.5rem 0;
  opacity: 0;
  animation: slideIn 0.6s ease forwards;
}

.memory-item:nth-child(odd) {
  text-align: right;
  padding-right: 55%;
}

.memory-item:nth-child(even) {
  text-align: left;
  padding-left: 55%;
}

.memory-dot {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  background: var(--primary-color);
  border: 3px solid #fffaf7;
  border-radius: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.memory-item:nth-child(odd) .memory-dot {
  right: 50%;
  transform: translateX(50%) translateY(-50%);
}

.memory-item:nth-child(even) .memory-dot {
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
}

.memory-content {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px var(--shadow-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.memory-content:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--shadow-color);
}

.memory-date {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.memory-text {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color);
}

.add-memory-btn {
  display: block;
  margin: 2rem auto 0;
  padding: 12px 30px;
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 5px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.add-memory-btn:hover {
  background: var(--primary-color);
  color: white;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Message Wall */
.message-wall {
  max-width: 460px;
  width: 100%;
}

.message-wall h3 {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

#messageForm {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 1.8rem;
}

#messageInput {
  padding: 14px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
  min-height: 92px;
  background: #fffaf7;
}

#messageForm button {
  padding: 15px 30px;
  background: var(--primary-color);
  color: var(--text-bright);
  border: none;
  border-radius: 5px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 10px var(--shadow-color);
}

#messageForm button:hover {
  background: #b07860;
}

.message {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  color: var(--text-color);
  font-size: 1rem;
  line-height: 1.6;
  box-shadow: 0 1px 3px var(--shadow-color);
}

/* Share Button */
.share-btn {
  padding: 15px 35px;
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 5px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 10px var(--shadow-color);
}

.share-btn:hover {
  background: var(--primary-color);
  color: white;
}

/* Theme Toggle Button - Consistent Styling */
.theme-toggle {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 52px;
  height: 52px;
  background: #FFFFFF;
  border: 2px solid #E0E0E0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  cursor: pointer;
  z-index: 200;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  border-color: #6EC1E4;
}

.theme-toggle:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Music Toggle Button - Consistent Styling */
.music-toggle {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 52px;
  height: 52px;
  background: #FFFFFF;
  border: 2px solid #E0E0E0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  cursor: pointer;
  z-index: 200;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.music-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  border-color: #6EC1E4;
}

.music-toggle.playing {
  background: #6EC1E4;
  color: white;
  border-color: #6EC1E4;
}

.music-toggle:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Admin Link */
.admin-link {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #FFFFFF;
  color: #232629;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border: 1px solid #E0E0E0;
  font-family: 'Poppins', sans-serif;
}

.admin-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border-color: #6EC1E4;
}

/* Fixed Position Elements - Organized by z-index */
/* Particles - z-index: 0 */
.petal, .star, .heart {
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

.petal {
  width: 10px;
  height: 14px;
  border-radius: 50% 0 50% 0;
  opacity: 0;
  animation: fall linear infinite;
}

.star {
  font-size: 12px;
  color: #ffd700;
  opacity: 0;
  animation: twinkle linear infinite;
}

.heart {
  width: 12px;
  height: 12px;
  background: #ff6b9d;
  transform: rotate(-45deg);
  opacity: 0;
  animation: float linear infinite;
}

.heart::before,
.heart::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background: #ff6b9d;
  border-radius: 50%;
}

.heart::before {
  top: -6px;
  left: 0;
}

.heart::after {
  top: 0;
  right: -6px;
}

@keyframes fall {
  0%   { transform: translateY(-20px) rotate(0deg); opacity: 0.7; }
  80%  { opacity: 0.5; }
  100% { transform: translateY(105vh) rotate(360deg); opacity: 0; }
}

@keyframes twinkle {
  0%   { transform: translateY(-20px) rotate(0deg) scale(0); opacity: 0; }
  50%  { opacity: 1; }
  100% { transform: translateY(105vh) rotate(180deg) scale(1); opacity: 0; }
}

@keyframes float {
  0%   { transform: translateY(-20px) rotate(-45deg) translateX(0); opacity: 0; }
  25%  { opacity: 0.8; }
  75%  { opacity: 0.6; }
  100% { transform: translateY(105vh) rotate(-45deg) translateX(50px); opacity: 0; }
}

/* Music Toggle - z-index: 200 */
.music-toggle {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 52px;
  height: 52px;
  background: #fffaf7;
  border: 1.5px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  cursor: pointer;
  z-index: 200;
  box-shadow: 0 6px 20px var(--shadow-color);
  transition: all 0.3s ease;
}

.music-toggle.playing {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: scale(1.08);
}

/* Theme Toggle - z-index: 200 */
.theme-toggle {
  position: fixed;
  bottom: 90px;
  left: 28px;
  width: 52px;
  height: 52px;
  background: var(--primary-color);
  color: var(--background-color);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 200;
  transition: all 0.3s ease;
  font-size: 1.5rem;
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px var(--shadow-color);
}

/* Scroll Fade-in Animation */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .scene {
    padding: 2rem 1rem 4rem;
    gap: 2rem;
  }
  
  .memory-item:nth-child(odd),
  .memory-item:nth-child(even) {
    text-align: left;
    padding-left: 60px;
    padding-right: 0;
  }
  
  .memory-item:nth-child(odd) .memory-dot,
  .memory-item:nth-child(even) .memory-dot {
    left: 30px;
    right: auto;
    transform: translateX(-50%) translateY(-50%);
  }
  
  .timeline-line {
    left: 30px;
  }
  
  .unit .num {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }
  
  .verse h1 {
    font-size: clamp(2rem, 6vw, 3rem);
  }
}

@media (max-width: 480px) {
  .scene {
    padding: 1.5rem 0.75rem 3rem;
    gap: 1.5rem;
  }
  
  .countdown {
    gap: 0.5rem;
  }
  
  .unit .num {
    font-size: clamp(1.5rem, 7vw, 2.5rem);
  }
  
  .memory-content {
    padding: 0.75rem 1rem;
  }
  
  .wish {
    padding: 1.5rem 1.75rem;
  }
}

/* Touch Optimization */
@media (pointer: coarse) {
  .celebrate-btn, .share-btn, .add-memory-btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .memory-content {
    padding: 1.25rem 1.5rem;
  }
  
  .music-toggle, .theme-toggle {
    width: 60px;
    height: 60px;
  }
}

/* Accessibility */
@media (prefers-contrast: high) {
  body { background: white; color: black; }
  .wish, .memory-content, .message { background: white; border: 2px solid black; }
  .celebrate-btn, .share-btn, .add-memory-btn { border: 2px solid black; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { 
    animation-duration: 0.01ms !important; 
    animation-iteration-count: 1 !important; 
    transition-duration: 0.01ms !important; 
  }
}

/* Print Styles */
@media print {
  .music-toggle, .theme-toggle, .admin-link {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .petal, .star, .heart {
    display: none !important;
  }
}
