/**
 * 扩展功能样式
 * 相册、计时器、主题切换、时间轴、生日倒计时、相识计时器
 */

/* ==================== 恋爱计时器 ==================== */
.timer-section {
  padding: 60px 20px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  margin: 40px auto;
  max-width: 700px;
  box-shadow: 0 10px 40px rgba(183, 110, 121, 0.1);
  animation: slideUp 0.8s ease forwards;
}

.timer-title {
  text-align: center;
  font-size: 1.5rem;
  color: var(--deep-rose, #c44569);
  margin-bottom: 25px;
  font-weight: 600;
}

.timer-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.timer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 240, 245, 0.7));
  border-radius: 15px;
  min-width: 80px;
  box-shadow: 0 4px 15px rgba(183, 110, 121, 0.1);
}

.timer-number {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--deep-rose, #c44569), var(--rose-gold, #b76e79));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.timer-label {
  font-size: 0.9rem;
  color: var(--rose-gold, #b76e79);
  margin-top: 5px;
}

.timer-separator {
  font-size: 2rem;
  color: var(--rose-gold-light, #d4a5a5);
  font-weight: 300;
  margin: 0 5px;
}

/* ==================== 生日倒计时 ==================== */
.birthday-section {
  padding: 60px 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 240, 245, 0.5));
  backdrop-filter: blur(10px);
  border-radius: 30px;
  margin: 40px auto;
  max-width: 600px;
  box-shadow: 0 15px 50px rgba(183, 110, 121, 0.15);
  animation: slideUp 0.8s ease forwards;
  border: 1px solid rgba(255, 183, 197, 0.3);
}

.birthday-content {
  text-align: center;
}

.birthday-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 25px;
}

.birthday-icon {
  font-size: 3rem;
  animation: bounce 1s ease infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.birthday-age {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--deep-rose), var(--rose-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.birthday-today-badge {
  background: linear-gradient(135deg, #ff6b81, #ff8fa3);
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  animation: pulse 1.5s ease infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 15px rgba(255, 107, 129, 0.3); }
  50% { transform: scale(1.05); box-shadow: 0 6px 25px rgba(255, 107, 129, 0.5); }
}

.birthday-today .birthday-today-badge {
  display: inline-block;
}

.countdown-title {
  font-size: 1.1rem;
  color: var(--deep-rose);
  margin-bottom: 20px;
  font-weight: 600;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 240, 245, 0.7));
  border-radius: 12px;
  min-width: 65px;
  box-shadow: 0 3px 12px rgba(183, 110, 121, 0.1);
}

.countdown-number {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--deep-rose), var(--rose-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.countdown-label {
  font-size: 0.8rem;
  color: var(--rose-gold);
  margin-top: 3px;
}

.countdown-sep {
  font-size: 1.5rem;
  color: var(--rose-gold-light);
  margin: 0 3px;
}

.birthday-stats {
  margin-top: 25px;
  padding-top: 25px;
  border-top: 1px dashed var(--rose-gold-light);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--deep-rose), var(--rose-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--rose-gold);
}

/* ==================== 相识计时器 ==================== */
.meet-section {
  padding: 60px 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 240, 245, 0.5));
  backdrop-filter: blur(10px);
  border-radius: 30px;
  margin: 40px auto;
  max-width: 650px;
  box-shadow: 0 15px 50px rgba(183, 110, 121, 0.15);
  animation: slideUp 0.8s ease forwards;
  border: 1px solid rgba(255, 183, 197, 0.3);
}

.meet-content {
  text-align: center;
}

.meet-timer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.meet-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 240, 245, 0.7));
  border-radius: 15px;
  min-width: 75px;
  box-shadow: 0 4px 15px rgba(183, 110, 121, 0.12);
}

.meet-number {
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--deep-rose), var(--rose-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.meet-label {
  font-size: 0.9rem;
  color: var(--rose-gold);
  margin-top: 5px;
}

.meet-message {
  font-size: 1rem;
  color: var(--rose-gold);
  line-height: 1.8;
}

.meet-countdown {
  text-align: center;
}

.meet-waiting {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--rose-gold);
}

.waiting-icon {
  font-size: 3rem;
  animation: spin 2s linear infinite;
}

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

.waiting-text {
  font-size: 1.2rem;
  font-style: italic;
}

/* ==================== 主题切换器 ==================== */
.theme-switcher-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.theme-switcher {
  position: relative;
  display: flex;
  gap: 10px;
}

.theme-btn {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(183, 110, 121, 0.3);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(183, 110, 121, 0.15);
}

.theme-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(183, 110, 121, 0.25);
}

#themeSelector {
  font-size: 1rem;
  width: auto;
  padding: 0 15px;
}

.theme-dropdown {
  position: absolute;
  top: 60px;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 15px;
  padding: 10px;
  min-width: 180px;
  box-shadow: 0 10px 40px rgba(183, 110, 121, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.theme-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.theme-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 15px;
  border: none;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  color: var(--deep-rose, #c44569);
}

.theme-option:hover {
  background: rgba(183, 110, 121, 0.1);
}

.theme-option.active {
  background: linear-gradient(135deg, rgba(183, 110, 121, 0.15), rgba(196, 69, 105, 0.1));
  font-weight: 600;
}

.theme-color {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ==================== 时间轴 ==================== */
.timeline-section {
  padding: 60px 20px;
  max-width: 700px;
  margin: 40px auto;
}

.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--rose-gold-light), var(--deep-rose));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
  opacity: 0;
  animation: slideInLeft 0.6s ease forwards;
}

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

.timeline-marker {
  position: absolute;
  left: -33px;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 15px rgba(183, 110, 121, 0.3);
  border: 3px solid rgba(255, 255, 255, 0.8);
}

.timeline-content {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  padding: 20px 25px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(183, 110, 121, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.timeline-date {
  font-size: 0.9rem;
  color: var(--rose-gold, #b76e79);
  font-weight: 500;
}

.timeline-title {
  font-size: 1.2rem;
  color: var(--deep-rose, #c44569);
  margin-top: 5px;
  font-weight: 600;
}

/* ==================== 深色模式 ==================== */
body.dark-mode {
  --text-color: #e8e8e8;
  --gradient-primary: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #1a1a2e 100%);
}

body.dark-mode .glass-card,
body.dark-mode .timer-section,
body.dark-mode .timeline-content {
  background: rgba(30, 30, 50, 0.7);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .name-zh,
body.dark-mode .poem-line,
body.dark-mode .love-letter,
body.dark-mode .timeline-title {
  color: #e8e8e8 !important;
}

body.dark-mode .timer-label {
  color: #ccc;
}
