/* =========================================================
   KDJ Moove — Footer Styles
   Loaded globally via head.mustache. Applies to ALL pages.
   ========================================================= */

#page-footer {
    border-top: 3px solid var(--kdj-brand, #230500);
    background-color: #141a1f;
    min-height: auto;
    padding: 0;
    margin: 0;
}
#page-footer .footer-content-debugging {
    padding: 0.75rem 0;
}
#page-footer a {
    color: rgba(255,255,255,0.8);
}
#page-footer a:hover {
    color: #fff;
}
#page-footer .kdj-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
#page-footer .kdj-footer-main {
    padding: 4rem 0 2rem;
}
#page-footer .kdj-footer-main .kdj-footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2.5rem;
}
#page-footer .kdj-footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
#page-footer .kdj-footer-brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}
#page-footer .kdj-footer-desc {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}
#page-footer .kdj-footer-social {
    display: flex;
    gap: 0.75rem;
}
#page-footer .kdj-footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 0.5rem;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.5);
    transition: all 0.2s ease;
}
#page-footer .kdj-footer-social-link:hover {
    background: var(--kdj-brand, #230500);
    color: #fff;
    text-decoration: none;
}
#page-footer .kdj-footer-heading {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(255,255,255,0.06);
}
#page-footer .kdj-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
#page-footer .kdj-footer-links li {
    margin-bottom: 0.6rem;
}
#page-footer .kdj-footer-links li a {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
#page-footer .kdj-footer-links li a:hover {
    color: #fff;
    padding-left: 4px;
}
#page-footer .kdj-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 1.25rem 0;
}
#page-footer .kdj-footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.35);
}
#page-footer .kdj-footer-bottom-inner a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
}
#page-footer .kdj-footer-bottom-inner a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Hide default Moodle footer links that aren't needed */
#page-footer #tool_dataprivacy,
#page-footer .mobilelink,
#page-footer a.mobilelink,
#page-footer a[href*="download.moodle.org/mobile"] {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    #page-footer .kdj-footer-main .kdj-footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    #page-footer .kdj-footer-brand {
        grid-column: 1 / -1;
    }
    #page-footer .kdj-footer-bottom-inner {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}
@media (max-width: 480px) {
    #page-footer .kdj-footer-main .kdj-footer-container {
        grid-template-columns: 1fr;
    }
}
