/* ==========================================================================
   Dollblush - Main Shared Styles
   ========================================================================== */

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  margin: 0 !important;
  padding: 0 !important;
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ==========================================================================
   Header Navigation
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: linear-gradient(180deg, rgba(11, 20, 38, 0.95) 0%, rgba(11, 20, 38, 0.85) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-header.hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.3px;
  transition: color 0.3s ease;
}

.header-logo:hover {
  color: #66cccc;
}

.header-logo i {
  font-size: 1.25rem;
  color: #ff9a6c;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Hide mobile close button on desktop */
.mobile-close-btn {
  display: none;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  background: rgba(102, 204, 204, 0.15);
  border: 1px solid rgba(102, 204, 204, 0.3);
  color: #f4f1e8;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.dropdown-toggle:hover {
  background: rgba(102, 204, 204, 0.25);
  border-color: rgba(102, 204, 204, 0.5);
  color: #ffffff;
}

.dropdown-toggle i.fa-chevron-down {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.dropdown.open .dropdown-toggle i.fa-chevron-down {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: linear-gradient(180deg, rgba(27, 38, 44, 0.98) 0%, rgba(11, 20, 38, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(102, 204, 204, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: #e8dcc0;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background: rgba(102, 204, 204, 0.15);
  color: #ffffff;
}

.dropdown-item i {
  width: 18px;
  text-align: center;
  color: #66cccc;
  font-size: 0.9rem;
}

.dropdown-item.active {
  background: rgba(255, 154, 108, 0.12);
  color: #ff9a6c;
}

.dropdown-item.active i {
  color: #ff9a6c;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #f4f1e8;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.3s ease;
}

.mobile-menu-toggle:hover {
  color: #66cccc;
}

/* Mobile Styles */
@media (max-width: 600px) {
  .site-header {
    padding: 0.6rem 1rem;
  }

  .header-logo span {
    display: none;
  }

  .header-logo i {
    font-size: 1.5rem;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .header-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, rgba(11, 20, 38, 0.98) 0%, rgba(27, 38, 44, 0.98) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    flex-direction: column;
    align-items: stretch;
    padding: 5rem 1.5rem 2rem;
    gap: 0.5rem;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 9001;
  }

  .header-nav.open {
    transform: translateX(0);
  }

  .mobile-close-btn {
    display: block;
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: #f4f1e8;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
  }

  .dropdown {
    width: 100%;
  }

  .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 0.9rem 1.25rem;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    width: 100%;
    margin-top: 0.5rem;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    max-height: 0;
    overflow: hidden;
    padding: 0;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }

  .dropdown.open .dropdown-menu {
    max-height: 300px;
    padding: 0.5rem;
  }

  .mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 8999;
  }

  .mobile-overlay.visible {
    opacity: 1;
    visibility: visible;
  }
}

/* ==========================================================================
   Shared Button Styles
   ========================================================================== */

.btn-soft {
  background: #66cccc;
  color: #0b1426;
  border: none;
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(102, 204, 204, 0.25), 0 4px 15px rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-family: inherit;
}

.btn-soft:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  color: #0b1426;
  box-shadow: 0 15px 35px rgba(102, 204, 204, 0.3), 0 6px 20px rgba(255, 255, 255, 0.15);
}

.btn-ghost {
  background: rgba(173, 216, 230, 0.08);
  color: #f4f1e8;
  border: 1px solid rgba(173, 216, 230, 0.2);
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-ghost:hover {
  background: rgba(173, 216, 230, 0.15);
  color: #ffffff;
  border-color: rgba(173, 216, 230, 0.3);
  transform: translateY(-1px);
}

/* ==========================================================================
   Shared Card Styles
   ========================================================================== */

.letter-wrap {
  width: 100%;
  max-width: 950px;
  margin: 2rem auto 0;
}

.letter-card {
  position: relative;
  padding: clamp(1rem, 2vw, 1.25rem) clamp(1.25rem, 3.2vw, 1.75rem);
  background: linear-gradient(145deg, #fef7e4, #f9f0da);
  color: #2c1810;
  border-radius: 14px;
  border: 1px solid rgba(139, 102, 69, 0.2);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.28),
    inset 0 1px 3px rgba(255, 255, 255, 0.6),
    inset 0 -1px 2px rgba(139, 102, 69, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.letter-card:hover {
  background: linear-gradient(145deg, #fef9e8, #fef5dc);
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.32),
    0 0 40px rgba(212, 175, 55, 0.15),
    inset 0 1px 4px rgba(255, 255, 255, 0.8),
    inset 0 -1px 3px rgba(139, 102, 69, 0.15);
  transform: translateY(-2px);
}

.letter-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 154, 108, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(102, 204, 204, 0.06) 0%, transparent 50%);
  mix-blend-mode: soft-light;
  opacity: 0.7;
}

.letter-title {
  font-weight: 800;
  color: #1a0e07;
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.letter {
  white-space: pre-wrap;
  color: #2c1810;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.3);
  line-height: 1.65;
}

/* ==========================================================================
   Shared Star Galaxy Styles
   ========================================================================== */

.beach-star-galaxy {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

.beach-star-galaxy .star {
  position: absolute;
  opacity: 0;
  transition: opacity 0.6s ease-out;
  filter: drop-shadow(0 0 10px currentColor)
          drop-shadow(0 0 20px currentColor)
          drop-shadow(0 0 30px currentColor);
  will-change: opacity;
}

.beach-star-galaxy .star > div {
  position: relative;
  width: 100%;
  height: 100%;
}

.beach-star-galaxy .star > div::before,
.beach-star-galaxy .star > div::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: currentColor;
}

.beach-star-galaxy .star > div::before {
  clip-path: polygon(
    50% 28%,
    52% 42%,
    54% 50%,
    52% 58%,
    50% 72%,
    48% 58%,
    46% 50%,
    48% 42%
  );
  opacity: 0.8;
}

.beach-star-galaxy .star > div::after {
  clip-path: polygon(
    50% 28%,
    52% 42%,
    54% 50%,
    52% 58%,
    50% 72%,
    48% 58%,
    46% 50%,
    48% 42%
  );
  transform: rotate(90deg);
  opacity: 0.8;
}

/* Star Animations */
@keyframes star-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes star-twinkle {
  0%, 100% { transform: scale(1); opacity: 0.75; }
  50% { transform: scale(1.12); opacity: 1; }
}

@keyframes star-twinkle-slow {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  25% { transform: scale(1.05); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  75% { transform: scale(1.08); opacity: 0.85; }
}

@keyframes star-twinkle-medium {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  30% { transform: scale(1.1); opacity: 0.95; }
  60% { transform: scale(1.18); opacity: 1; }
  85% { transform: scale(1.05); opacity: 0.8; }
}

@keyframes star-twinkle-fast {
  0%, 100% { transform: scale(1); opacity: 0.65; }
  20% { transform: scale(1.12); opacity: 1; }
  45% { transform: scale(1.03); opacity: 0.75; }
  70% { transform: scale(1.15); opacity: 0.95; }
}

@keyframes star-twinkle-gentle {
  0%, 100% { transform: scale(1); opacity: 0.75; }
  33% { transform: scale(1.08); opacity: 0.9; }
  66% { transform: scale(1.14); opacity: 1; }
}

@keyframes star-twinkle-pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  15% { transform: scale(1.2); opacity: 1; }
  30% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.1); opacity: 0.95; }
  75% { transform: scale(1.05); opacity: 0.8; }
}

/* ==========================================================================
   Shimmering Gold Signature
   ========================================================================== */

.love-footer {
  text-align: center;
  font-size: 1.05rem;
  margin-top: 2.25rem;
  font-weight: 500;
  background: linear-gradient(90deg,
    #b8860b 0%,
    #d4af37 25%,
    #f6e58d 50%,
    #d4af37 75%,
    #b8860b 100%);
  background-size: 200% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #d4af37;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  animation: text-shimmer 5s ease-in-out infinite;
}

@keyframes text-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.cta-row {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 154, 108, 0.3), rgba(102, 204, 204, 0.2), rgba(255, 154, 108, 0.3), transparent);
  margin: 2rem 0 1rem;
}

.teal-divider {
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.2), transparent);
  margin: 1.5rem auto;
  opacity: 0.6;
}

/* ==========================================================================
   Body Padding for Fixed Header
   ========================================================================== */

body.has-header {
  padding-top: 60px;
}

@media (max-width: 600px) {
  body.has-header {
    padding-top: 52px;
  }
}
