:root {
    --primary-color: #92ADCB;
    --secondary-color: #6EC1E4;
    --dark-color: #06102B;
    --light-color: #E8F1F6;
    --white: #FFFFFF;
    --accent-red: #E63946;
    --accent-gold: #FFB700;
    --accent-green: #06A77D;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(180deg, #f8f9fa 0%, rgba(90, 155, 214, 0.05) 50%, #f8f9fa 100%);
    margin: 0;
    padding: 0;
}

main {
    flex: 1;
    padding-top: 0; /* Zmienione z 20px na 0 */
}

/* Navbar bez odstępu */
.navbar-custom {
    background: var(--white) !important;
    padding: 1.2rem 0;
    border-bottom: 3px solid var(--primary-color);
    margin-bottom: 0; /* Dodane */
}

/* Sekcja hero bez odstępu od góry */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    margin-top: -4px; /* Kompensacja dla navbar-separator */
    color: white;
}
.photo-frame {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}
.btn-cta-primary {
    background: linear-gradient(135deg, #FF6B6B 0%, #FFE66D 100%);
    color: var(--dark-color) !important;
    font-size: 1.3rem;
    font-weight: bold;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    }

    50% {
        box-shadow: 0 8px 35px rgba(255, 107, 107, 0.6);
    }

    100% {
        box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    }
}

.btn-cta-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.hero-buttons-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: inline-block;
}
.btn-cta-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color) !important;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 12px 35px;
    border: 3px solid var(--primary-color);
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 15px rgba(90, 155, 214, 0.3);
    display: inline-block;
}

    .btn-cta-secondary:hover {
        background: var(--primary-color);
        color: white !important;
        border-color: white;
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(90, 155, 214, 0.4);
    }

    .btn-cta-secondary i {
        margin-right: 8px;
    }

/* Przycisk logowania (w ramce) */
.btn-login-hero {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color) !important;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 15px 40px;
    border: 3px solid var(--primary-color);
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    position: relative;
}

    .btn-login-hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
        border-radius: 50px;
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: -1;
    }

    .btn-login-hero:hover {
        transform: translateY(-3px) scale(1.05);
        color: white !important;
        border-color: white;
        box-shadow: 0 12px 35px rgba(102, 126, 234, 0.5);
    }

        .btn-login-hero:hover::before {
            opacity: 1;
        }

    .btn-login-hero i {
        margin-right: 8px;
        font-size: 1.3rem;
    }

/* Badge z liczbą wpisów (też w ramce) */
.hero-section .badge {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    padding: 12px 25px;
    font-size: 1.1rem;
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(90, 155, 214, 0.2);
}

/* ============================================
   NAVBAR - NOWE STYLE Z HAMBURGEREM
   ============================================ */
.navbar {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* Navbar z białym tłem i lepszym kontrastem */
.navbar-custom {
    background: var(--white) !important;
    padding: 1.2rem 0;
    border-bottom: 3px solid var(--primary-color);
}

/* Dekoracyjny separator pod navbar */
.navbar-separator {
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--primary-color) 100%);
    box-shadow: 0 2px 10px rgba(90, 155, 214, 0.3);
}

/* Logo/Brand */
.navbar-custom .navbar-brand {
    color: var(--dark-color);
    font-size: 1.6rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .navbar-custom .navbar-brand i {
        color: var(--accent-red);
        font-size: 1.8rem;
        animation: heartbeat 2s infinite;
    }

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

.navbar-custom .navbar-brand:hover {
    color: var(--primary-color);
    transform: scale(1.05);
}

/* Hamburger menu dla mobile */
.custom-toggler {
    border: 2px solid var(--primary-color);
    background-color: rgba(90, 155, 214, 0.1);
    padding: 4px 8px;
    transition: all 0.3s ease;
}

    .custom-toggler:hover {
        background-color: var(--primary-color);
    }

        .custom-toggler:hover i {
            color: var(--white);
        }

    .custom-toggler i {
        font-size: 1.8rem;
        color: var(--dark-color);
        transition: all 0.3s ease;
    }

    .custom-toggler:focus {
        box-shadow: 0 0 0 0.25rem rgba(90, 155, 214, 0.25);
    }

/* Linki nawigacyjne z lepszym kontrastem */
.navbar-custom .nav-link {
    color: var(--dark-color) !important;
    margin: 0 0.3rem;
    padding: 0.6rem 1.2rem !important;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid transparent;
}

/* Różne kolory dla ikon - lepszy kontrast */
.navbar-custom .nav-item:nth-child(1) .nav-link i {
    color: var(--primary-color);
}

.navbar-custom .nav-item:nth-child(2) .nav-link i {
    color: var(--accent-green);
}

.navbar-custom .nav-item:nth-child(3) .nav-link i {
    color: var(--secondary-color);
}

.navbar-custom .nav-link i {
    font-size: 1.2rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.navbar-custom .nav-link:hover {
    background: linear-gradient(135deg, rgba(90, 155, 214, 0.15) 0%, rgba(110, 193, 228, 0.15) 100%);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(90, 155, 214, 0.3);
}

/* Specjalny styl dla moderacji */
.navbar-custom .special-link i {
    color: var(--accent-gold) !important;
}

/* Przycisk logowania */
.navbar-custom .login-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white) !important;
    box-shadow: 0 3px 10px rgba(90, 155, 214, 0.3);
}

    .navbar-custom .login-btn i {
        color: var(--white) !important;
    }

    .navbar-custom .login-btn:hover {
        background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
        transform: translateY(-2px) scale(1.05);
    }

/* Przycisk wylogowania */
.navbar-custom .logout-btn {
    color: var(--dark-color) !important;
    border: none;
    cursor: pointer;
    padding: 0;
    background: none;
}

    .navbar-custom .logout-btn i {
        color: var(--accent-red) !important;
    }

/* Efekt cienia przy scrollowaniu */
.navbar-custom.scrolled {
    box-shadow: 0 4px 20px rgba(10, 18, 42, 0.15);
}

/* ============================================
   KONIEC NAVBAR
   ============================================ */

/* Karty */
.card {
    border: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    }

/* Karuzela */
.carousel-item {
    padding: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    background: rgba(0, 0, 0, 0.3);
}

/* Feature boxes */
.feature-box {
    padding: 30px;
    border-radius: 10px;
    transition: all 0.3s;
}

    .feature-box:hover {
        background: var(--light-color);
        transform: scale(1.05);
    }

/* Przyciski */
.btn-primary {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
}

    .btn-primary:hover {
        background: linear-gradient(90deg, var(--secondary-color) 0%, var(--primary-color) 100%);
        transform: scale(1.05);
    }

/* Footer - zaktualizowany */
.footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, #1a2f4a 100%);
    color: var(--light-color);
    border-top: 3px solid var(--primary-color);
    margin-top: 50px;
}

/* Animacje */
.alert {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ============================================
   RESPONSYWNOŚĆ - ROZSZERZONA DLA HAMBURGERA
   ============================================ */
@media (max-width: 991px) {
    /* Rozwijane menu na tabletach i telefonach */
    .navbar-custom .navbar-collapse {
        background: var(--white);
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .navbar-custom .nav-link {
        margin: 0.5rem 0;
        justify-content: center;
        text-align: center;
    }

        .navbar-custom .nav-link:hover {
            transform: translateX(5px);
        }
}

@media (max-width: 768px) {
    /* Navbar mobile */
    .navbar-custom .navbar-brand {
        font-size: 1.2rem;
    }

        .navbar-custom .navbar-brand i {
            font-size: 1.4rem;
        }

    .custom-toggler i {
        font-size: 1.5rem;
    }

    /* Hero section mobile */
    .hero-section h1 {
        font-size: 2rem;
    }

    .photo-frame {
        margin-top: 30px;
    }

    /* Ukryj tekst w linkach nawigacji na małych ekranach */
    .navbar-custom .nav-link span {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    /* Bardzo małe ekrany */
    .navbar-custom .navbar-brand {
        font-size: 1rem;
    }

        .navbar-custom .navbar-brand span {
            font-size: 0.9rem;
        }

    .custom-toggler {
        padding: 2px 6px;
    }

        .custom-toggler i {
            font-size: 1.3rem;
        }
}

/* Walidacja */
.field-validation-error {
    color: #dc3545;
    font-size: 0.875rem;
}

.input-validation-error {
    border-color: #dc3545;
}

/* Panel moderacji */
.border-danger {
    border: 2px solid #dc3545 !important;
}

.border-warning {
    border: 2px solid #ffc107 !important;
}

/* Loader */
.spinner-border {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
}
.card-header.bg-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
    color: white;
    border: none;
    padding: 1.2rem;
    position: relative;
    overflow: hidden;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}
.card-header.light-theme {
    background: var(--light-color) !important;
    color: var(--dark-color) !important;
    border-bottom: 3px solid var(--primary-color);
}

/* Ikona w nagłówku */
.card-header.bg-primary i {
    margin-right: 10px;
    font-size: 1.3rem;
    color: var(--light-color);
    animation: float-icon 3s ease-in-out infinite;
}

@keyframes float-icon {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-3px);
    }
}