/* ===== CZCIONKA POPPINS ===== */

@font-face {
    font-family: 'Poppins';
    src: url('/fonts/Poppins/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap; /* Zapobiega niewidzialnemu tekstowi podczas ładowania strony */
}

* {
    font-family: "Poppins", sans-serif !important;
}

/* ===== HEADER ===== */

header {
    width: 100%;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid #eeeaf8;
    position: relative;
    z-index: 100;
}

.header-inner {
    max-width: 1200px;
    min-height: 76px;
    margin: 0 auto;
    padding: 14px 24px;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Logo */

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.6px;
    text-decoration: none;
    color: #201a35;

    white-space: nowrap;
}

.logo:hover {
    color: #6a3df0;
}

/* Nawigacja */

nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

/* Wspólne style przycisków */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 10px 17px;
    border: 1px solid transparent;
    border-radius: 10px;

    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;

    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

/* Zaloguj / Wyloguj */

.btn-login {
    color: #39314f;
    background: #fff;
    border-color: #e8e3f2;
}

.btn-login:hover {
    color: #6a3df0;
    background: #f7f4ff;
    border-color: #d8cbff;
}

/* Zarejestruj / Panel */

.btn-register {
    color: #fff;
    background: #6a3df0;
    border-color: #6a3df0;
    box-shadow: 0 4px 10px rgba(106, 61, 240, 0.15);
}

.btn-register:hover {
    color: #fff;
    background: #5730d0;
    border-color: #5730d0;
    box-shadow: 0 6px 16px rgba(106, 61, 240, 0.23);
    transform: translateY(-1px);
}

.btn:focus-visible,
.logo:focus-visible,
footer a:focus-visible {
    outline: 3px solid #a891ff;
    outline-offset: 3px;
}

/* ===== FOOTER ===== */

footer {
    margin-top: 80px;
    background: #201a35;
    color: #c9c4d8;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 42px 24px 24px;
    box-sizing: border-box;
}

/* Główna część footera */

.footer-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 32px;
}

.footer-brand {
    max-width: 360px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 12px;

    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
    text-decoration: none;
}


.footer-brand p {
    margin: 0;
    color: #aaa4bf;
    font-size: 0.94rem;
    line-height: 1.7;
}

/* Kolumny z linkami */

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.footer-column h3 {
    margin: 0 0 4px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
}

.footer-column a {
    color: #aaa4bf;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: #b9a5ff;
}

/* Dolny pasek */

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;

    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);

    color: #918ba8;
    font-size: 0.84rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: #b9a5ff;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #fff;
}

/* ===== RESPONSYWNOŚĆ ===== */

@media (max-width: 600px) {
    .header-inner {
        min-height: 68px;
        padding: 12px 16px;
        gap: 12px;
    }

    .logo {
        font-size: 1.1rem;
        gap: 7px;
    }

    .logo::before {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    nav {
        gap: 6px;
    }

    .btn {
        padding: 9px 11px;
        font-size: 0.82rem;
        border-radius: 8px;
    }

    .footer-inner {
        padding: 32px 20px 20px;
    }

    .footer-main {
        flex-direction: column;
        gap: 30px;
        padding-bottom: 26px;
    }

    .footer-links {
        width: 100%;
        gap: 28px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    footer {
        margin-top: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn,
    .logo,
    .footer-column a,
    .footer-bottom a {
        transition: none;
    }
}