﻿.gpt-header {
    position: relative;
    width: 100%;
    z-index: 99999;
    background: transparent; /* transparent background */
}

.gpt-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.gpt-header-logo {
    font-size: 24px;
    font-weight: bold;
    transition: transform 0.3s ease;
}
.gpt-header-logo-fixed {
    position: fixed;
    top: 10px;
    left: 0;
    margin-left: -70px;
    z-index: 100000; /* Make sure it's above everything */
}

.gpt-header-nav,
.gpt-header-mobile-nav {
    flex-grow: 1;
}

.gpt-header-menu {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.gpt-header-item {
    position: relative;
    margin: 0 10px;
}

    .gpt-header-item > a {
        text-decoration: none;
        padding: 10px;
        display: block;
        color: #fff;
    }

.gpt-header-submenu {
    display: none;
    position: absolute;
    top: 100%;
    min-width: 200px;
    background: rgba(0, 0, 0, 0.9);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 1000;
    border-radius: 6px;
}

    .gpt-header-submenu li a {
        padding: 10px;
        display: block;
        color: #fff;
        white-space: nowrap;
    }

.gpt-header-has-sub:hover .gpt-header-submenu {
    display: block;
}

.gpt-header-flag {
    width: 20px;
    height: 14px;
    vertical-align: middle;
}

/* Mobile specific styles */
.mobile-view {
    display: none;
    flex-direction: column;
    position: relative;
}

.gpt-header-toggle-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: #fff;
    padding: 10px;
}

/* === Mobile Overlay === */
.gpt-header-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99998;
    display: none;
}

    .gpt-header-overlay.show {
        display: block;
    }

.gpt-header-mobile-nav {
    display: none;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.95);
    position: absolute;
    top: 100%;
    width: 100%;
    z-index: 99999;
}

    .gpt-header-mobile-nav .gpt-header-menu {
        flex-direction: column;
    }

/* Responsive toggles */
@media (max-width: 768px) {
    .window-view {
        display: none;
    }

    .mobile-view {
        display: flex;
    }

    #gpt-mobile-menu.show {
        display: flex;
    }
}

@media (min-width: 769px) {
    .window-view {
        display: flex;
    }

    .mobile-view {
        display: none;
    }
}

/* RTL Support */
[dir="rtl"] .gpt-header-container {
    flex-direction: row-reverse;
}

[dir="rtl"] .gpt-header-menu {
    flex-direction: row-reverse;
}

[dir="rtl"] .gpt-header-submenu {
    left: auto;
    right: 0;
}
