/**
 * Bloom AI University - Footer Component CSS
 * All footer styles in one file. Load AFTER styles.css.
 * Generated from the tuned dummy.html inline styles.
 */

/* ============================================
   FOOTER - DEFENSIVE RESETS
   Protect footer from page-level base tag rules.
   ============================================ */
.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer li {
    margin-bottom: 0;
    color: inherit;
}

.footer a {
    color: inherit;
    text-decoration: none;
}

.footer p {
    font-size: inherit;
    margin-bottom: 0;
    color: inherit;
}

.footer img,
.footer svg {
    display: inline-block;
    max-width: none;
}

/* Hardcode container dimensions so page-level :root overrides can't affect footer */
.footer .container {
    max-width: 1200px;
    padding: 0 1.5rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--navy);
    color: var(--white);
    padding: var(--space-16) 0 var(--space-8);
    /* Lock inherited properties so pages can't affect footer spacing/text */
    font-family: var(--font-secondary);
    font-size: var(--text-base);
    font-weight: 400;
    line-height: 1.5;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: var(--space-8);
}

.footer-brand {
    padding-right: var(--space-8);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    text-decoration: none;
}

.footer-logo-icon {
    width: 50px;
    height: 50px;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
}

.footer-logo-name {
    font-family: var(--font-primary);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--white);
}

.footer-logo-tagline {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.footer-description {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

.footer-column {
    text-align: left;
}

.footer-column h4,
.footer-column .footer-heading {
    font-family: var(--font-secondary);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--white);
    margin-bottom: var(--space-4);
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links a {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-back-to-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-12);
    padding: var(--space-3) 0;
    font-size: var(--text-sm);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color var(--transition-fast);
    cursor: pointer;
}

.footer-back-to-top:hover {
    color: var(--white);
}

.footer-back-to-top svg {
    width: 16px;
    height: 16px;
    max-width: 16px;
    max-height: 16px;
    flex-shrink: 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: var(--space-6);
    padding-top: var(--space-8);
    border-top: none;
}

.footer-copyright,
.footer-legal p {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--space-2);
}

.footer-disclaimer {
    font-size: var(--text-xs);
    max-width: 500px;
}

.footer-social {
    display: flex;
    gap: var(--space-3);
    align-self: flex-start;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--white);
    transition: all var(--transition-fast);
}

.footer-social-link:hover {
    background: var(--gold);
    color: var(--navy);
}

.footer-social-link svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   FOOTER - RESPONSIVE (1024px)
   ============================================ */
@media (max-width: 1024px) {
    .footer .container {
        padding: 0 1.25rem;
    }

    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-6);
    }

    .footer-brand {
        grid-column: 1 / -1;
        padding-right: 0;
        margin-bottom: var(--space-4);
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-description {
        text-align: center;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* ============================================
   FOOTER - RESPONSIVE (768px)
   ============================================ */
@media (max-width: 768px) {
    .footer .container {
        padding: 0 1rem;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        text-align: center;
    }

    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
        padding-right: 0;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: var(--space-4);
        text-align: center;
    }

    .footer-legal {
        order: 1;
    }

    .footer-social {
        order: 0;
    }
}

/* ============================================
   FOOTER - RESPONSIVE (480px)
   ============================================ */
@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-description {
        text-align: center;
    }
}
