/* Modern Header Styling for Ostadio */

/* Main header container */
.header {
    background-color: rgba(232, 234, 246, 0.6);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1000;
}

/* Logo styling */
.header__logo {
    display: inline-block;
    vertical-align: middle;
}

.header__logo img {
    height: 40px;
    width: auto;
}

/* Navigation styling */
.header__nav {
    display: inline-block;
    vertical-align: middle;
    margin-right: 20px;
}

.menu-container {
    position: relative;
}

/* Main menu */
.menu {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
}

.menu-item {
    margin: 0 10px;
}

.menu-search {
    margin-left: 10px;
}

.menu-search a {
    color: #5c6bc0;
    font-size: 18px;
}

.heaeder_nav_item {
    color: #3f51b5;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    padding: 5px 0;
    display: block;
}

.heaeder_nav_item:hover {
    color: #1a237e;
}

.heaeder_nav_item:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #3f51b5;
    bottom: 0;
    left: 0;
    transition: width 0.3s;
}

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

/* Search container */
.menu-search-container {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 15px;
    display: none;
    z-index: 10;
}

.menu-search-container.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

.menu-search-input {
    position: relative;
}

.header_search_type_container ul {
    display: flex;
    padding: 0;
    margin-bottom: 15px;
}

.header_search_type_container ul li {
    margin-left: 15px;
    position: relative;
    display: flex;
    align-items: center;
}

.header_search_select_container {
    position: relative;
}

.header_search_submit {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #3f51b5;
    cursor: pointer;
}

.menu-search-close {
    position: absolute;
    top: 10px;
    left: 10px;
    color: #9e9e9e;
    font-size: 16px;
}

/* User profile section */
.header__user {
    display: flex;
    align-items: center;
    float: left;
}

.header__user-profile {
    position: relative;
    margin-left: 15px;
}

.header__user-profile-button {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.header__user-profile-button:hover {
    background: rgba(63, 81, 181, 0.1);
}

.header__user-profile-button-name {
    margin-left: 10px;
    font-size: 14px;
    color: #424242;
}

.header__user-profile-button-image {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
}

.header__user-profile-button-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header__user-profile-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    width: 220px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
    display: none;
}

.header__user-profile-dropdown.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

/* Notifications */
.header__user-notifications {
    position: relative;
}

.header__user-notifications-button {
    position: relative;
    cursor: pointer;
    font-size: 18px;
    color: #5c6bc0;
    padding: 5px;
}

.header__user-notifications-button-count {
    position: absolute;
    top: 0;
    right: 0;
    background: #f44336;
    color: white;
    border-radius: 50%;
    font-size: 10px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header__user-notifications-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    width: 280px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
    display: none;
}

.header__user-notifications-dropdown.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

.header__user-notifications-dropdown-header {
    padding: 10px 15px;
    border-bottom: 1px solid #f5f5f5;
}

.header__user-notifications-dropdown-header h4 {
    margin: 0;
    font-size: 14px;
    color: #424242;
}

.header__user-notifications-dropdown-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 0;
    margin: 0;
    list-style: none;
}

.header__user-notifications-dropdown-list-item-empty {
    padding: 15px;
    text-align: center;
    color: #9e9e9e;
    font-size: 13px;
}

.header__user-notifications-dropdown-footer {
    padding: 10px 15px;
    text-align: center;
    border-top: 1px solid #f5f5f5;
}

.header__user-notifications-dropdown-footer a {
    color: #3f51b5;
    font-size: 13px;
    text-decoration: none;
}

/* Guest section */
.header__guest {
    float: left;
    position: relative;
}

.header__guest-button {
    cursor: pointer;
    padding: 8px 16px;
    background: #3f51b5;
    color: white;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.header__guest-button:hover {
    background: #303f9f;
}

.header__guest-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
    display: none;
    padding: 20px;
}

.header__guest-dropdown.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

.header__guest-dropdown-logo {
    text-align: center;
    margin-bottom: 20px;
}

.header__guest-dropdown-logo img {
    height: 50px;
    width: auto;
}

/* Mobile menu */
.responsive_btn_menu {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
}

.responsive_btn_menu span {
    display: block;
    width: 100%;
    height: 2px;
    background: #3f51b5;
    position: absolute;
    transition: all 0.3s ease;
}

#menu_line_1 {
    top: 0;
}

#menu_line_2 {
    top: 9px;
}

#menu_line_3 {
    bottom: 0;
}

.responsive_btn_menu.active #menu_line_1 {
    transform: rotate(45deg);
    top: 9px;
}

.responsive_btn_menu.active #menu_line_2 {
    opacity: 0;
}

.responsive_btn_menu.active #menu_line_3 {
    transform: rotate(-45deg);
    bottom: 9px;
}

.fade-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.fade-screen.active {
    opacity: 1;
    visibility: visible;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive design */
@media (max-width: 992px) {
    .header__nav {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background: white;
        z-index: 100;
        transition: all 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 20px;
    }

    .header__nav.active {
        right: 0;
    }

    .menu {
        flex-direction: column;
        align-items: flex-start;
    }

    .menu-item {
        margin: 10px 0;
    }

    .responsive_btn_menu {
        display: block;
        float: right;
        margin-left: 15px;
    }
} 