@import url('vars.css');
/* Modern Index Page Styling - Consistent with navbar/weather/tides design */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Pill text styling for booking week date */
.pill-text {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
  padding: 0.8rem 1.5rem;
  background: var(--primary-overlay-06);
  border-radius: 8px;
  border: 1px solid var(--primary-border-08);
  max-width: fit-content;
  box-sizing: border-box;
}

/* CSS Variables for consistent branding */
:root {
  /* Map legacy index tokens to central theme */
  --brand-700: var(--primary);
  --brand-500: var(--primary-500);
  --brand-300: var(--primary-500);
  --text-strong: var(--text);
  --text-medium: var(--muted);
  --card-bg: var(--light-card-bg);
  --card-lighter: var(--light-card-bg);
  --border-subtle: rgba(0,0,0,0.06);
  --shadow-card: 0 4px 6px -1px rgba(0,0,0,0.06), 0 2px 4px -1px rgba(0,0,0,0.03);
  --nav-foreground: var(--text);
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-image: url("https://d1zu85svo1dt82.cloudfront.net/Kamilche1.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  /* Add subtle overlay for better text contrast */
  position: relative;
}

/* Subtle overlay for better text readability */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--hero-overlay-gradient);
  pointer-events: none;
  z-index: 1;
}

/* Ensure content appears above overlay */
#navbar,
#bookings-container,
#reservations-container {
  position: relative;
  z-index: 2;
}

/* Typography improvements */
h1 {
  color: var(--text);
  text-shadow: var(--text-shadow-strong);
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

h2 {
  color: var(--text-strong);
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Modern navbar styling - consistent with other pages */
.navbar {
  display: flex;
  gap: 8px;
  align-items: center;
  background: linear-gradient(180deg, var(--brand-700), var(--brand-500));
  padding: 8px 12px;
  width: 100%;
  box-shadow: 0 6px 18px rgba(2,6,23,0.08);
}

.navbar a {
  color: var(--nav-foreground);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  background: transparent;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 160ms ease;
  position: relative;
}

.navbar a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(23,76,144,0.12);
  background: var(--primary-overlay-04);
}

  .navbar a.active {
    background: transparent;
    box-shadow: none;
    color: var(--text);
    transform: none;
  }

/* Underline animation for active navbar links */
  .navbar a::after {
    content: '';
    position: absolute;
    left: 12%;
    right: 12%;
    bottom: -6px;
    height: 3px;
  background: var(--link-underline-gradient);
    border-radius: 3px;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 220ms cubic-bezier(.2,.8,.2,1);
    pointer-events: none;
    opacity: 0.95;
  }

.navbar a.active::after {
  transform: scaleX(1);
}

/* Modern dropdown styling */
.dropdown {
  margin-left: auto;
  position: relative;
  display: inline-block;
}

.dropdown:hover .dropdown-content,
.dropdown-content:hover {
  display: block;
}

.dropbtn {
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--nav-foreground);
  padding: 8px 14px;
  border-radius: 999px;
  transition: all 160ms ease;
  position: relative;
}

.dropbtn:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-shadow);
  background: var(--primary-overlay-04);
}

.dropbtn::after {
  content: '\25BC';
  margin-left: 0.5rem;
  font-size: 0.7rem;
  opacity: 0.8;
}

.dropdown-content {
  display: none;
  position: absolute;
  background: linear-gradient(180deg, var(--brand-700), var(--brand-500));
  border: 1px solid var(--primary-border-08);
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  z-index: 1000;
  top: 100%;
  right: 0;
  min-width: 160px;
  overflow: hidden;
  margin-top: -2px; /* Eliminate gap between button and dropdown */
}

.dropdown-content a,
.dropdown-content button {
  color: var(--nav-foreground);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: all 160ms ease;
}

.dropdown-content a:hover,
.dropdown-content button:hover {
  background: var(--primary-overlay-06);
  transform: translateX(2px);
}

.dropdown-content button.signout {
  border-top: 1px solid var(--primary-border-08);
}

.dropdown-content button.signout:hover {
  background: rgba(255,99,99,0.15);
}

/* Modern container styling - consistent with other pages */
#bookings-container, #reservations-container {
  max-width: 600px;
  margin: 2rem auto 1rem;
  background: var(--page-bg);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 2rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

h1, h2 {
  text-align: center;
}

#loading, #bookings-loading {
  text-align: center;
  color: var(--text-medium);
  font-weight: 500;
  padding: 1rem;
}

/* Modern content styling */
#current-week, #current-booking-week {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-700);
  margin-bottom: 1rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

#current-week-date, #current-booking-week-date {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-medium);
  margin: 0 auto 2rem;
  padding: 0.8rem 1.5rem;
  background: var(--primary-overlay-06);
  border-radius: 8px;
  border: 1px solid var(--primary-border-08);
  max-width: fit-content;
  display: inline-block;
  width: auto;
}

#next-week, #next-booking-week {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--brand-500);
  margin-bottom: 1rem;
}

#next-week-date, #next-booking-week-date {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-medium);
  margin: 0 auto 1.5rem;
  padding: 0.6rem 1.2rem;
  background: var(--primary-overlay-04);
  border-radius: 6px;
  border: 1px solid var(--primary-border-08);
  max-width: fit-content;
  display: inline-block;
  width: auto;
}

/* Responsive design */
@media only screen and (max-width: 768px) {
  #bookings-container, #reservations-container {
    margin: 1rem;
    padding: 1.5rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.3rem;
  }
  
  #current-week, #current-booking-week {
    font-size: 1.6rem;
  }
  
  #next-week, #next-booking-week {
    font-size: 1.2rem;
  }
  
  .navbar {
    padding: 6px 8px;
  }
  
  .dropbtn::after {
    margin-left: 0.3rem;
  }
}
