/**
 * GARIS BUMI — Portal Footer Stylesheet
 * Dedicated Single Source of Truth for Footer Component
 * Automatically loaded via resources/views/templates/garisbumi/partials/footer.blade.php
 */

/* ================= 1. DESKTOP BASE FOOTER ================= */
.portal-footer {
    background: radial-gradient(circle at 85% 15%, rgba(16, 185, 129, 0.15) 0%, transparent 50%), 
                radial-gradient(circle at 15% 85%, rgba(5, 150, 105, 0.1) 0%, transparent 45%), 
                #022c22;
    color: #f1f5f9;
    margin-top: 24px;
    padding: 28px 1.5rem 22px 1.5rem;
    border-top: 3px solid #10b981;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    width: 100%;
    box-sizing: border-box;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 10;
}

.footer-inner {
    max-width: var(--portal-container-width, 1140px);
    margin: 0 auto;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
}

/* ================= 2. TOP BRAND & NEWSLETTER STRIP ================= */
.footer-top-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 22px;
}

.footer-brand-lockup {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-brand-logo {
    max-height: 42px;
    width: auto;
    filter: brightness(0) invert(1);
    display: block;
}

.footer-accreditation-badge {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(52, 211, 153, 0.45);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11.5px;
    color: #a7f3d0;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.2px;
}

.footer-mini-newsletter {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 5px 6px 5px 16px;
    border-radius: 30px;
    max-width: 440px;
    width: 100%;
    box-sizing: border-box;
}

.footer-mini-newsletter input {
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 13px;
    flex: 1;
    min-width: 160px;
}

.footer-mini-newsletter input::placeholder {
    color: rgba(255, 255, 255, 0.75);
}

.footer-mini-newsletter button {
    background: #10b981;
    color: #ffffff;
    border: none;
    padding: 8px 18px;
    border-radius: 24px;
    font-size: 12.5px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.footer-mini-newsletter button:hover {
    background: #059669;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* ================= 3. 4-COLUMN FOOTER GRID ================= */
.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.3fr;
    gap: 28px;
    align-items: start;
    margin-bottom: 22px;
}

.footer-col-title {
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #ffffff;
    text-transform: uppercase;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-title-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
}

.footer-bio-text {
    font-size: 12.5px;
    line-height: 1.6;
    color: #cbd5e1;
    margin: 0 0 12px 0;
}

.footer-social-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-social-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-social-btn:hover {
    background: #10b981;
    color: #ffffff;
    transform: translateY(-2px);
    border-color: #10b981;
}

.portal-footer a {
    text-decoration: none;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-links-list li a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 12.5px;
    transition: all 0.15s ease;
    display: inline-block;
}

.footer-links-list li a:hover {
    color: #34d399;
    transform: translateX(3px);
}

.footer-contact-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 12px;
    color: #cbd5e1;
}

.footer-contact-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.45;
}

.footer-contact-row a {
    color: #a7f3d0;
    text-decoration: none;
}

.footer-contact-row a:hover {
    text-decoration: underline;
}

.footer-contact-icon {
    flex-shrink: 0;
    font-size: 14px;
}

/* ================= 4. BOTTOM COPYRIGHT BAR ================= */
.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 14px;
    margin-top: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 12px;
    color: #94a3b8;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-legal-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-legal-links a:hover {
    color: #ffffff;
}

.footer-back-to-top {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #cbd5e1;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.footer-back-to-top:hover {
    background: #10b981;
    color: #ffffff;
    border-color: #10b981;
}

/* ================= 5. TABLET RESPONSIVE (<= 992px) ================= */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
}

/* ================= 6. MOBILE RESPONSIVE (<= 768px) ================= */
@media (max-width: 768px) {
    .portal-footer {
        margin-top: 12px !important;
        padding: 0 !important;
    }
    .footer-inner {
        padding: 18px 1rem 18px 1rem !important;
    }
    .footer-top-strip {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        gap: 10px !important;
        padding-bottom: 0 !important;
        margin-bottom: 16px !important;
        border-bottom: none !important;
    }
    .footer-brand-lockup {
        width: 100% !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        gap: 8px !important;
        margin: 0 auto !important;
    }
    .footer-brand-logo {
        display: block !important;
        margin: 0 auto !important;
        max-height: 38px !important;
        height: auto !important;
    }
    .footer-accreditation-badge {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 auto !important;
        font-size: 11px !important;
        padding: 4px 12px !important;
    }
    .footer-mini-newsletter {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 4px 5px 4px 14px !important;
        margin: 4px auto 0 auto !important;
    }
    .footer-mini-newsletter input {
        font-size: 12px !important;
    }
    .footer-mini-newsletter button {
        padding: 7px 16px !important;
        font-size: 12px !important;
    }
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
        margin-top: 0 !important;
    }
    .footer-col-title {
        margin: 0 0 10px 0 !important;
        font-size: 13.5px !important;
    }
    .footer-bottom-bar {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 10px !important;
        padding-top: 16px !important;
        margin-top: 18px !important;
    }
    .footer-back-to-top {
        margin: 0 auto !important;
    }
}

/* ================= 7. TOUCH HOVER NEUTRALIZATION ================= */
@media (hover: none) or (pointer: coarse) {
    .portal-footer a:hover,
    .footer-social-btn:hover,
    .footer-links-list li a:hover,
    .footer-back-to-top:hover,
    .footer-mini-newsletter button:hover {
        transform: none !important;
        -webkit-transform: none !important;
        box-shadow: none !important;
    }
    .portal-footer a:active,
    .footer-social-btn:active,
    .footer-mini-newsletter button:active,
    .footer-back-to-top:active {
        opacity: 0.85 !important;
        transform: scale(0.98) !important;
    }
}
