/* styles.css */

/* Custom styles for background and glass effect */
body {
    font-family: 'Inter', sans-serif;
    background-image: url("https://thephotographycanadian.ca/images/landscape/distanttetons.webp"); /* Consider downloading for offline PWA use */
    background-size: cover;
    min-height: 100vh;
}

/* Style for when modal is open to prevent body scroll */
body.modal-open {
    overflow: hidden;
}


/* Clickable items */
.result-item, .menu-item, .list-view-item, .desktop-menu-item, .clickable-region, .back-button, .region-list-item {
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, box-shadow 0.2s ease-in-out; /* Added box-shadow transition */
}
.result-item:hover, .region-list-item:hover {
    background-color: rgba(209, 250, 229, 0.5); /* Lighter green tint hover */
}
.menu-item:hover {
    background-color: rgba(255, 255, 255, 0.1); /* Mobile menu hover */
}
.desktop-menu-item:hover, .back-button:hover {
    background-color: rgba(20, 184, 166, 0.2); /* Teal tint hover for desktop menu/back */
}
.clickable-region:hover {
    color: #047857; /* Darker Emerald for region hover */
    text-decoration: underline;
}

/* Custom scrollbar (optional, WebKit browsers) */
#search-results::-webkit-scrollbar,
#list-view-content::-webkit-scrollbar,
#details-reg-list-container::-webkit-scrollbar,
#region-overview-content::-webkit-scrollbar,
#regions-list-content::-webkit-scrollbar {
    width: 6px;
}
#search-results::-webkit-scrollbar-track,
#list-view-content::-webkit-scrollbar-track,
#details-reg-list-container::-webkit-scrollbar-track,
#region-overview-content::-webkit-scrollbar-track,
#regions-list-content::-webkit-scrollbar-track {
    background: transparent;
}
#search-results::-webkit-scrollbar-thumb,
#list-view-content::-webkit-scrollbar-thumb,
#details-reg-list-container::-webkit-scrollbar-thumb,
#region-overview-content::-webkit-scrollbar-thumb,
#regions-list-content::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

/* Menu panel transition */
#menu-panel {
    transition: transform 0.3s ease-in-out;
}

/* Ensure backdrop filter is supported */
.backdrop-blur-lg {
     -webkit-backdrop-filter: blur(16px); /* Safari */
     backdrop-filter: blur(16px);
}

/* Apply glass effect base styles - Updated Tints */
.glass-effect {
    background-color: rgba(240, 253, 250, 0.75); /* Very light teal/aqua tint */
    backdrop-filter: blur(12px);
     -webkit-backdrop-filter: blur(12px); /* Safari */
    border: 1px solid rgba(20, 184, 166, 0.2); /* Teal border */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
 .glass-effect-darker {
     background-color: rgba(15, 118, 110, 0.7); /* Darker teal base */
     backdrop-filter: blur(16px);
     -webkit-backdrop-filter: blur(16px); /* Safari */
     border: 1px solid rgba(20, 184, 166, 0.3); /* Teal border */
     box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
 }

/* --- Desktop Menu Styling --- */
.desktop-menu-item {
    color: #065f46; /* emerald-800 */
    font-weight: 500; /* medium */
    font-size: 0.875rem; /* text-sm */
    padding: 0.375rem 1rem; /* py-1.5 px-4 */
    border-radius: 0.375rem; /* rounded-md */
    text-decoration: none;
}

.desktop-menu-item:hover {
    background-color: rgba(20, 184, 166, 0.2); /* Teal tint hover */
    color: #064e3b; /* emerald-900 */
}

/* Active state for desktop menu */
.active-menu-item {
    background-color: rgba(13, 148, 136, 0.7); /* Teal-600 with opacity */
    color: #ffffff; /* White text */
    font-weight: 600; /* semibold */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}
/* --- End Desktop Menu Styling --- */


/* Regulation prefixes - Updated Colors */
.reg-prefix {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    margin-right: 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 0.25rem;
    color: white;
    vertical-align: middle;
}
.prefix-power { background-color: #b91c1c; } /* Red-700 */
.prefix-hook { background-color: #d97706; } /* Amber-600 */
.prefix-bait { background-color: #ca8a04; } /* Yellow-600 */
.prefix-quota { background-color: #16a34a; } /* Green-600 */
.prefix-release { background-color: #2563eb; } /* Blue-600 */
.prefix-closure { background-color: #4b5563; } /* Gray-600 */
.prefix-general { background-color: #0d9488; } /* Teal-600 */
.prefix-warn { background-color: #f59e0b; } /* Amber-500 for Warn */
.prefix-class { background-color: #0d9488; } /* Teal-600 for Class */
.prefix-access { background-color: #60a5fa; } /* Blue-400 for Access */


/* Styles for Symbols */
.symbol-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    font-size: 0.75rem; /* Slightly larger than reg prefix */
    font-weight: 500;
    border-radius: 9999px; /* Pill shape */
    line-height: 1;
    vertical-align: middle;
    margin-left: 0.25rem; /* Space from lake name */
    border: 1px solid transparent;
}
.symbol-default { /* Added a default style */
    background-color: #e5e7eb; /* gray-200 */
    color: #374151; /* gray-700 */
    border-color: #d1d5db; /* gray-300 */
}
.symbol-stocked {
    background-color: #d1fae5; /* Emerald-100 */
    color: #047857; /* Emerald-700 */
    border-color: #6ee7b7; /* Emerald-300 */
}
.symbol-classified {
    background-color: #fef3c7; /* Amber-100 */
    color: #b45309; /* Amber-700 */
    border-color: #fcd34d; /* Amber-300 */
}
.symbol-tributaries {
    background-color: #ccfbf1; /* Teal-100 */
    color: #0f766e; /* Teal-700 */
    border-color: #5eead4; /* Teal-300 */
}

/* Region list items */
.region-list-item {
    /* Using Tailwind classes in JS now, this might be redundant */
    /* padding: 0.75rem; */
    /* border-bottom: 1px solid rgba(20, 184, 166, 0.2); */ /* Teal border */
    /* font-weight: 500; */
    /* color: #065f46; */ /* Emerald-800 */
}
.region-list-item:last-child {
    /* border-bottom: none; */
}

/* Disclaimer Modal Styles */
#disclaimer-modal-overlay {
    /* Tailwind classes already handle positioning, background, blur, flex centering */
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}
#disclaimer-modal-overlay.hidden {
    opacity: 0;
    pointer-events: none; /* Prevent interaction when hidden */
}

/* --- Disclaimer Fade Out Styles --- */
#disclaimer-notice {
  /* Define the transitions */
  transition: opacity 1s ease-out,
              max-height 1s ease-out,
              margin-bottom 1s ease-out,
              padding-top 1s ease-out,
              padding-bottom 1s ease-out;

  /* Initial state (visible) */
  opacity: 1;
  overflow: hidden; /* Prevent content spill during transition */
  max-height: 500px; /* Estimate: Adjust if your disclaimer is taller */
  /* Tailwind mb-3 and p-3 handle spacing */
}

#disclaimer-notice.fade-out {
  /* Final state (faded and collapsed) */
  opacity: 0;
  max-height: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  /* The element still exists but takes up no space and is invisible */
}
/* --- End Disclaimer Fade Out Styles --- */


/* --- START: Header Breakpoint Control (Moved from HTML) --- */

/* Default mobile styles (applied when screen width < 615px) */
#menu-button {
    display: inline-flex; /* Show hamburger button */
}
#desktop-navigation {
    display: none; /* Hide desktop nav bar */
}
#header-content-wrapper {
    display: flex;
    justify-content: space-between; /* Title left, button right */
    align-items: center;
    width: 100%;
    margin-bottom: 0;
}
#header-title {
    text-align: left; /* Align title left */
}
#main-header {
    flex-direction: column; /* Stack header items vertically */
    align-items: flex-start; /* Align items to the start */
}
#menu-overlay {
    display: none; /* Ensure overlay is hidden by default */
}


/* Desktop styles (applied when screen width >= 615px) */
@media (min-width: 615px) {
    #menu-button {
        display: none; /* Hide hamburger button */
    }
    #desktop-navigation {
        display: flex; /* Show desktop nav bar as flex container */
        margin-top: 0; /* Reset top margin */
    }
    #main-header {
        align-items: center; /* Center header items horizontally */
    }
    #header-content-wrapper {
        justify-content: center; /* Center title */
        margin-bottom: 0.5rem; /* Add space below title (like mb-2) */
    }
    #header-title {
        text-align: center; /* Center title text */
    }
    #menu-overlay {
        display: none !important; /* Ensure overlay is always hidden on desktop */
    }
}
/* --- END: Header Breakpoint Control --- */

