/*
 * ASTORIA STUDIO - Style dla nawigacji (Desktop & Mobile)
 * Plik zachowuje pełne formatowanie, wcięcia i komentarze.
 */

html, body {
    margin: 0;
    padding: 0;
    /* Zgodność ze starszym kodem - globalna czcionka Montserrat */
    font-family: 'Montserrat', sans-serif;
}

main {
    display: grid;
    place-items: center;
    color: white;
    text-align: center;
}

/* ========================================== */
/* STYLIZACJA WIDOKU DESKTOPOWEGO             */
/* ========================================== */
.asto-topbar-nav {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    border-radius: 20px;
    background-color: #111;
    /* Nieznacznie podniesiono wysokość: padding 12px zamiast 10px */
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.3s ease;
    z-index: 1000;
}

.asto-topbar-nav:hover {
    transform: translateX(-50%) scale(1.03);
}

.asto-logo, #asto-logo-mobile {
    font-size: 23px;
    font-weight: bold;
    color: #ffffff !important; /* Gwarancja białego koloru czcionki dla logo */
    text-decoration: none;
    position: relative;
    text-transform: uppercase;
}

.asto-logo:hover, #asto-logo-mobile:hover {
    color: #ffffff !important; /* Wymuszenie braku zmiany koloru na hover dla logo */
    text-decoration: none;
}

/* Kontener linków w desktopie */
.asto-topbar-menu {
    display: flex;
    gap: 10px;
    align-items: center;
}

.asto-topbar-menu a {
    font-size: 14px;
    /* Zmniejszono górny/dolny padding z 5px na 3px, aby tło (gradient) było niższe */
    padding: 3px 10px;
    position: relative;
    color: #ffffff !important; /* Gwarancja białego koloru czcionki */
    isolation: isolate;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    border: none !important; /* Usunięcie jakichkolwiek domyślnych obramowań */
}

/* Animacja i gradient z poprzedniego kodu zachowana dla spójności kolorystycznej */
.asto-topbar-menu a.asto-active::before, 
.asto-topbar-menu a:hover::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to right, #6a11cb 0%, #2575fc 100%);
    z-index: -1;
    border-radius: 10px;
}

.asto-topbar-menu a:hover {
    color: #ffffff !important; /* Wymuszenie białego koloru czcionki na hover */
    transform: translateY(-3px);
    border: none !important; /* Usunięcie obramowania na hover */
}

.asto-topbar-menu a:hover:not(.asto-active)::before {
    opacity: 0.5;
}

/* ========================================== */
/* STYLIZACJA WIDOKU MOBILNEGO                */
/* ========================================== */
#asto-navbar {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: 90%;
    background-color: #111;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Wysokość dla menu mobilnego pośrednia: 55px */
    height: 55px;
    border-radius: 20px;
    transition: border-radius 0.3s ease;
}

#asto-logo-mobile {
    font-size: 20px;
    margin-left: 10px;
}

#asto-mobile-menu {
    background-color: #111;
    position: fixed;
    /* Dopasowane położenie zjazdu menu: 50px */
    top: 50px; 
    left: 50%;
    transform: translateX(-50%) scaleY(0);
    transform-origin: top;
    padding: 20px;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 100%;
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease-out, opacity 0.3s ease;
}

#asto-mobile-menu.asto-show-menu {
    transform: translateX(-50%) scaleY(1);
    opacity: 1;
    pointer-events: auto;
}

#asto-mobile-menu ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

#asto-mobile-menu li {
    margin: 5px 0;
}

#asto-mobile-menu a {
    color: #ffffff !important; /* Wymuszenie białego koloru w mobile */
    text-decoration: none;
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 400; /* Zmieniono z bold na 400, aby czcionka była lżejsza */
    letter-spacing: 1px;
    display: inline-block;
    transition: color 0.3s ease, background-image 0.3s ease, transform 0.3s ease;
    padding: 5px 10px;
    border: none !important;
}

/* Brak klas :hover dla urządzeń mobilnych - ewentualna klasa active przypisana przez JS */
#asto-mobile-menu a.asto-active {
    color: #ffffff !important;
    background-image: linear-gradient(to right, #6a11cb 0%, #2575fc 100%);
    border-radius: 10px;
}

/* ========================================== */
/* PRZYCISK HAMBURGER (Menu Toggle)           */
/* ========================================== */
#asto-menu-toggle {
    background-color: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    position: relative;
    width: 24px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    left: -10px;
}

.asto-line {
    width: 100%;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease;
    position: absolute;
    left: 0;
    right: 0;
}

.asto-line-top {
    top: 0;
    transform-origin: center;
    transform: translateY(3px);
}

.asto-line-middle {
    top: 50%;
    transform: translateY(-50%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.asto-line-bottom {
    bottom: 0;
    transform-origin: center;
    transform: translateY(-3px);
}

#asto-menu-toggle.asto-open .asto-line-top {
    opacity: 0;
    transform: rotate(0deg) translateY(0);
}

#asto-menu-toggle.asto-open .asto-line-middle {
    opacity: 1;
    transform: translateY(0px) rotate(-45deg);
}

#asto-menu-toggle.asto-open .asto-line-bottom {
    transform: translateY(-10px) rotate(45deg);
}