/* frflashy.css - Lake-inspired design system */

:root {
  /* Colors inspired by Willoughby Lake */
  --sky-blue: #87CEEB;
  --deep-water: #1e5e8e;
  --shallow-water: #4a90e2;
  --cloud-white: #f8f9fa;
  --forest-green: #2d5a3d;
  --sand: #f5e6d3;
  --rock-gray: #6c757d;
  --morning-mist: rgba(135, 206, 235, 0.1);
  
  /* Typography */
  --font-main: 'Open Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-heading: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
  /* Subtle three-column background */
  background: linear-gradient(90deg,
    #f9f9f9 0%,
    #f9f9f9 33.33%,
    #ffffff 33.33%,
    #ffffff 66.66%,
    #f9f9f9 66.66%,
    #f9f9f9 100%);
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  width: 100%;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--deep-water);
  margin-bottom: 1rem;
}

.page-title {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--deep-water);
  font-weight: 600;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--rock-gray);
  font-style: italic;
}

/* Header Banner */
.site-header {
  width: 100%;
  margin: 0;
  padding: 0;
}

.header-banner {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.header-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, 
    rgba(30, 94, 142, 0.3) 0%, 
    rgba(30, 94, 142, 0.5) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.site-title {
  font-size: 3rem;
  font-weight: 700;
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  margin: 0;
  letter-spacing: -0.5px;
}

.site-tagline {
  font-size: 1.25rem;
  color: white;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
  margin-top: 0.5rem;
  font-style: italic;
}

/* Navigation */
.main-nav {
  background: linear-gradient(90deg, 
    var(--shallow-water) 0%, 
    var(--sky-blue) 50%, 
    var(--shallow-water) 100%);
  padding: 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.nav-container {
  width: 40%;  /* Increased from 33.33% to accommodate 6 items */
  max-width: 700px;  /* Increased from 600px */
  min-width: 500px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 1rem;
}

.nav-list {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  gap: 0.25rem;  /* Reduced gap to fit more items */
}

.nav-item {
  margin: 0;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;  /* Slightly reduced horizontal padding */
  color: white !important;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;  /* Slightly smaller font */
  transition: all 0.3s ease;
  border-radius: 4px;
  position: relative;
  white-space: nowrap;  /* Prevent text wrapping */
}

.nav-link i {
  margin-right: 0.5rem;
  font-size: 0.9rem;
}

/* Hover effect for navigation */
.nav-link:hover {
  background: rgba(255, 255, 255, 0.25);
  color: white !important;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.nav-link:active {
  transform: translateY(0);
}

.nav-item.active .nav-link {
  background: var(--deep-water);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

/* Main Content Area - Centered in middle third */
main, .story-main {
  margin-top: 2rem;
  margin-bottom: 2rem;
  margin-left: auto;
  margin-right: auto;
  width: 100%;  /* <<< ensure full width; no shrinking */
}

/* Content wrapper for proper centering across all browsers */
.content-wrapper {
  max-width: 1140px; /* same as Bootstrap container at >=1200px */
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

/* Cards and Sections */
.content-card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s ease;
  margin-bottom: 2rem;
}

.content-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.section-title {
  margin-top: 0;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--sky-blue);
  color: var(--deep-water);
}

/* Badges and Labels */
.badge-hints {
  background: var(--sky-blue);
  color: var(--deep-water);
  font-size: 0.85rem;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Links */
a {
  color: var(--shallow-water);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--deep-water);
  text-decoration: underline;
}

/* Buttons */
.btn-lake {
  background: linear-gradient(135deg, var(--shallow-water), var(--sky-blue));
  color: white;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-lake:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  background: linear-gradient(135deg, var(--deep-water), var(--shallow-water));
  color: white;
}

.btn-lake.dropdown-toggle {
  display: inline-block !important;
  width: auto !important;
}

.dropdown {
  display: inline-block;   /* Shrinks container to button width */
}

/* Shrink dropdown container */
.col-md-4 .dropdown {
  display: inline-block;
}

/* Force vocabulary button to natural width */
.col-md-4 .dropdown .btn {
  display: inline-block !important;
  width: auto !important;
}

/* Dropdown Menu Styling */
.nav-item.dropdown {
  position: relative;
}

.dropdown-toggle::after {
  margin-left: 0.25rem;
}

.dropdown-menu {
  top: 100%;
  left: 0;
  z-index: 1000;
  min-width: 200px;
  padding: 0.5rem 0;
  margin-top: 0.125rem;
  background: white;
  border: 1px solid var(--sky-blue);
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.dropdown-item {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  color: var(--deep-water) !important;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.dropdown-item i {
  margin-right: 0.5rem;
  width: 20px;
  text-align: center;
  color: var(--shallow-water);
}

.dropdown-item:hover {
  background: var(--morning-mist);
  color: var(--deep-water) !important;
  text-decoration: none;
  padding-left: 1.25rem;
}

/* Active state for dropdown toggle */
.nav-item.dropdown.active .nav-link,
.nav-item.dropdown .nav-link:focus {
  background: rgba(255, 255, 255, 0.25);
}


/* Footer - REVISED FOR NO BACKGROUND AND BLACK TEXT */
footer {
  margin-top: 3rem;
  padding: 2rem 0;
  background: none; /* Removed background color */
  color: black;      /* Set default text color to black */
  text-align: center;
  width: 100%;
}

footer .container {
  width: 33.33%;
  max-width: 600px;
  min-width: 500px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

/* Specific styling for footer links for consistency */
footer a {
  color: black; /* Ensure all footer links are black */
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #555; /* Slightly darker on hover */
  text-decoration: underline;
}

/* Adjust dropdown items within footer if needed */
footer .dropdown-item {
  color: black !important; /* Force dropdown items to be black */
}

footer .dropdown-item:hover {
  background: #e9ecef; /* Lighter background on hover for black text */
  color: black !important;
}

/* Styling for the list in the footer links */
.footer-links ul {
  list-style: none; /* Remove bullet points */
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px; /* Spacing between footer links */
}

.footer-links li {
  margin: 0; /* Remove default list item margins */
  padding: 0;
}

/* Responsive Design */
@media (max-width: 1500px) {
  /* removed main/story-main from here to prevent shrinking */
  footer .container {
    width: 40%;
  }
  .nav-container {
    width: 45%;  /* Slightly wider for dropdown */
    max-width: 750px;
  }
}

@media (max-width: 1200px) {
  /* removed main/story-main from here to prevent shrinking */
  footer .container {
    width: 50%;
  }
  .nav-container {
    width: 60%;  /* More room for navigation */
    max-width: none;
  }
}

@media (max-width: 768px) {
  .site-title {
    font-size: 2rem;
  }
  
  .site-tagline {
    font-size: 1rem;
  }
  
  .header-banner {
    height: 150px;
  }
  
  .nav-list {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
  }
  
  /* removed main/story-main width override; only keep padding */
  footer .container {
    width: 80%;
    min-width: auto;
  }
  
  .nav-container {
    width: 90%;
    min-width: auto;
  }
  
  main, .story-main {
    padding: 1.5rem;
  }
  
  /* Dropdown adjustments for tablets */
  .dropdown-menu {
    position: relative;
    width: 100%;
    box-shadow: none;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 0;
  }
  
  .dropdown-item {
    color: white !important;
    padding-left: 2rem;
  }
  
  .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.2);
  }
}

@media (max-width: 576px) {
  .nav-list {
    flex-direction: column;
    width: 100%;
  }
  
  .nav-item {
    width: 100%;
  }
  
  .nav-link {
    justify-content: center;
  }
  
  /* removed main/story-main width override; only keep footer + padding */
  footer .container {
    width: 95%;
    min-width: auto;
  }
  
  .nav-container {
    width: 95%;
  }
  
  main, .story-main {
    padding: 1rem;
  }
  
  /* Mobile dropdown styling */
  .dropdown-menu {
    position: static;
    background: rgba(30, 94, 142, 0.9);
    border-radius: 0;
    margin: 0;
  }
  
  .dropdown-item {
    text-align: center;
    color: white !important;
  }

  @media (max-width: 768px) {
    .nav-item.dropdown .dropdown-item {
      color: black !important;
    }
  }

  /* **UNUSED** Limit nav background to centered 8-column region */
  /* .nav-centered-wrap {
      background-color: #004a99;
  } */

  .main-nav {
    background-color: transparent !important;
  }

  .nav-container {
    background-color: #004a99 !important;
  }
}

.content-card ul {
  padding-left: 2rem;
  list-style-position: outside;
  margin-bottom: 1rem;
}

.content-card li {
  margin-bottom: 0.5rem;
}

/* Make header image + menu pill match main content width on desktop */
@media (min-width: 992px) {
  /* Let the header/nav columns span full width of the row */
  .site-header .row > div,
  nav .row > div {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* Center the lake image to the same 1140px max-width as content */
  .header-banner {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Center the pastel menu pill to the same 1140px max-width */
  .nav-soft .d-flex.align-items-center {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
  }
}
