@import "tailwindcss";

@theme {
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Inter', sans-serif;

  --color-luxury-cream: #FAF8F5;
  --color-luxury-beige: #F3EFE9;
  --color-luxury-dark: #1C1917;
  --color-luxury-charcoal: #2E2A25;
  --color-luxury-coffee: #4E3629;
  --color-luxury-gold: #D4AF37;
  --color-luxury-gold-light: #F3E5AB;
  --color-luxury-gold-dark: #B5942B;
}

@layer base {
  ::selection {
    background-color: #262626; /* neutral-800 */
    color: #ffffff;
  }
  html {
    scroll-behavior: smooth;
  }
  body {
    font-family: var(--font-sans);
    background-color: var(--color-luxury-cream);
    color: var(--color-luxury-dark);
    -webkit-font-smoothing: antialiased;
  }
  h1, h2, h3, h4, .font-serif {
    font-family: var(--font-serif);
  }
}

/* Custom Scrollbar for Luxury Experience */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-luxury-cream);
}
::-webkit-scrollbar-thumb {
  background: var(--color-luxury-coffee);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-luxury-gold);
}

/* Custom fade-in animations on scroll */
.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Zoom effect for hero background */
.hero-zoom {
  animation: heroZoom 25s infinite alternate ease-in-out;
}

@keyframes heroZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.08);
  }
}

/* Luxury button glow & hover transition */
.luxury-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.luxury-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.6s ease;
}

.luxury-btn:hover::after {
  transform: translate(-50%, -50%) scale(1);
}

/* Glassmorphism utility */
.glass-panel {
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.dark-glass-panel {
  background: rgba(28, 25, 23, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Custom style for active indicators or details */
.gold-glow {
  box-shadow: 0 0 15px rgba(197, 168, 128, 0.2);
}

/* Default Logo Styling (Gold Color using CSS filter) - Always Gold */
header img {
  filter: brightness(0) saturate(100%) invert(66%) sepia(45%) saturate(1376%) hue-rotate(366deg) brightness(92%) contrast(88%) !important;
  mix-blend-mode: normal !important;
  transition: filter 0.3s ease;
}

/* Default Desktop nav links color when not scrolled */
header nav a {
  color: #D4AF37 !important;
  transition: color 0.3s ease;
}
header nav a:hover {
  color: #ffffff !important;
}

/* Default Header CTA button at top */
header .luxury-btn {
  color: #D4AF37 !important;
  border-color: #D4AF37 !important;
  transition: all 0.3s ease;
}
header .luxury-btn:hover {
  background-color: #D4AF37 !important;
  color: #1C1917 !important;
  border-color: #D4AF37 !important;
}

/* Default Language switcher buttons */
header #lang-ru-btn, header #lang-en-btn {
  color: rgba(212, 175, 55, 0.6) !important; /* Muted gold */
}
header #lang-ru-btn.font-bold, header #lang-en-btn.font-bold {
  color: #D4AF37 !important; /* Gold for active */
}
header #lang-ru-btn:hover, header #lang-en-btn:hover {
  color: #ffffff !important;
}

/* Default Burger lines */
header #mobile-menu-btn .burger-line {
  background-color: #D4AF37 !important;
}

/* Scrolled & Menu-Open Header Styling */
header.scrolled, header.menu-open {
  background-color: rgba(23, 23, 23, 0.95) !important; /* bg-neutral-900 */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
  color: #D4AF37 !important; /* Gold */
}

header.scrolled nav a, header.menu-open nav a {
  color: #D4AF37 !important; /* Gold for readability */
}
header.scrolled nav a:hover, header.menu-open nav a:hover {
  color: #ffffff !important; /* White on hover */
}

/* Language switcher buttons in scrolled header */
header.scrolled #lang-ru-btn, header.scrolled #lang-en-btn {
  color: rgba(212, 175, 55, 0.6) !important; /* Muted gold */
}
header.scrolled #lang-ru-btn.font-bold, header.scrolled #lang-en-btn.font-bold {
  color: #D4AF37 !important; /* Gold for active */
}
header.scrolled #lang-ru-btn:hover, header.scrolled #lang-en-btn:hover {
  color: #ffffff !important;
}

header.scrolled #mobile-menu-btn, header.menu-open #mobile-menu-btn {
  color: #D4AF37 !important;
}
header.scrolled #mobile-menu-btn .burger-line, header.menu-open #mobile-menu-btn .burger-line {
  background-color: #D4AF37 !important;
}

/* Mobile Menu Drawer items styling */
#mobile-menu a,
#mobile-menu button {
  color: #D4AF37 !important;
  border-color: #D4AF37 !important;
}
#mobile-menu a:hover,
#mobile-menu button:hover {
  color: #ffffff !important;
  background-color: #D4AF37 !important;
}

/* Animated Burger Button Icon */
#mobile-menu-btn.open .burger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
#mobile-menu-btn.open .burger-line:nth-child(2) {
  opacity: 0;
}
#mobile-menu-btn.open .burger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Tactical Active Taps for Outline Buttons on Mobile */
.border-luxury-gold:active {
  background-color: var(--color-luxury-gold) !important;
  color: var(--color-luxury-dark) !important;
}

/* Custom styling for intl-tel-input dropdown to match the luxury dark theme */
.iti {
  display: block !important;
  width: 100%;
}

/* Dropdown list container */
.iti__country-list {
  background-color: #1C1917 !important;
  border: 1px solid rgba(212, 175, 55, 0.4) !important; /* Gold border */
  color: #ffffff !important;
  max-width: 100%;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5) !important;
}

/* Search input field */
.iti__search-input {
  background-color: #2E2A25 !important; /* luxury-charcoal style */
  color: #ffffff !important;
  border: 1px solid rgba(212, 175, 55, 0.3) !important;
  border-radius: 0px !important; /* sharp luxury corners */
  padding: 8px 12px !important;
  margin-bottom: 8px !important;
}

.iti__search-input:focus {
  border-color: #C5A880 !important;
  outline: none !important;
}

/* Individual country item */
.iti__country {
  padding: 10px 12px !important;
  color: #ffffff !important;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Hover and highlighted country item */
.iti__country.iti__highlight,
.iti__country:hover {
  background-color: #4E3629 !important; /* luxury-coffee */
  color: #DFCDAB !important; /* luxury-gold-light */
}

/* Dial code inside the list item */
.iti__dial-code {
  color: #D4AF37 !important; /* luxury-gold */
}

/* Flag container and arrow */
.iti__selected-flag {
  background-color: transparent !important;
}

.iti__arrow {
  border-top-color: #1C1917 !important; /* dark arrow on white input background */
}

.iti__arrow--up {
  border-bottom-color: #1C1917 !important; /* dark arrow on white input background */
}

/* Ensure selected dial code inside the white input box is dark */
.iti__selected-dial-code {
  color: #1C1917 !important;
}

/* Force absolute readability for booking inputs, selects, and textareas */
#cottage-booking-form input,
#cottage-booking-form textarea,
#modal-callback-form input {
  background-color: #ffffff !important;
  color: #1C1917 !important;
  border: 1px solid #e5e5e5 !important;
  transition: border-color 0.3s ease;
}

#cottage-booking-form input:focus,
#cottage-booking-form textarea:focus,
#modal-callback-form input:focus {
  border-color: #D4AF37 !important; /* Gold border upon focus */
  background-color: #ffffff !important; /* Background remains light */
  color: #1C1917 !important; /* Text remains dark */
  outline: none !important;
}

#cottage-booking-form input::placeholder,
#cottage-booking-form textarea::placeholder,
#modal-callback-form input::placeholder {
  color: #78716C !important; /* neutral-500 gray for readability */
}

/* Disabled submit button state styling */
#booking-submit-btn:disabled {
  background-color: #2E2A25 !important; /* dark gray-gold */
  color: #B5942B !important; /* muted gold */
  border-color: #4A453E !important;
  opacity: 0.85;
  cursor: not-allowed;
}

/* Rules modal styling overrides */
#rules-modal h3,
#rules-modal p,
#rules-modal ul,
#rules-modal li {
  color: #f5f5f5 !important; /* text-neutral-100 */
}
#rules-modal h4,
#rules-modal h4 i {
  color: #D4AF37 !important; /* Premium gold accent for headings and icons */
}

/* Submit buttons default styling - Gold background with dark text */
#booking-submit-btn,
#booking-submit-btn span,
#modal-callback-submit-btn,
#modal-callback-submit-btn span {
  background-color: #D4AF37 !important;
  color: #1C1917 !important;
  border: 1px solid #D4AF37 !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
}

#booking-submit-btn:hover,
#booking-submit-btn:hover span,
#modal-callback-submit-btn:hover,
#modal-callback-submit-btn:hover span {
  background-color: #ffffff !important;
  color: #1C1917 !important;
  border-color: #ffffff !important;
}

#booking-submit-btn:disabled,
#modal-callback-submit-btn:disabled {
  background-color: #2E2A25 !important;
  color: #B5942B !important;
  border-color: #4A453E !important;
  cursor: not-allowed !important;
}
