/* ==========================================================================
   UI COMPONENTS
   Reusable component styles (modals, buttons, overlays)
   ========================================================================== */

/* Love Note Modal */
.love-note-button {
  margin-top: var(--spacing-lg);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--border-radius-xl);
  color: white;
  font-size: 1.1em;
  font-family: var(--font-primary);
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}

.love-note-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.love-note-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: white;
  padding: var(--spacing-2xl);
  border-radius: var(--border-radius-lg);
  max-width: 90%;
  width: 400px;
  text-align: center;
  z-index: var(--z-modal);
  transition: transform 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.love-note-modal.show {
  transform: translate(-50%, -50%) scale(1);
}

.love-note-modal p {
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
  font-size: 1.1em;
}

.love-note-modal .close-button {
  margin-top: var(--spacing-md);
  background: #fff2f8;
  color: #ff4e91;
  border: none;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  font-family: var(--font-primary);
  font-weight: 600;
  transition: all 0.3s ease;
}

.love-note-modal .close-button:hover {
  background: #ffe6f2;
  transform: translateY(-1px);
}

/* Password Overlay */
.password-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--theme-background);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: var(--z-overlay);
  transition: opacity 0.8s ease;
}

.password-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.password-overlay h2 {
  font-family: var(--font-decorative);
  font-size: 2.8em;
  margin-bottom: var(--spacing-lg);
  color: white;
  text-shadow: 2px 2px 4px var(--theme-primary);
}

.password-overlay input {
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--border-radius-sm);
  border: none;
  font-size: 1.1em;
  text-align: center;
  font-family: var(--font-primary);
  background: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-md);
  min-width: 200px;
}

.password-overlay input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.password-overlay button {
  margin-top: var(--spacing-md);
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--border-radius-sm);
  border: none;
  background: #fff2f8;
  color: #ff4e91;
  cursor: pointer;
  font-size: 1.1em;
  font-family: var(--font-primary);
  font-weight: 600;
  transition: all 0.3s ease;
}

.password-overlay button:hover {
  background: #ffe6f2;
  transform: translateY(-1px);
}

.joke-text {
  margin-top: var(--spacing-lg);
  font-size: 1.2em;
  color: var(--theme-text-primary);
  text-align: center;
  max-width: 400px;
  line-height: 1.5;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .theme-selector {
    max-width: 90%;
    padding: var(--spacing-md);
  }
  
  .theme-options {
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .theme-option {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.9em;
    min-width: 100px;
    flex: 1;
    max-width: 130px;
  }
  
  .password-overlay h2 {
    font-size: 2.2em;
    margin-bottom: var(--spacing-md);
  }
  
  .password-overlay input {
    min-width: 250px;
    padding: var(--spacing-md);
    font-size: 1.2em;
  }
  
  .love-note-button {
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 1em;
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .theme-selector {
    padding: var(--spacing-sm);
  }
  
  .theme-selector h3 {
    font-size: 1.3em;
    margin-bottom: var(--spacing-sm);
  }
  
  .theme-options {
    gap: var(--spacing-xs);
    flex-direction: column;
    align-items: center;
  }
  
  .theme-option {
    width: 100%;
    max-width: 200px;
    padding: var(--spacing-sm);
    font-size: 0.85em;
  }
  
  .password-overlay h2 {
    font-size: 1.8em;
  }
  
  .password-overlay input {
    min-width: 220px;
    font-size: 1.1em;
  }
  
  .love-note-button {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.95em;
    max-width: 250px;
  }
  
  .joke-text {
    font-size: 1em;
    max-width: 300px;
    line-height: 1.4;
  }
}

@media (max-width: 320px) {
  .theme-selector {
    padding: var(--spacing-xs);
  }
  
  .theme-selector h3 {
    font-size: 1.1em;
  }
  
  .theme-option {
    max-width: 180px;
    font-size: 0.8em;
    padding: var(--spacing-xs) var(--spacing-sm);
  }
  
  .password-overlay h2 {
    font-size: 1.5em;
  }
  
  .password-overlay input {
    min-width: 180px;
    font-size: 1em;
  }
  
  .love-note-button {
    max-width: 200px;
    font-size: 0.9em;
  }
}
