/* ============================================
   DYNAMIC HEADER STYLES
   Modern, responsive header sistemi için CSS
   ============================================ */

/* Font Awesome Icon Fix */
.fas, .far, .fab, .fal, .fad {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands" !important;
    font-weight: 900 !important;
}

.far {
    font-weight: 400 !important;
}

.fab {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}

/* Üst bilgi çubuğu stilleri */
.top-bar {
    background-color: #1f2937;
    color: white;
    font-size: 0.875rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #374151;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.top-bar a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.top-bar a:hover {
    color: #60a5fa;
}

.top-bar .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 0 0.25rem;
    transition: all 0.3s ease;
}

.top-bar .social-links a:hover {
    background-color: rgba(96, 165, 250, 0.2);
    transform: translateY(-1px);
}

/* Header temel stilleri */
.dynamic-header {
    min-height: var(--header-height);
    height: auto;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.header-content {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Normal header için temel stiller */
.dynamic-header.header-type-normal {
    background-color: var(--header-bg-color);
    color: var(--header-text-color);
}

/* Resimli header için temel stiller */
.dynamic-header.header-type-image {
    background-color: transparent;
    color: inherit;
}

/* Resimli header için arka plan */
.dynamic-header.header-bg-hero,
.dynamic-header.header-bg-soft,
.dynamic-header.header-bg-side,
.dynamic-header.header-bg-clean {
    background-image: var(--header-bg-image) !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.dynamic-header.sticky,
.dynamic-header.header-sticky {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

/* Normal Header Stil Sınıfları */
.dynamic-header.header-type-normal.header-classic {
    background-color: var(--header-bg-color);
    border-bottom: 1px solid var(--header-border-color, rgba(0,0,0,0.1));
}

.dynamic-header.header-type-normal.header-modern {
    background: linear-gradient(135deg, var(--header-bg-color) 0%, var(--header-secondary-color, rgba(255,255,255,0.95)) 100%);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--header-accent-color, rgba(59, 130, 246, 0.2));
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.dynamic-header.header-type-normal.header-minimal {
    background-color: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.dynamic-header.header-type-normal.header-gradient {
    background: linear-gradient(var(--gradient-direction), var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
}

.dynamic-header.header-type-normal.header-gradient .menu-item > a {
    color: white;
}

.dynamic-header.header-type-normal.header-gradient .menu-item > a:hover,
.dynamic-header.header-type-normal.header-gradient .menu-item.active > a {
    color: rgba(255,255,255,0.9);
    background-color: rgba(255,255,255,0.1);
}

.dynamic-header.header-type-normal.header-gradient .site-title {
    color: white;
}

.dynamic-header.header-type-normal.header-gradient .site-title:hover {
    color: rgba(255,255,255,0.9);
}

.dynamic-header.header-type-normal.header-transparent {
    background-color: var(--header-bg-color);
    opacity: var(--header-opacity, 0.95);
    backdrop-filter: blur(var(--header-blur, 10px));
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-colored {
    background-color: var(--header-bg-color);
}

/* Logo stilleri */
.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: var(--logo-left-spacing, 0px);
}

.logo-image {
    height: var(--logo-height);
    width: auto;
    object-fit: contain;
    transition: transform var(--animation-duration) ease;
}

.enable-logo-hover .logo-image:hover {
    transform: scale(1.05);
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--header-text-color);
    text-decoration: none;
    transition: color 0.3s ease;
    margin-left: 0.75rem;
}

.site-title:hover {
    color: var(--header-hover-color);
}

.logo-left .header-content {
    justify-content: space-between;
}

.logo-center .header-content {
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.logo-center .menu-container {
    margin-top: 0.5rem;
}

.logo-right .header-content {
    justify-content: space-between;
    flex-direction: row-reverse;
}

/* Menü stilleri */
.menu-container {
    display: flex;
    align-items: center;
    max-width: 100%;
    overflow: visible;
}

.menu-container ul {
    flex-wrap: nowrap;
}

.menu-horizontal {
    flex-direction: row;
}

.menu-center {
    justify-content: center;
    width: 100%;
}

.menu-right {
    justify-content: flex-end;
    margin-left: auto;
}

.menu-item {
    position: relative;
}

.menu-item > a {
    color: var(--header-text-color);
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    transition: all var(--animation-duration) ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

/* Shimmer efekti */
.enable-menu-shimmer .menu-item > a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.enable-menu-shimmer .menu-item > a:hover::before {
    left: 100%;
}

/* Menü hover */
.menu-item > a:hover,
.menu-item.active > a {
    color: var(--header-hover-color);
    background-color: rgba(59, 130, 246, 0.1);
}

.enable-menu-hover .menu-item > a:hover,
.enable-menu-hover .menu-item.active > a {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.menu-item.has-dropdown .dropdown-icon {
    margin-left: 0.25rem;
    transition: transform 0.3s ease;
}

.menu-item:hover .dropdown-icon {
    transform: rotate(180deg);
}

/* Dropdown menü */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.menu-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu .menu-item > a {
    color: #374151;
    padding: 0.75rem 1rem;
    border-radius: 0;
    border-bottom: 1px solid #f3f4f6;
    gap: 4px;
}

.dropdown-menu .menu-item:last-child > a {
    border-bottom: none;
}

.dropdown-menu .menu-item > a:hover {
    background-color: #f9fafb;
    color: var(--header-hover-color);
}

/* Mobil menü */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--header-text-color);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--header-hover-color);
}

.mobile-menu {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    background: var(--header-bg-color);
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 99999 !important;
    overflow-y: auto;
    max-height: 70vh;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.header-static + .mobile-menu {
    position: absolute;
    top: 100%;
}

.header-sticky .mobile-menu {
    position: fixed;
}

.mobile-menu.active {
    display: block !important;
}

.mobile-menu .menu-item {
    border-bottom: 1px solid rgba(229, 231, 235, 0.3);
}

.mobile-menu .menu-item > a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 1rem;
    color: var(--header-text-color);
    text-decoration: none;
}

.mobile-menu .menu-item > a:hover {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--header-hover-color);
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 768px) {
    .top-bar {
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    .top-bar .container {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .contact-info {
        flex-direction: column;
        gap: 5px;
    }

    .contact-info > div {
        font-size: 0.7rem;
    }

    .social-links {
        justify-content: center;
    }

    .social-links a {
        width: 25px;
        height: 25px;
        font-size: 0.7rem;
    }

    .desktop-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 0.5rem;
        background-color: rgba(59, 130, 246, 0.1);
        color: var(--header-text-color);
        transition: all 0.3s ease;
    }

    .mobile-menu-toggle:hover {
        background-color: rgba(59, 130, 246, 0.2);
        transform: scale(1.05);
    }

    .logo-center .header-content {
        flex-direction: row;
        justify-content: space-between;
    }

    .logo-center .menu-container {
        margin-top: 0;
    }

    .dynamic-header {
        height: auto;
        min-height: var(--header-height);
        padding: 0.5rem 0;
    }

    .logo-image {
        height: calc(var(--logo-height) * 0.8);
    }

    .site-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1rem;
    }

    .logo-container img {
        max-height: 40px;
    }
    
    .dynamic-header,
    .top-bar,
    .header-content,
    .max-w-7xl {
        max-width: 100vw !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }
    
    .dynamic-header.sticky,
    .dynamic-header.header-sticky {
        position: sticky !important;
        top: 0 !important;
    }
}

