/* ===============================
   UNIVERSAL FOOTER COMPONENT
   =============================== */

.footer {
    background: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(20px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 3rem 0 1rem !important;
    position: relative !important;
    z-index: 2 !important;
    margin-top: auto !important;
    color: white !important;
}

.footer-content {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    gap: 2rem !important;
    margin-bottom: 2rem !important;
}

.footer-section h3 {
    font-size: 1.3rem !important;
    font-weight: 600 !important;
    color: white !important;
    margin-bottom: 1rem !important;
}

.footer-section p,
.footer-section li {
    color: rgba(255, 255, 255, 0.8) !important;
    line-height: 1.6 !important;
    margin-bottom: 0.5rem !important;
}

.footer-section ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-section a {
    color: #74b9ff !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.footer-section a:hover {
    color: white !important;
}

.footer-bottom {
    text-align: center !important;
    padding-top: 2rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin-top: 2rem !important;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7) !important;
    margin-bottom: 0.5rem !important;
}

.footer-tech {
    font-size: 0.9rem !important;
    color: rgba(255, 255, 255, 0.6) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
}

.footer-tech .fas.fa-heart {
    color: #e74c3c !important;
    animation: heartbeat 1.5s ease-in-out infinite !important;
}

@keyframes heartbeat {
    0%, 50%, 100% {
        transform: scale(1);
    }
    25%, 75% {
        transform: scale(1.1);
    }
}

/* Footer mobile responsiveness */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        text-align: center !important;
    }
    
    .footer {
        padding: 2rem 0 1rem !important;
    }
}

/* Make sure body uses flexbox for sticky footer */
body {
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Main content should grow to push footer down */
.main,
main {
    flex: 1 !important;
}

/* ===============================
   UNIVERSAL NAVIGATION COMPONENT
   =============================== */

/* Navigation Base Styles */
.navbar {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    padding: 0.7rem 0 !important;
}

.navbar .container,
.navbar-content {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.4rem 0 !important;
}

.nav-brand,
.navbar-brand {
    display: flex !important;
    align-items: center !important;
    gap: 0.7rem !important;
}

.nav-logo img,
.navbar-logo img {
    width: 40px !important;
    height: 40px !important;
    border-radius: 10px !important;
}

.nav-text h2,
.navbar-brand h2 {
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    color: white !important;
    margin-bottom: 0.1rem !important;
    white-space: nowrap !important;
}

.nav-text p,
.navbar-brand p {
    font-size: 0.75rem !important;
    color: rgba(255, 255, 255, 0.8) !important;
    white-space: nowrap !important;
}

.nav-menu,
.navbar-nav {
    display: flex !important;
    gap: 0.3rem !important;
    align-items: center !important;
}

.nav-link,
.nav-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    padding: 0.5rem 0.8rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none !important;
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
}

.nav-link:hover,
.nav-item:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    transform: translateY(-1px) !important;
}

.nav-link.active,
.nav-item.active {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.nav-link i,
.nav-item i {
    font-size: 0.85rem !important;
}

.nav-link span,
.nav-item span {
    white-space: nowrap !important;
}

.nav-toggle {
    display: none !important;
    flex-direction: column !important;
    cursor: pointer !important;
    gap: 3px !important;
}

.nav-toggle span {
    width: 22px !important;
    height: 2px !important;
    background: white !important;
    border-radius: 2px !important;
    transition: 0.3s !important;
}

/* Mobile Navigation */
@media (max-width: 968px) {
    .nav-menu,
    .navbar-nav {
        position: fixed !important;
        top: 75px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: calc(100vh - 75px) !important;
        background: rgba(26, 26, 46, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        flex-direction: column !important;
        gap: 0 !important;
        padding: 2.5rem 2rem !important;
        margin: 0 !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        z-index: 9999 !important;
        overflow-y: auto !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    }

    .nav-menu.active,
    .navbar-nav.active {
        transform: translateX(0) !important;
    }

    .nav-link,
    .nav-item {
        width: 100% !important;
        max-width: 280px !important;
        margin: 0 auto 1rem auto !important;
        justify-content: flex-start !important;
        align-items: center !important;
        padding: 1.2rem 1.8rem !important;
        border-radius: 15px !important;
        font-size: 1.05rem !important;
        font-weight: 500 !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
        transition: all 0.3s ease !important;
        text-decoration: none !important;
        color: white !important;
        min-height: 56px !important;
    }

    .nav-link:hover,
    .nav-item:hover {
        background: rgba(255, 255, 255, 0.15) !important;
        border-color: rgba(255, 255, 255, 0.25) !important;
        transform: translateY(-2px) !important;
        color: #fff !important;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
    }

    .nav-link.active {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        border-color: rgba(255, 255, 255, 0.3) !important;
        color: white !important;
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3) !important;
    }

    .nav-link i,
    .nav-item i {
        margin-right: 1rem !important;
        font-size: 1.2rem !important;
        width: 24px !important;
        text-align: center !important;
    }

    .nav-toggle {
        display: flex !important;
        position: relative !important;
        z-index: 10000 !important;
        padding: 10px !important;
        border-radius: 8px !important;
        transition: background 0.3s ease !important;
        min-width: 44px !important;
        min-height: 44px !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .nav-toggle:hover {
        background: rgba(255, 255, 255, 0.15) !important;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px) !important;
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0 !important;
        transform: scale(0) !important;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px) !important;
    }

    /* Блокування скролу при відкритому меню */
    body.menu-open {
        overflow: hidden !important;
    }
}

/* Extra Small Screens */
@media (max-width: 480px) {
    .nav-text h2,
    .navbar-brand h2 {
        font-size: 1rem !important;
    }

    .nav-text p,
    .navbar-brand p {
        font-size: 0.7rem !important;
    }

    .nav-logo img,
    .navbar-logo img {
        width: 35px !important;
        height: 35px !important;
    }
}
