/**
 * FYP Portal - Landing Page: Footer & Global Helpers Module
 * White Background + Sky Blue Color Scheme (Matching Login Page)
 * Responsive Footer, Floating Action Button, and Accessibility (< 200 lines)
 */

/* ============================================================
   SCROLL PROGRESS BAR (ELECTRIC SKY)
   ============================================================ */
body.landing-page .scroll-progress,
body.resource-page .scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3.5px;
    background: linear-gradient(90deg, #38bdf8, #0284c7, #0369a1);
    transform-origin: 0 50%;
    transform: scaleX(0);
    z-index: 10001;
    pointer-events: none;
}

/* ============================================================
   FLOATING ACTION BUTTON (DEV TEAM FAB - SKY BLUE)
   ============================================================ */
body.landing-page .landing-team-fab,
body.resource-page .landing-team-fab {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9998;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 999px;
    text-decoration: none;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-family: var(--home-font-title, inherit);
    background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
    box-shadow: 0 14px 30px rgba(2, 132, 199, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

body.landing-page .landing-team-fab:hover,
body.resource-page .landing-team-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(2, 132, 199, 0.45);
    color: #ffffff !important;
}

/* On desktop, hide team-nav-item because FAB is present */
@media (min-width: 992px) {
    body.landing-page .team-nav-item {
        display: none !important;
    }
}

@media (max-width: 575.98px) {
    body.landing-page .landing-team-fab,
    body.resource-page .landing-team-fab {
        right: 14px;
        bottom: 14px;
        padding: 9px 14px;
        font-size: 0.74rem;
        gap: 6px;
    }
}

/* ============================================================
   FOOTER (WHITE BACKGROUND + SKY BLUE HIGHLIGHTS)
   ============================================================ */
body.landing-page .landing-footer,
body.resource-page .landing-footer {
    background: #ffffff;
    color: #475569;
    padding: 45px 0 24px;
    border-top: 1px solid #e0f2fe;
    box-shadow: 0 -4px 20px rgba(2, 132, 199, 0.04);
}

body.landing-page .landing-footer h5,
body.landing-page .landing-footer h6,
body.resource-page .landing-footer h5,
body.resource-page .landing-footer h6 {
    color: #0f2742;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

body.landing-page .landing-footer p,
body.resource-page .landing-footer p {
    color: #475569;
    font-size: 0.86rem;
}

body.landing-page .landing-footer a,
body.resource-page .landing-footer a {
    color: #475569;
    text-decoration: none;
    display: block;
    margin-bottom: 7px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s ease, transform 0.2s ease;
}

body.landing-page .landing-footer a:hover,
body.resource-page .landing-footer a:hover {
    color: #0284c7;
    transform: translateX(3px);
}

body.landing-page .landing-footer hr,
body.resource-page .landing-footer hr,
body.landing-page .footer-divider,
body.resource-page .footer-divider {
    border-color: #e2e8f0;
    margin: 30px 0 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
}

.footer-copy {
    font-size: 0.84rem;
    color: #64748b;
}

/* ============================================================
   SHARED KEYFRAME ANIMATIONS
   ============================================================ */
@keyframes ringRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

/* ============================================================
   ACCESSIBILITY: REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    body.landing-page *,
    body.landing-page *::before,
    body.landing-page *::after,
    body.resource-page *,
    body.resource-page *::before,
    body.resource-page *::after {
        animation: none !important;
        transition: none !important;
    }

    body.landing-page .scroll-progress,
    body.resource-page .scroll-progress {
        display: none !important;
    }
}
