// Header
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    height: 70px;
    z-index: 1000;
    // background will be set dynamically via styles.php

    .container {
        @include flex(space-between, center);
        height: 100%;
        gap: 20px;
    }

    // Logo
    &__logo {
        width: 190px;
        height: 44px;
        flex-shrink: 0;
        @include flex(center, center);
        z-index: 1001;

        &-link {
            display: inline-block;
            line-height: 0;
        }

        img {
            width: 190px;
            height: 44px;
            display: block;
            cursor: pointer;
            object-fit: contain;
            transition: opacity 0.3s ease;
        }
    }

    // Navigation
    &__nav {
        flex: 1;
        @include flex(center);
    }

    &__menu {
        list-style: none;
        margin: 0;
        padding: 0;
        @include flex(null, center, null, 40px);

        &-link {
            // color will be set dynamically
            text-decoration: none;
            font-size: 16px;
            font-weight: 500;
            transition: opacity 0.3s ease;
            color:#fff;
            white-space: nowrap;
            opacity: 0.9;

            &:hover { 
                opacity: 1;
                color:#fff;
            }
        }
    }

    // Actions (buttons)
    &__actions {
        @include flex(null, center, null, 12px);
        flex-shrink: 0;
    }

    &__btn {
        border-radius: 6px;
        border: 1px solid #FFF;
        display: flex;
        height: 42px;
        padding: 8px 32px;
        justify-content: center;
        align-items: center;
        gap: 8px;
        color: #FFF;
        font-size: 14px;
        font-style: normal;
        font-weight: 600;
        line-height: normal;
        text-transform: uppercase;
        background:none;
        cursor:pointer;

        &--primary {
            // background and color will be set dynamically
            &:hover {
                transform: translateY(-1px);
                box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            }
        }

        &--secondary {
            // background and color will be set dynamically
            &:hover {
                transform: translateY(-1px);
                box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            }
        }
    }

    // Burger menu button
    &__burger {
        display: none;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 24px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
        transition: transform 0.3s ease;

        &:hover {
            transform: scale(1.1);
        }

        &-line {
            width: 100%;
            height: 3px;
            border-radius: 2px;
            // background will be set dynamically
            transition: all 0.3s ease;
        }

        // Active state (menu open)
        &.active {
            .header__burger-line {
                &:nth-child(1) {
                    transform: translateY(10.5px) rotate(45deg);
                }

                &:nth-child(2) {
                    opacity: 0;
                }

                &:nth-child(3) {
                    transform: translateY(-10.5px) rotate(-45deg);
                }
            }
        }
    }

    // Tablet styles
    @include tablet {
        &__menu {
            gap: 24px;
        }

        &__btn {
            padding: 8px 16px;
            font-size: 13px;
        }
    }

    // Mobile styles
    @include mobile {
        height: 60px;

        &__logo {
            width: 150px;
            height: 35px;

            img {
                width: 150px;
                height: 35px;
            }
        }

        // Show burger menu
        &__burger {
            display: flex;
        }

        // Mobile navigation
        &__nav {
            position: fixed;
            top: 60px;
            left: 0;
            width: 100%;
            height: calc(100vh - 60px);
            // background will be set dynamically
            transform: translateX(-100%);
            transition: transform 0.3s ease;
            padding: 40px 20px;
            overflow-y: auto;
            backdrop-filter: blur(10px);

            &.active {
                transform: translateX(0);
            }
        }

        &__menu {
            flex-direction: column;
            align-items: flex-start;
            gap: 24px;

            &-link {
                font-size: 18px;
            }
        }

        &__actions {
            gap: 8px;
        }

        &__btn {
            display: none;
        }

        // Mobile buttons in menu
        &__nav.active {
            .header__btn {
                display: block;
                width: calc(100% - 40px);
                margin: 0 20px 16px;
            }
        }
    }
}
