/* =============================================
   UTAX — Wspólne style
   =============================================
   
   To jest JEDYNE miejsce gdzie edytujesz style
   nagłówka, nawigacji, footera, breadcrumba
   i bazowych elementów dla WSZYSTKICH stron.
   
   Zmienne kolorów: sekcja :root poniżej
   Nagłówek/nav:   sekcja Header
   Breadcrumb:     sekcja Breadcrumb
   Footer:         sekcja Footer
   Hamburger menu: sekcja Hamburger
   Responsywność:  sekcja Mobile
   ============================================= */

/* =============================================
   ZMIENNE — edytuj kolory tutaj
   ============================================= */
:root {
    --utax-orange: #e85d04;
    --utax-purple: #7b2d8e;
    --utax-dark:   #2d2d2d;
    --utax-gray:   #666666;
    --utax-light:  #f5f5f5;
    --utax-white:  #ffffff;

    /* Z-index hierarchy */
    --z-header:    100;
    --z-overlay:   140;
    --z-nav:       150;
    --z-hamburger: 200;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--utax-dark);
    line-height: 1.6;
    background: var(--utax-white);
}

/* =============================================
   TOP ACCENT — fioletowa kreska na górze
   ============================================= */
.top-accent {
    height: 4px;
    background: var(--utax-purple);
}

/* =============================================
   HEADER
   ============================================= */
header {
    background: var(--utax-white);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: auto;
}

.logo-image {
    max-height: 60px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

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

/* Stary fallback logo (niewidoczny, dla kompatybilności) */
.logo-text  { display: none; }
.logo-boxes { display: none; }
.logo-box   { display: none; }

/* =============================================
   NAWIGACJA
   ============================================= */
nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--utax-dark);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--utax-purple);
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--utax-purple);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.lang-switch {
    display: none;
}

/* =============================================
   BREADCRUMB
   ============================================= */
.breadcrumb {
    padding: 0.8rem 2rem;
    background: var(--utax-white);
    font-size: 0.85rem;
    color: var(--utax-gray);
    border-bottom: 1px solid #f0f0f0;
}

.breadcrumb a {
    color: var(--utax-gray);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--utax-purple);
}

/* =============================================
   FOOTER
   ============================================= */
footer {
    background: var(--utax-dark);
    color: var(--utax-white);
    padding: 3rem 2rem 1.5rem;
    margin-top: 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 4rem;
    text-align: center;
}

.footer-column h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--utax-orange);
}

.footer-column ul { list-style: none; }
.footer-column ul li { margin-bottom: 0.5rem; }

.footer-column ul a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-column ul a:hover { color: var(--utax-orange); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* =============================================
   HAMBURGER MENU
   ============================================= */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: var(--z-hamburger);
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2.5px;
    background: var(--utax-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(7.5px)  rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: var(--z-overlay);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.nav-overlay.visible {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

/* =============================================
   MOBILE
   ============================================= */
@media (max-width: 768px) {

    header {
        padding: 1rem;
        z-index: var(--z-hamburger);
    }

    .hamburger { display: flex; }

    nav {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background: var(--utax-white);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 0;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
        transition: right 0.3s ease;
        z-index: var(--z-nav);
        overflow-y: auto;
    }

    nav.open { right: 0; }

    .nav-links {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--utax-light);
    }

    .nav-links a {
        display: block;
        padding: 1rem 0;
        font-size: 1rem;
    }

    .nav-links a::after { display: none; }

    .nav-links a.active {
        color: var(--utax-purple);
        border-left: 3px solid var(--utax-purple);
        padding-left: 0.75rem;
    }
}

/* =============================================
   POMOCNICZE KLASY — dostępne globalnie
   ============================================= */

/* Animacja wejścia — dodaj klasę .fade-in-up do elementu */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fade-in-up { animation: fadeInUp 0.6s ease-out both; }
.fade-in-up:nth-child(2) { animation-delay: 0.1s; }
.fade-in-up:nth-child(3) { animation-delay: 0.2s; }
.fade-in-up:nth-child(4) { animation-delay: 0.3s; }

/* Przycisk główny */
.btn-primary {
    display: inline-block;
    padding: 0.9rem 2rem;
    background: var(--utax-purple);
    color: var(--utax-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 4px;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(123, 45, 142, 0.3);
    cursor: pointer;
    border: none;
}

.btn-primary:hover {
    background: var(--utax-orange);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 93, 4, 0.4);
}

/* Przycisk linkowy */
.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--utax-purple);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: gap 0.3s ease;
}

.btn-link:hover { gap: 0.8rem; }

/* =============================================
   FILTR PRODUKTÓW (hardware.html)
   ============================================= */
.filter-panel {
    background: var(--utax-white);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--utax-dark);
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.filter-buttons {
    display: flex;
    gap: 6px;
}

.filter-pill {
    padding: 0.45rem 1.1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Open Sans', sans-serif;
    background: var(--utax-white);
    color: var(--utax-gray);
    border: 1.5px solid #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-pill:hover {
    border-color: var(--utax-purple);
    color: var(--utax-purple);
}

.filter-pill.active {
    background: var(--utax-purple);
    color: var(--utax-white);
    border-color: var(--utax-purple);
}

.filter-separator {
    width: 1px;
    height: 28px;
    background: #e0e0e0;
}

.filter-clear {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 0.8rem;
    font-family: 'Open Sans', sans-serif;
    color: #999;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.filter-clear:hover {
    color: var(--utax-purple);
}

.filter-no-results {
    display: none;
    text-align: center;
    padding: 3rem 1rem;
    font-size: 1rem;
    color: var(--utax-gray);
}

/* --- Filtr: mobile --- */
@media (max-width: 768px) {

    .filter-panel {
        flex-direction: column;
        align-items: stretch;
        gap: 0.9rem;
        padding: 1rem;
    }

    .filter-group {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .filter-label {
        font-size: 0.8rem;
    }

    .filter-buttons {
        display: flex;
        gap: 6px;
    }

    .filter-pill {
        flex: 1;
        text-align: center;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .filter-separator {
        display: none;
    }

    .filter-clear {
        margin-left: 0;
        text-align: right;
        padding-top: 0.25rem;
        border-top: 1px solid #f0f0f0;
    }
}
