/* 
 * WELCOME FEATURE STYLES
 * Header ve Navigation için Welcome özellikleri
 * Tüm sayfalarda kullanılabilir
 */

/* ==========================================================================
   0. Header Visibility (Light Background Pages)
   -------------------------------------------------------------------------- */
.header.header-transparent.dark {
    background: linear-gradient(135deg, rgba(5, 10, 22, 0.98) 0%, rgba(2, 5, 14, 0.98) 100%) !important;
    box-shadow: 0 20px 45px rgba(2, 6, 23, 0.45) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.header.header-transparent.dark .nav-menu > li > a,
.header.header-transparent.dark .nav-menu > li > a:focus,
.header.header-transparent.dark .navigation-button a,
.header.header-transparent.dark .nav-menu > li > a .submenu-indicator {
    color: #f6fbff !important;
}

.header.header-transparent.dark .nav-menu > li.active > a,
.header.header-transparent.dark .nav-menu > li > a:hover,
.header.header-transparent.dark .nav-menu > li > a:focus:hover,
.header.header-transparent.dark .navigation-button a:hover {
    color: #7bd2ff !important;
}

.header.header-transparent.dark .custom-menu-item.has-dropdown > a:after {
    color: inherit;
}

.header.header-transparent.dark .nav-toggle,
.header.header-transparent.dark .nav-toggle:before,
.header.header-transparent.dark .nav-toggle:after {
    background-color: transparent;
    border-color: #ffffff !important;
}

.header.header-transparent.dark .nav-toggle span,
.header.header-transparent.dark .nav-toggle span:before,
.header.header-transparent.dark .nav-toggle span:after {
    background-color: #ffffff !important;
}

/* Mobilde login ikonunu gizle */
@media (max-width: 991px) {
    .mobile_nav {
        display: none !important;
    }
}

/* Mobil menüde login linkini göster */
.mobile-login-link {
    display: none;
}

@media (max-width: 991px) {
    .mobile-login-link {
        display: block !important;
    }
}

/* Desktop'ta login linkini gizle */
@media (min-width: 992px) {
    .mobile-login-link {
        display: none !important;
    }
}

/* Mobile account menu styling */
.mobile-account-menu {
    display: none;
}

@media (max-width: 991px) {
    .mobile-account-menu {
        display: block !important;
    }

    .mobile-account-menu > a {
        display: flex !important;
        align-items: center !important;
    }

    .mobile-account-menu .dropdown-menu {
        background: rgba(10, 14, 27, 0.95) !important;
        margin-top: 5px !important;
        border-radius: 10px !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45) !important;
    }

    .mobile-account-menu .dropdown-menu li a {
        color: white !important;
        padding: 10px 15px 10px 35px !important;
    }

    .mobile-account-menu .dropdown-menu li a i {
        margin-right: 8px !important;
    }
}

@media (min-width: 992px) {
    .mobile-account-menu {
        display: none !important;
    }
}

/* Account Menu Item - Desktop Welcome Feature */
.account-menu-item {
    position: relative;
}

.account-menu-item .account-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    padding: 10px 15px !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.account-menu-item .account-link:hover {
    background: rgba(255, 255, 255, 0.15) !important;
}

.account-menu-item .account-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 14px;
}

.account-menu-item .account-dropdown {
    position: absolute !important;
    right: 0 !important;
    top: calc(100% + 8px) !important;
    background: linear-gradient(165deg, #1a2034 0%, #0f1424 100%) !important;
    border-radius: 12px !important;
    min-width: 240px !important;
    box-shadow: 0 18px 50px rgba(5, 8, 20, 0.45) !important;
    padding: 8px 0 !important;
    list-style: none !important;
    margin: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    display: none !important;
    transform: translateY(-10px) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 999999 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(16px) !important;
}

.account-menu-item:hover .account-dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    transform: translateY(0) !important;
}

/* Hover area extension to prevent dropdown closing */
.account-menu-item::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
}

.account-dropdown li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.account-dropdown li a {
    display: flex !important;
    align-items: center !important;
    padding: 12px 20px !important;
    color: #f5f7ff !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
    font-size: 15px !important;
    position: relative !important;
    background: transparent !important;
}

.account-dropdown li a:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    padding-left: 25px !important;
}

.account-dropdown li a i {
    width: 22px !important;
    color: inherit !important;
    font-size: 14px !important;
}

/* Separator line between items */
.account-dropdown li:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Logout item special styling */
.account-dropdown li:last-child a {
    color: #ff8585 !important;
}

.account-dropdown li:last-child a:hover {
    background: rgba(255, 133, 133, 0.15) !important;
    color: #ffb3b3 !important;
}

/* Mobile responsive */
@media (max-width: 991px) {
    .account-menu-item {
        padding: 10px 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .account-menu-item .account-link {
        width: 100%;
        justify-content: flex-start;
    }

    .account-menu-item .account-dropdown {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: none !important;
        transform: none !important;
        box-shadow: none !important;
        background: rgba(12, 16, 30, 0.92) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        margin-top: 10px !important;
        min-width: 100% !important;
    }

    .account-menu-item:hover .account-dropdown,
    .account-menu-item.active .account-dropdown {
        display: block !important;
    }

    .account-dropdown li a {
        color: #ffffff !important;
        padding: 10px 15px 10px 40px !important;
    }

    .account-dropdown li a:hover {
        background: rgba(255, 255, 255, 0.1) !important;
        color: #ffffff !important;
    }

    .account-dropdown li:not(:last-child) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    }

    .account-dropdown li:last-child a {
        color: #ff8585 !important;
    }

    .account-dropdown li:last-child a:hover {
        background: rgba(255, 133, 133, 0.2) !important;
        color: #ffc3c3 !important;
    }
}

/* Dropdown menu styles */
.custom-menu-item {
    position: relative !important;
}

.custom-menu-item .dropdown-menu {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    background-color: #ffffff !important;
    box-shadow: 0px 8px 20px 0px rgba(0,0,0,0.15) !important;
    min-width: 180px !important;
    z-index: 100002 !important;
    border-radius: 8px !important;
    padding: 8px 0 !important;
    margin-top: 0px !important;
    list-style: none !important;
}

.custom-menu-item .dropdown-menu li {
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.custom-menu-item .dropdown-menu li a {
    display: block !important;
    padding: 10px 20px !important;
    color: #2C3E50 !important;
    text-decoration: none !important;
    font-size: 15px !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
}

.custom-menu-item .dropdown-menu li a:hover {
    background-color: #7950F2 !important;
    color: white !important;
    padding-left: 25px !important;
}

/* Show the dropdown menu on hover */
.custom-menu-item:hover > .dropdown-menu,
.custom-menu-item.has-dropdown:hover > .dropdown-menu {
    display: block !important;
}

/* Dropdown arrow indicator */
.custom-menu-item.has-dropdown > a:after {
    content: '▼';
    margin-left: 5px;
    font-size: 10px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.custom-menu-item.has-dropdown:hover > a:after {
    transform: rotate(180deg);
}

/* Keep dropdown visible when hovering over it */
.custom-menu-item .dropdown-menu:hover {
    display: block !important;
}

/* Mobile dropdown */
@media (max-width: 991px) {
    .custom-menu-item .dropdown-menu {
        position: static !important;
        box-shadow: none !important;
        padding-left: 20px !important;
        background-color: transparent !important;
        margin-top: 0 !important;
    }

    .custom-menu-item .dropdown-menu li a {
        color: white !important;
        padding: 8px 15px !important;
    }

    .custom-menu-item .dropdown-menu li a:hover {
        background-color: rgba(121, 80, 242, 0.2) !important;
    }

    .custom-menu-item.dropdown-open .dropdown-menu {
        display: block !important;
    }
}

/* Header z-index ayarı */
@media (max-width: 991px) {
    .header {
        z-index: 100000 !important;
        position: relative !important;
    }
    
    .nav-header {
        z-index: 100001 !important;
        position: relative !important;
    }
}

/* Mobil menü wrapper stilleri */
@media (max-width: 991px) {
    .nav-menus-wrapper {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        width: 80% !important;
        max-width: 300px !important;
        height: 100vh !important;
        background-color: #1a1a2e !important;
        transition: left 0.3s ease !important;
        overflow-y: auto !important;
        z-index: 99999 !important;
        padding-top: 60px !important;
        display: block !important;
        margin-left: 0 !important;
    }

    .nav-menus-wrapper.nav-menus-wrapper-open {
        left: 0 !important;
    }

    .nav-menu {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .custom-menu-item {
        width: 100% !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    .custom-menu-item a {
        width: 100% !important;
        padding: 15px 20px !important;
        color: white !important;
        display: block !important;
        margin: 0 !important;
        background-color: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    .custom-menu-item a:hover {
        background-color: rgba(121, 80, 242, 0.2) !important;
    }
}

/* Mobil menü overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 99998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobil menü açıkken body scroll kilidi */
body.mobile-menu-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
}

