/* Plik: css/3-layout.css */

/* ================= LAYOUT & NAVIGATION ================= */

/* HEADER & NAV */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(11, 12, 21, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

/* --- LINKI W MENU --- */
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
    padding: 5px 0;
}

/* HOVER */
.nav-links a:hover {
    color: #fff;
}

/* ACTIVE */
.nav-links a.active {
    color: #fff;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-primary);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.6);
}

/* --- PRZYCISK "BUY NOW" W NAGŁÓWKU --- */
a.nav-btn {
    padding: 10px 24px !important;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;

    background: var(--accent-gradient);
    color: #fff !important;
    border: none;

    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    transition: all 0.3s ease;
}

a.nav-btn::after { display: none !important; }

a.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
    filter: brightness(1.15);
}


/* --- BRANDING (LOGO W NAGŁÓWKU) --- */
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon-box {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-light-06);
    border: 1px solid var(--brand-light-15);
    border-radius: 12px;
    box-shadow: 0 0 25px var(--shadow-indigo), inset 0 0 15px var(--shadow-indigo);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-wrapper:hover .logo-icon-box {
    border-color: var(--accent-primary);
    box-shadow: 0 0 40px var(--accent-primary), inset 0 0 20px var(--accent-primary);
    transform: scale(1.05);
}

.logo-img {
    width: 34px;
    height: 34px;
    animation: spin-slow 12s linear infinite;
    filter: drop-shadow(0 2px 4px var(--shadow-black));
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.logo-brand-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 1.3rem;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.7); /* Możesz dodać --text-logo jeśli chcesz zmienną */
    text-transform: uppercase;
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
    line-height: 1;
}

.brand-highlight {
    font-weight: 900;
    font-size: 1.8rem;
    background: linear-gradient(135deg, #22d3ee 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 15px var(--accent-secondary));
    transform: translateY(1px);
}

/* ================= FOOTER ================= */
footer {
    padding: 40px 0 20px;
    background-color: var(--bg-main);
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

/* --- POPRAWKA LOGO: WYMUSZENIE BIELI --- */
.footer-brand-col .logo-wrapper,
.footer-brand-col .logo-wrapper span,
.footer-brand-col .footer-logo-text {
    color: #ffffff !important; /* Absolutnie biały */
    text-decoration: none !important;
}

.footer-logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    /* Dodatkowe zabezpieczenie koloru */
    -webkit-text-fill-color: #ffffff !important;
}

.footer-brand-col p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 15px;
    max-width: 300px;
    line-height: 1.5;
}

/* --- KOLUMNY I NAGŁÓWKI --- */
.footer-col h4 {
    color: var(--text-main);
    margin-bottom: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* --- POPRAWKA LINKÓW: KONDENSACJA PIONOWA --- */
.footer-col ul li {
    margin-bottom: 0 !important; /* Usunięcie marginesu między elementami listy */
    padding: 0 !important;
}

.footer-col ul li a {
    display: block; /* Blok, aby łatwiej kontrolować wysokość */
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;

    /* Tutaj sterujesz "ściskiem": */
    line-height: 1.6 !important; /* Zmniejszona wysokość linii */
    padding: 1px 0 !important;    /* Minimalny odstęp góra/dół */

    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-logo-img { width: 32px; height: 32px; }

/* Responsywność */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}



/* ================= UI COMPONENT: ICONS ================= */
/* 1. Baza dla ikon w przyciskach */
.btn[class*="btn-icon-"] {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* 2. Pseudo-element maskujący (Ikona) */
.btn[class*="btn-icon-"]::before {
    content: '';
    display: block;

    /* Dodajemy min-width, żeby ikona się nie zapadała */
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;

    background-color: currentColor;

    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

/* 3. Definicje SVG */

/* Ikona Pobierania */
.btn-icon-download::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E");
}

/* Ikona Koszyka */
.btn-icon-cart::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E");
}