/* 
   Phase 7.10 - Split Transparent Header 
   Provides the static transparent layout and the hover solid state.
*/

/* 1. Header Wrapper Settings */
.transparent-header {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 999 !important;
    background-color: transparent !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    transition: background-color 0.4s ease, border-bottom 0.4s ease;
    border-bottom: none !important;
}

/* 2. Height Configuration */
.header-row-height {
    min-height: 90px;
}

/* 3. Link Text color when transparent (Default: White) */
.transparent-header .navigation>li>a {
    color: var(--theme-body-bg) !important;
    transition: color 0.3s ease;
    font-weight: 500 !important;
    letter-spacing: 0.5px;
}

.transparent-header .search-btn {
    color: var(--theme-body-bg) !important;
    transition: color 0.3s ease;
}

/* 4. Logo Positioning (Zero-height centered flex) */
.transparent-header .nav-logo-center {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90px;
    /* Bu alan logo disari tasmasini engelleyecek kadar yukseklik aliyor */
    overflow: hidden;
}

.transparent-header .nav-logo-center img {
    max-height: 92px;
    /* Beautifully sized overflow */
    width: auto;
    transition: all 0.4s ease;
}

/* Keep logo controlled on sticky mode (overflow'u engellemek icin) */
.transparent-header.is-sticky .nav-logo-center img,
.transparent-header.sticky-active .nav-logo-center img {
    max-height: 78px !important;
    margin-top: 0;
    margin-bottom: 0;
    scale: 1;
}

/* If the user wants to use CSS filtering to turn an SVG logo white: */
.logo-white-filter {
    filter: brightness(0) invert(1);
}

/* Note: if the logo is a colored PNG, CSS filter brightness(0) invert(1) turns it perfectly white. */
.transparent-header .header-logo.logo-dark {
    display: inline-block !important;
}

.transparent-header .header-logo.logo-light {
    display: none !important;
    filter: none !important;
    scale: 1;
}

/* 5. Hover State - Solid Background */
.transparent-header:hover,
.transparent-header.is-sticky,
.transparent-header.sticky-active {
    position: fixed !important;
    background-color: var(--theme-primary) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

/* When Hovered -> Text turns to Dark (Secondary/Body Color) */
.transparent-header:hover .navigation>li>a,
.transparent-header.is-sticky .navigation>li>a,
.transparent-header:hover .search-btn,
.transparent-header.is-sticky .search-btn {
    color: var(--theme-body) !important;
    /* Or use white if primary is dark brown */
}

/* In the theme, primary_color is VERY dark (#4A443A). 
   So we actually want the text to remain WHITE if background is #4A443A.
   Let's check if the user asked for a white background on hover or primary.
   Ah, user said: "navbar transparent by default. On hover, the theme's primary color".
   Since the primary is dark brown (#4A443A), text MUST be white on hover too!
*/
.transparent-header:hover .navigation>li>a,
.transparent-header.is-sticky .navigation>li>a,
.transparent-header.sticky-active .navigation>li>a,
.transparent-header:hover .search-btn,
.transparent-header.is-sticky .search-btn,
.transparent-header.sticky-active .search-btn {
    color: #ffffff !important;
}


/* Dropdown adjustments so they don't look weird under a transparent header */
.transparent-header .sub-menu {
    top: 100% !important;
    /* Push it exactly below the 100px header */
    margin-top: 0;
    border-top: 3px solid var(--theme-secondary);
}

/* Mobile Toggler */
.transparent-header .mobile-nav-toggler i {
    color: #ffffff !important;
}

/* Responsive Overrides */
@media (max-width: 991px) {
    .header-row-height {
        min-height: 80px;
    }

    .transparent-header .header-logo.logo-dark {
        max-height: 56px;
        width: auto;
    }

    /* Mobilde anasayfada şeffaflığı kaldırıp scroll edilmiş rengi verelim */
    .transparent-header {
        position: fixed !important;
        background-color: var(--theme-primary) !important;
        background: var(--theme-primary) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
    }

    /* Yazı ve ikonları beyaz yapalım (scroll mantığıyla aynı) */
    .transparent-header .navigation>li>a,
    .transparent-header .search-btn,
    .transparent-header .mobile-nav-toggler i {
        color: #ffffff !important;
    }

    /* Koyu logoyu gizleyip açık / çevrilmiş logoyu gösterelim */
    .transparent-header .header-logo.logo-dark {
        display: inline-block !important;
    }

    .transparent-header .header-logo.logo-light {
        display: none !important;
        filter: none !important;
        scale: 1 !important;
    }
}

/* End of split_header.css */