/**
 * Production overrides — load last on frontend pages.
 * Fixes footer contrast and navbar Login / Register on live hosts.
 */

/* ---- Site footer (professional-footer) ---- */
body.frontend-page footer.professional-footer.dynamic-footer {
    background: linear-gradient(165deg, #0f172a 0%, #1e1b4b 42%, #312e81 100%) !important;
    color: #e2e8f0 !important;
}

body.frontend-page footer.professional-footer .footer-newsletter {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

body.frontend-page footer.professional-footer .footer-newsletter .newsletter-title,
body.frontend-page footer.professional-footer .footer-newsletter .newsletter-title i,
body.frontend-page footer.professional-footer .footer-newsletter .newsletter-title * {
    color: #0f172a !important;
    text-shadow: none !important;
}

body.frontend-page footer.professional-footer .footer-newsletter .newsletter-description,
body.frontend-page footer.professional-footer .footer-newsletter .newsletter-privacy,
body.frontend-page footer.professional-footer .footer-newsletter .newsletter-privacy a {
    color: #475569 !important;
    text-shadow: none !important;
}

body.frontend-page footer.professional-footer .footer-newsletter .newsletter-input {
    color: #0f172a !important;
    background: #ffffff !important;
}

body.frontend-page footer.professional-footer .footer-main,
body.frontend-page footer.professional-footer .footer-bottom {
    background: transparent !important;
}

body.frontend-page footer.professional-footer .lms-brand-name,
body.frontend-page footer.professional-footer .lms-col-title,
body.frontend-page footer.professional-footer .lms-footer-tagline {
    color: #f8fafc !important;
    text-shadow: none !important;
}

body.frontend-page footer.professional-footer .lms-footer-desc,
body.frontend-page footer.professional-footer .lms-footer-text,
body.frontend-page footer.professional-footer .lms-links a,
body.frontend-page footer.professional-footer .lms-contact-item,
body.frontend-page footer.professional-footer .lms-footer-company-line,
body.frontend-page footer.professional-footer .footer-copyright,
body.frontend-page footer.professional-footer .footer-compliance-note {
    color: #cbd5e1 !important;
    text-shadow: none !important;
}

body.frontend-page footer.professional-footer .lms-links a:hover,
body.frontend-page footer.professional-footer .lms-contact-item:hover {
    color: #ffffff !important;
}

body.frontend-page footer.professional-footer .btn-newsletter {
    color: #ffffff !important;
}

/* Footer social icons — Font Awesome Brands + keep glyph above hover overlay */
body.frontend-page footer.professional-footer .lms-social-icon i,
body.frontend-page footer.professional-footer .social-link i {
    font-family: "Font Awesome 6 Brands", "Font Awesome 6 Free" !important;
    font-weight: 400 !important;
    font-style: normal !important;
    -webkit-text-fill-color: currentColor !important;
    color: inherit !important;
}

body.frontend-page footer.professional-footer .social-link {
    color: #ffffff !important;
}

body.frontend-page footer.professional-footer .lms-social-icon {
    color: #e2e8f0 !important;
}

body.frontend-page footer.professional-footer .lms-social-icon:hover,
body.frontend-page footer.professional-footer .social-link:hover {
    color: #ffffff !important;
}

/* ---- Main navbar: Login + Register (guest) ---- */
body.frontend-page .navbar .navbar-nav:last-child .nav-link:not(.btn-nav-register) {
    color: #334155 !important;
    font-weight: 600 !important;
    text-shadow: none !important;
}

body.frontend-page .navbar .navbar-nav:last-child .nav-item .nav-link.btn-nav-login,
body.frontend-page .navbar .navbar-nav:last-child .nav-item > .nav-link[href*="login"] {
    color: #334155 !important;
    text-shadow: none !important;
    padding: 0.5rem 0.85rem !important;
    border-radius: 999px !important;
}

body.frontend-page .navbar .navbar-nav:last-child .nav-item .nav-link.btn-nav-login:hover,
body.frontend-page .navbar .navbar-nav:last-child .nav-item > .nav-link[href*="login"]:hover {
    color: #4f46e5 !important;
    background: #f5f3ff !important;
}

body.frontend-page .navbar .btn-nav-register {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.5rem 1.15rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #4f46e5, #6366f1) !important;
    border: none !important;
    border-radius: 999px !important;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.28) !important;
    text-decoration: none !important;
    text-shadow: none !important;
    white-space: nowrap !important;
}

body.frontend-page .navbar .btn-nav-register:hover {
    color: #ffffff !important;
    filter: brightness(1.05);
}

@media (max-width: 991.98px) {
    body.frontend-page .navbar .navbar-nav:last-child {
        padding-top: 0.75rem;
        gap: 0.35rem;
    }

    body.frontend-page .navbar .btn-nav-register {
        width: 100%;
        margin-top: 0.35rem;
    }
}
