/* ==============================================
   FOOTER STYLES
   Unified footer styling for all Billisa pages
   ============================================== */

/* Footer Container - ensures content doesn't touch edges */
.landing-footer .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Footer Container */
.landing-footer {
    background: #1a1a1a;
    color: var(--fluent-white);
    padding: 60px 0 30px;
    margin-top: 0 !important;
    /* Override style.css footer{margin-top:80px} */
}

/* Footer Grid Layout */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

/* Footer Brand */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo {
    height: 40px;
    border-radius: 8px;
}

.footer-brand-name {
    font-size: 24px;
    font-weight: 700;
}

/* Footer Description */
.footer-description {
    color: var(--fluent-gray-60);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Footer Social Links */
.footer-socials {
    display: flex;
    gap: 15px;
}

/* Footer Column Headers */
.footer-column h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Footer Navigation Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--fluent-gray-60);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--fluent-white);
}

/* Footer Contact Info */
.footer-contact p {
    color: var(--fluent-gray-60);
    margin-bottom: 12px;
}

.footer-contact i {
    margin-right: 10px;
    width: 20px;
}

/* Footer Payment Methods */
.footer-payment-methods {
    margin-top: 20px;
}

.footer-payment-methods h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--fluent-gray-60);
    margin-bottom: 12px;
}

.footer-payment-methods img {
    max-width: 100%;
    height: auto;
    max-height: 32px;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.footer-payment-methods img:hover {
    opacity: 1;
}

/* Footer Bottom Section (Credits) */
.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--fluent-gray-80);
    color: var(--fluent-gray-60);
    font-size: 14px;
}

.footer-bottom p {
    margin-bottom: 8px;
}

.footer-bottom a {
    color: var(--fluent-white);
    text-decoration: none;
    font-weight: 600;
}

/* Copyright Notice */
.copyright-notice {
    margin-top: 16px;
    font-size: 12px;
}

/* ==============================================
   RESPONSIVE FOOTER STYLES
   ============================================== */

@media (max-width: 768px) {
    .landing-footer {
        padding: 40px 0 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-column h3 {
        margin-bottom: 16px;
    }

    .footer-links li {
        margin-bottom: 10px;
    }

    .footer-contact {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .landing-footer {
        padding: 30px 0 15px;
    }

    .footer-brand-name {
        font-size: 20px;
    }

    .footer-logo {
        height: 32px;
    }
}

/* ==============================================
   MINIMAL FOOTER - For Admin Pages (Login, OTP)
   Layout: Logo (left) | Credits (center)
   ============================================== */

.landing-footer.minimal {
    padding: 20px 0;
}

/* Main container becomes a flex row */
.landing-footer.minimal .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    position: relative;
}

/* Footer grid becomes minimal - only show logo */
.landing-footer.minimal .footer-grid {
    display: contents;
    margin-bottom: 0;
}

/* Show ONLY the first column (logo) on the left - positioned absolutely */
.landing-footer.minimal .footer-column:first-child {
    position: absolute;
    left: 0;
    flex-shrink: 0;
}

.landing-footer.minimal .footer-column:first-child .footer-brand {
    margin-bottom: 0;
}

/* Hide brand name - only show logo */
.landing-footer.minimal .footer-column:first-child .footer-brand-name {
    display: none;
}

/* Hide description and socials in minimal mode */
.landing-footer.minimal .footer-column:first-child .footer-description,
.landing-footer.minimal .footer-column:first-child .footer-socials {
    display: none;
}

/* Hide Quick Links column (2nd column) */
.landing-footer.minimal .footer-column:nth-child(2) {
    display: none;
}

/* Hide Policies column (3rd column) */
.landing-footer.minimal .footer-column:nth-child(3) {
    display: none;
}

/* Hide Contact column (4th column) completely */
.landing-footer.minimal .footer-column:last-child {
    display: none;
}

/* Credits in the center - stays as-is from business.js */
.landing-footer.minimal .footer-bottom {
    text-align: center;
    padding-top: 0;
    border-top: none;
}

/* Responsive: Stack on mobile */
@media (max-width: 768px) {
    .landing-footer.minimal .container {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .landing-footer.minimal .footer-column:first-child {
        position: static;
    }
}

/* ==============================================
   DASHBOARD FOOTER - With Logout Link
   Layout: Logo (left) | Credits (center) | Logout (right)
   ============================================== */

.landing-footer.dashboard-footer .container {
    justify-content: space-between;
}

.landing-footer.dashboard-footer .footer-logout {
    position: absolute;
    right: 0;
    flex-shrink: 0;
}

.footer-logout-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--fluent-gray-70, #666);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.footer-logout-link:hover {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
}

.footer-logout-link i {
    font-size: 16px;
}

/* Responsive: Stack on mobile */
@media (max-width: 768px) {
    .landing-footer.dashboard-footer .container {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .landing-footer.dashboard-footer .footer-logout {
        position: static;
    }
}