/* site-bs5.css - Bootstrap 5 overrides and enhancements for HauntedWisconsin.com */

/* Custom theme variables matching the original design */
[data-bs-theme="dark"] {
    --bs-body-color: #ffffff;
    --bs-body-bg: #101010;
    --bs-primary: #bb4400;
    --bs-primary-rgb: 187, 68, 0;
    --bs-link-color: #ff9933;
    --bs-link-hover-color: #ffcc66;
}

[data-bs-theme="light"] {
    --bs-body-color: #000000;
    --bs-body-bg: #f6f6f6;
    --bs-primary: #7700dd;
    --bs-primary-rgb: 119, 0, 221;
    --bs-link-color: #428bca;
    --bs-link-hover-color: #3071a9;
}

/* Base body tweaks */
body {
    transition: background-color 0.2s, color 0.2s;
}

a {
    text-decoration: none;
}


/* ==========================================================================
   HEADER TOP SECTION & BRANDING
   ========================================================================== */

.header-top-container {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.spooky-text {
    font-family: 'HWArchitect', 'Courier New', Courier, monospace;
    margin-bottom: 0;
}

.days-til-halloween {
    font-weight: bold;
    font-size: 1.05rem;
}

.header-links {
    font-size: 0.9rem;
    color: #888888;
}

.header-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
}

.header-links a:hover {
    color: #ff9933;
    text-decoration: underline;
}

[data-bs-theme="light"] .header-links a,
.day-theme .header-links a {
    color: #222222;
}

[data-bs-theme="light"] .header-links a:hover,
.day-theme .header-links a:hover {
    color: #7700dd;
}

/* Header Top Search Bar */
#cse-search-box {
    margin-top: 0.25rem;
}

#cse-search-box .btn-primary {
    background-color: #bb4400;
    border-color: #a03a00;
    color: #ffffff;
}

#cse-search-box .btn-primary:hover,
#cse-search-box .btn-primary:focus {
    background-color: #7700dd;
    border-color: #6600bb;
    color: #ffffff;
}

#cse-search-box .dropdown-toggle-split {
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   MAIN NAVBAR STYLING
   ========================================================================== */

.bg-hw-navbar,
.navbar-inverse,
#mainNavbar {
    background-color: #bb4400 !important;
    border: none;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    margin-right: 0 !important;
    margin-left: 0 !important;
}

.navbar-expand-lg .navbar-nav .nav-link {
    color: #ffffff !important;
    font-weight: 600;
    padding: 0.5rem 0.9rem;
    border-radius: 4px;
    transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
}

.navbar-expand-lg .navbar-nav .nav-link:hover,
.navbar-expand-lg .navbar-nav .nav-link:focus,
.navbar-expand-lg .navbar-nav .nav-link.show,
.navbar-expand-lg .navbar-nav .show > .nav-link {
    background-color: #7700dd !important;
    color: #ffffff !important;
}

/* Navbar Toggler for Mobile */
.navbar-dark .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.6);
    padding: 0.35rem 0.65rem;
}

.navbar-dark .navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(119, 0, 221, 0.5);
}

/* ==========================================================================
   DROPDOWN MENUS (DESKTOP & GENERAL)
   ========================================================================== */

.navbar-nav .dropdown-menu {
    display: none;
    border-radius: 6px;
    padding: 0.6rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    z-index: 1050;
}

.navbar-nav .dropdown-menu.show {
    display: block;
}

/* Dark Theme Dropdown Colors */
[data-bs-theme="dark"] .dropdown-menu,
.night-theme .dropdown-menu {
    background-color: #222222;
    border: 1px solid #444444;
    color: #ffffff;
}

/* Light Theme Dropdown Colors */
[data-bs-theme="light"] .dropdown-menu,
.day-theme .dropdown-menu {
    background-color: #ffffff;
    border: 1px solid #dddddd;
    color: #222222;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Category Links List Inside Dropdown */
ul.category-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Responsive Desktop Widths for Specific Category Dropdowns */
@media (min-width: 992px) {
    .dropdown-things-to-do {
        min-width: 440px;
    }
    .dropdown-haunted-attractions {
        min-width: 380px;
    }
    .dropdown-resources {
        min-width: 380px;
    }
    .dropdown-event-admins {
        min-width: 350px;
    }
    .dropdown-about {
        min-width: 290px;
    }
}

/* Card Link Items (li.link-details) */
ul.category-links li.link-details {
    border-radius: 5px;
    margin-bottom: 0.45rem;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

[data-bs-theme="dark"] ul.category-links li.link-details,
.night-theme ul.category-links li.link-details {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-bs-theme="light"] ul.category-links li.link-details,
.day-theme ul.category-links li.link-details {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.07);
}

ul.category-links li.link-details a {
    display: block;
    padding: 7px 12px;
    font-weight: bold;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

[data-bs-theme="dark"] ul.category-links li.link-details a,
.night-theme ul.category-links li.link-details a {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-bs-theme="light"] ul.category-links li.link-details a,
.day-theme ul.category-links li.link-details a {
    color: #111111;
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

[data-bs-theme="dark"] ul.category-links li.link-details a:hover,
.night-theme ul.category-links li.link-details a:hover {
    color: #ff9933;
    border-bottom-color: #ff9933;
    background-color: rgba(255, 153, 51, 0.1);
}

[data-bs-theme="light"] ul.category-links li.link-details a:hover,
.day-theme ul.category-links li.link-details a:hover {
    color: #7700dd;
    border-bottom-color: #7700dd;
    background-color: rgba(119, 0, 221, 0.08);
}

ul.category-links li.link-details p.category-description {
    padding: 6px 12px 8px 12px;
    margin-bottom: 0;
    font-size: 0.85rem;
    line-height: 1.35;
}

[data-bs-theme="dark"] ul.category-links li.link-details p.category-description,
.night-theme ul.category-links li.link-details p.category-description {
    color: #cccccc;
}

[data-bs-theme="light"] ul.category-links li.link-details p.category-description,
.day-theme ul.category-links li.link-details p.category-description {
    color: #555555;
}

/* Expand Main Category Link at Bottom of Dropdown */
.main-category-link {
    font-size: 0.85rem;
    font-weight: bold;
    text-align: right;
    display: block;
    padding: 6px 12px;
    text-decoration: none;
    border-radius: 4px;
}

[data-bs-theme="dark"] .main-category-link,
.night-theme .main-category-link {
    color: #ff9933;
}

[data-bs-theme="dark"] .main-category-link:hover,
.night-theme .main-category-link:hover {
    color: #ffcc66;
    background-color: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="light"] .main-category-link,
.day-theme .main-category-link {
    color: #7700dd;
}

[data-bs-theme="light"] .main-category-link:hover,
.day-theme .main-category-link:hover {
    color: #550099;
    background-color: rgba(0, 0, 0, 0.04);
}

/* Theme Switcher in About Dropdown */
.dropdown-header {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: bold;
    padding: 6px 12px 4px 12px;
}

[data-bs-theme="dark"] .dropdown-header,
.night-theme .dropdown-header {
    color: #aaaaaa;
}

[data-bs-theme="light"] .dropdown-header,
.day-theme .dropdown-header {
    color: #666666;
}

.theme-switch-link {
    padding: 6px 32px 6px 12px;
    border-radius: 4px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.day-theme-icon {
    color: #ffaa00;
}

.night-theme-icon {
    color: #aa44ff;
}

a.active-stylesheet-button {
    font-weight: bold;
    background-image: url('../img/icons-svg/check-gray.svg');
    background-position: right 12px center;
    background-size: 14px auto;
    background-repeat: no-repeat;
    background-color: rgba(255, 153, 51, 0.18) !important;
}

[data-bs-theme="light"] a.active-stylesheet-button,
.day-theme a.active-stylesheet-button {
    background-color: rgba(119, 0, 221, 0.12) !important;
}

/* ==========================================================================
   BREADCRUMBS IN NAVBAR
   ========================================================================== */

.navbar-breadcrumbs-container {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 4px;
    padding-bottom: 4px;
}

.breadcrumb {
    padding: 0;
    margin-bottom: 0;
    list-style: none;
    background-color: transparent;
}

.breadcrumb > li,
.breadcrumb-item {
    display: inline-flex;
    align-items: center;
    color: #ffdd99 !important;
    font-size: 0.9rem;
}

.breadcrumb > li + li::before,
.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.7) !important;
    padding-right: 0.5rem;
    padding-left: 0.5rem;
    content: "/" !important;
}

.breadcrumb > li a,
.breadcrumb-item a {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb > li a:hover,
.breadcrumb-item a:hover {
    color: #ffdd99 !important;
    text-decoration: underline;
}

.breadcrumb > li.active,
.breadcrumb-item.active {
    color: #ffdd99 !important;
    font-weight: 500;
}

#mainNavbar {
    flex-direction: column;
    align-items: stretch;
}

#mainNavbar > .container-fluid {
    width: 100%;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS (< 992px)
   ========================================================================== */

@media (max-width: 991.98px) {
    .navbar-collapse {
        padding-top: 0.75rem;
        padding-bottom: 0.5rem;
    }

    .navbar-nav .nav-item {
        margin-bottom: 0.25rem;
    }

    .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem !important;
    }

    .navbar-nav .dropdown-menu {
        position: static !important;
        float: none;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-shadow: none !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        margin-top: 0.25rem;
        margin-bottom: 0.5rem;
    }

    ul.category-links {
        min-width: 0 !important;
        width: 100% !important;
    }

    .header-top-container .text-start,
    .header-top-container .text-end {
        text-align: center !important;
    }
}


/* ==========================================================================
   BOOTSTRAP 5 ICONS & COMPATIBILITY LAYER
   ========================================================================== */

/* Social icon buttons in footer */
.social-icons .social-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #dd5500;
    color: #ffffff;
    font-size: 1.15rem;
    text-decoration: none;
    transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.social-icons .social-icon-btn:hover {
    background-color: #7700dd;
    color: #ffffff;
    transform: scale(1.1);
}

/* Backward compatibility mapping: Glyphicons -> Bootstrap Icons */
.glyphicon {
    display: inline-block;
    font-family: bootstrap-icons !important;
    font-style: normal;
    font-weight: normal !important;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    vertical-align: -0.125em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.glyphicon-chevron-left::before { content: "\f284"; }
.glyphicon-chevron-right::before { content: "\f285"; }
.glyphicon-chevron-up::before { content: "\f286"; }
.glyphicon-chevron-down::before { content: "\f282"; }
.glyphicon-menu-left::before { content: "\f284"; }
.glyphicon-menu-right::before { content: "\f285"; }
.glyphicon-menu-up::before { content: "\f286"; }
.glyphicon-menu-down::before { content: "\f282"; }
.glyphicon-search::before { content: "\f52a"; }
.glyphicon-plus::before { content: "\f64d"; }
.glyphicon-minus::before { content: "\f63b"; }
.glyphicon-remove::before { content: "\f659"; }
.glyphicon-repeat::before { content: "\f130"; }
.glyphicon-map-marker::before { content: "\f3e7"; }
.glyphicon-link::before { content: "\f470"; }
.glyphicon-envelope::before { content: "\f32f"; }
.glyphicon-earphone::before { content: "\f5b4"; }
.glyphicon-shopping-cart::before { content: "\f23d"; }
.glyphicon-heart-empty::before { content: "\f417"; }
.glyphicon-heart::before { content: "\f415"; }
.glyphicon-user::before { content: "\f4da"; }
.glyphicon-eye-open::before { content: "\f341"; }
.glyphicon-pencil::before { content: "\f4cb"; }
.glyphicon-resize-full::before { content: "\f14d"; }
.glyphicon-resize-small::before { content: "\f3de"; }
.glyphicon-sort-by-alphabet::before { content: "\f571"; }
.glyphicon-sort-by-alphabet-alt::before { content: "\f570"; }
.glyphicon-sort-by-attributes::before { content: "\f577"; }
.glyphicon-sort-by-attributes-alt::before { content: "\f576"; }
.glyphicon-off::before { content: "\f4ff"; }
.glyphicon-log-in::before { content: "\f1be"; }
.glyphicon-log-out::before { content: "\f1c3"; }
.glyphicon-print::before { content: "\f501"; }
.glyphicon-star::before { content: "\f586"; }
.glyphicon-floppy-disk::before { content: "\f7d8"; }
.glyphicon-arrow-up::before { content: "\f148"; }
.glyphicon-arrow-down::before { content: "\f128"; }
.glyphicon-globe::before { content: "\f3ee"; }


.my-account li a {
	text-decoration: none;
}
