/* ====================================================================
   HEADER STYLES
   File: css/header.css
   Description: Styles cho header, search box, và các elements trong header
   ==================================================================== */

/* ===== Header Base ===== */
.navbar {
    /* Base styles - Tailwind sẽ override phần này */
}

.header-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ===== Search Box Styles ===== */
#bca-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

#bca-search-btn {
    cursor: pointer;
    width: 33px;
    height: 33px;
    border-radius: 9999px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#bca-search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

#bca-search-box {
    display: none;
    align-items: center;
    background: #fff;
    border: 1.5px solid #C8102E;
    border-radius: 9999px;
    padding: 0 10px 0 14px;
    height: 33px;
    min-width: 240px;
    gap: 6px;
    transition: all 0.3s ease;
}

#bca-search-box.active {
    display: flex;
}

#bca_search_input {
    flex: 1;
    outline: none;
    border: none;
    font-size: 14px;
    color: #333;
    background: transparent;
    min-width: 0;
}

#bca_search_input::placeholder {
    color: #999;
}

#bca_search_input:focus {
    outline: none;
}

/* ===== Sidebar Menu ===== */
#sidebar-menu {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    transition: transform 0.3s ease-in-out;
    height: 100vh;
    transform: translateX(-100%);
    width: 80%;
}

@media (min-width: 1024px) {
    #sidebar-menu {
        width: 305px;
    }
}

#sidebar-menu.open {
    transform: translateX(0);
}

/* ===== Mobile Menu Button ===== */
.mobile-menu-btn,
.desktop-menu-btn {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.mobile-menu-btn:hover,
.desktop-menu-btn:hover {
    transform: scale(1.1);
}

.mobile-menu-btn:active,
.desktop-menu-btn:active {
    transform: scale(0.95);
}

/* ===== Scrollbar Styles ===== */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* ===== Footer Title ===== */
.footer__title {
    position: relative;
    transition: color 0.3s ease;
}

.footer__title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: currentColor;
    transition: width 0.3s ease;
}

.footer__title:hover::after {
    width: 100%;
}

/* ===== Language Switch Button ===== */
.cursor-pointer.border {
    transition: all 0.3s ease;
}

.cursor-pointer.border:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ===== Navbar Scrolled State ===== */
.navbar.scrolled {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled .header-bg {
    height: 58px;
}

@media (min-width: 1024px) {
    .navbar.scrolled .header-bg {
        height: 88px;
    }
}

/* ===== Weather Widget ===== */
.weather {
    transition: all 0.5s ease;
}

/* ===== Overlay for Mobile Menu ===== */
#sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== Logo Hover Effect ===== */
.navbar a[href*="bocongan.gov.vn"] img {
    transition: transform 0.3s ease;
}

.navbar a[href*="bocongan.gov.vn"]:hover img {
    transform: scale(1.05);
}