/* ============================================
   FOOTER COMPONENT STYLES
   ============================================ */

/* Container utility (ensures padding on all pages) */
.footer .container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Footer Container */
.footer {
    background: var(--hai-blue-dark);
    padding: 3rem 0 1.5rem;
}

.footer-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Footer Brand Section */
.footer-brand {
    text-align: center;
}

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

.footer-logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

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

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

.footer-logo-name {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
}

.footer-logo-human { color: var(--white); }
.footer-logo-ai { color: var(--hai-orange); }
.footer-logo-institute { color: var(--white); }

.footer-logo-tagline {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
}

.footer-brand > p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 1rem;
}

.footer-partner {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
}

.footer-partner strong {
    color: var(--hai-gold);
}

.bloom-link {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

.bloom-link:hover {
    color: var(--hai-gold);
}

.bloom-link strong {
    color: var(--hai-gold);
}

.footer-bottom .bloom-link {
    color: rgba(255,255,255,0.5);
}

.footer-bottom .bloom-link:hover {
    color: var(--hai-gold);
}

/* Footer Links Section */
.footer-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.footer-col a {
    display: block;
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    padding: 0.3rem 0;
    transition: var(--transition-fast);
    text-decoration: none;
}

.footer-col a:hover {
    color: var(--hai-gold);
}

/* Footer Social Icons */
.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    justify-content: center;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition-base);
    text-decoration: none;
}

.social-icon:hover {
    color: var(--hai-gold);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    display: block;
    flex-shrink: 0;
}

/* Footer Bottom */
.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0.25rem;
}

/* Tablet Responsive (min-width: 481px) */
@media (min-width: 481px) {
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop Responsive (min-width: 769px) */
@media (min-width: 769px) {
    .footer-main {
        display: grid;
        grid-template-columns: 1fr 2.5fr;
        gap: 3rem;
    }

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

    .footer-logo-wrapper {
        flex-direction: row;
        gap: 0.01rem;
        justify-content: flex-start;
    }

    .footer-logo-text {
        align-items: flex-start;
    }

    .footer-links {
        grid-template-columns: repeat(4, 1fr);
        text-align: left;
    }

    .footer-social {
        justify-content: flex-start;
    }

    .footer-bottom {
        display: flex;
        justify-content: space-between;
        text-align: left;
    }

    .footer-bottom p {
        margin-bottom: 0;
    }
}
