/*
Theme Name: The Wedding Curator (TWC) Luxury Theme
Theme URI: https://twcwed.com/
Author: Antigravity & Harsh
Description: 1:1 Pixel-Perfect Custom WordPress Theme for The Wedding Curator. High-performance, luxury aesthetic, native Tailwind CSS styling, and zero builder bloat.
Version: 1.0.0
Text Domain: twcwed
*/

/* Reset & custom overrides */
:root {
  --font-serif: 'Source Serif 4', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --color-ivory: #f8f5f0;
  --color-gold: #c5a880;
  --color-charcoal: #1c1917;
}

body {
  background-color: var(--color-ivory);
  color: var(--color-charcoal);
  font-family: var(--font-sans);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* ========================================================
   Desktop & Mobile Navigation Dropdowns (High Fidelity)
   ======================================================== */
.twc-dropdown {
  display: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

/* Desktop Hover and Focus */
@media (min-width: 1024px) {
  .twc-nav-item:hover > .twc-dropdown,
  .twc-nav-item.is-open > .twc-dropdown,
  .twc-dropdown:hover,
  .twc-dropdown.is-open {
    display: block !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
  }

  .twc-nav-item:hover .lucide-chevron-down,
  .twc-nav-item.is-open .lucide-chevron-down {
    transform: rotate(180deg) !important;
  }
}

/* Touch and Click Toggle State */
.twc-dropdown.is-open {
  display: block !important;
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

/* Mobile Accordions */
.twc-accordion-content {
  transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}
.twc-accordion-content.is-open {
  display: flex !important;
}

/* ========================================================
   WordPress Admin Bar Compatibility & Alignment
   ======================================================== */
body.admin-bar header {
  top: calc(1rem + 32px) !important;
}
@media (min-width: 640px) {
  body.admin-bar header {
    top: calc(1.25rem + 32px) !important;
  }
}
@media (min-width: 1024px) {
  body.admin-bar header {
    top: calc(1.5rem + 32px) !important;
  }
}
@media screen and (max-width: 782px) {
  body.admin-bar header {
    top: calc(1rem + 46px) !important;
  }
}
@media screen and (max-width: 600px) {
  body.admin-bar header {
    top: 1rem !important;
  }
}

/* ========================================================
   Destination Tags (Pills on Homepage & Directory Cards)
   ======================================================== */
.destination-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 14px;
}
.destination-tags small {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b4328;
  background: rgba(232, 225, 215, 0.45);
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: inset 1px 1px 2px rgba(174, 164, 151, 0.25);
}
