#footer {
    display: flex;
    justify-content: center;
    width: 100%;
    box-shadow: initial;
    background-color: var(--bg-mono);
    z-index: var(--z-header);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    padding: var(--page-gutter-px);
    max-width: var(--max-content-width);
}

/* Footer Top Portion */
.footer-top {
    display: flex;
    gap: 10%;
    width: 100%;
}

#footer-image {
    width: fit-content;
}

#footer-image img {
    height: 2rem;
}

.footer-resources {
    display: flex;
    gap: 1rem;
}

.footer-resources .list-header {
    font-weight: 600;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.footer-resources .list-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-resource {
    color: var(--text-primary);
}

.footer-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Footer Botton Portion */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 2rem;
}

.footer-bottom-links,
.footer-bottom-actions {
    display: flex;
    gap: 1rem;
}

.privacy {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
}

#privacy-link {
    font-weight: 600;
}

/* Mobile responsive */
@media screen and (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-actions {
        flex-direction: row;
    }

    .footer-resources {
        flex-wrap: wrap;
    }
}

@media screen and (max-width: 480px) {
    .footer-inner {
        gap: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .privacy {
        flex-wrap: wrap;
        font-size: 0.6875rem;
    }
}

/* Coloration */
/* .darkmode #footer {
    background-color: #000000;
}
.lightmode #footer {
    background-color: #FFFFFF;
}

.darkmode .footer-resources .list-header {
    color: var(--dark-text-muted);
}
.lightmode .footer-resources .list-header {
    color: var(--light-text-muted);
}

.darkmode .footer-resource {
    color: var(--dark-text-primary);
}
.lightmode .footer-resource {
    color: var(--light-text-primary);
} */

/* Footer Dropdown Overrides */
/* Footer dropdowns need to open upward and handle mobile left-alignment */
.footer-actions .dropdown-menu {
    top: auto;
    bottom: 100%;
    transform: translateY(-0.5rem);
    margin-top: 0.5rem;
}

.footer-actions .dropdown-menu.show {
    transform: translateY(-0.5rem);
}

/* Mobile overrides for footer dropdowns */
@media screen and (max-width: 768px) {
    /* Footer actions go to left side on mobile, so dropdowns should align left */
    .footer-actions .dropdown-menu {
        right: auto;
        left: 0;
    }
}

@media screen and (max-width: 480px) {
    .footer-actions .dropdown-menu {
        right: auto;
        left: 0;
    }
}

/* Footer Tooltip Overrides */
/* Footer tooltips should appear above the button */
.footer-actions .dropdown-tooltip {
    bottom: 100%;
    top: auto;
    transform: translateX(-50%) translateY(-8px);
    margin-bottom: 8px;
    margin-top: 0;
}

.footer-actions .dropdown-tooltip::before {
    top: auto;
    bottom: -4px;
    border-top: 4px solid var(--bg-tertiary);
    border-bottom: none;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
}

/* Mobile overrides for footer tooltips */
@media screen and (max-width: 768px) {
    /* Footer tooltips align left on mobile like the dropdowns */
    .footer-actions .dropdown-tooltip {
        left: 0;
        right: auto;
        transform: translateY(-8px);
    }
    
    .footer-actions .dropdown-tooltip::before {
        left: 0.75rem;
        right: auto;
        transform: none;
    }
}

/* ========================================
   LIGHTMODE OVERRIDES
   ======================================== */

/* White footer floats above #f0f2f5 content */
.lightmode #footer {
    box-shadow: 0 -1px 3px 0 rgba(0, 0, 0, 0.06), 0 -1px 2px -1px rgba(0, 0, 0, 0.04);
}

.lightmode .footer-actions .language-selector-btn,
.lightmode .footer-actions .theme-selector-btn {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}