/*
   FOOTER SPECIFIC STYLES
   Scoped to #tt-custom-footer to prevent theme conflicts.
*/
#tt-custom-footer {
    --bg-color: #F8F8F6;
    --text-color: #111111;
    --meta-color: #666666;
    --border-color: #D6D6D6;
    --font-mono: "Menlo", monospace;
    --space-md: 2rem;

    width: 100% !important;
    background: var(--bg-color) !important;
    border-top: 1px solid var(--border-color) !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

#tt-custom-footer .tt-inner-footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: var(--space-md) !important;
    max-width: 1600px !important;
    margin: 0 auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
    font-family: var(--font-mono) !important;
    font-size: 0.8rem !important;
    color: var(--meta-color) !important;
}

/* Prevent theme link styles in footer text */
#tt-custom-footer p {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.5 !important;
}

/* Social Link specific styles */
#tt-custom-footer .tt-social-links {
    display: flex !important;
    gap: 1.5rem !important;
}

/* Link Hover Styles (Shared for Social and Member links) */
#tt-custom-footer .tt-social-links a,
#tt-custom-footer .tt-member-link {
    color: var(--meta-color) !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
    border-bottom: 1px solid transparent !important;
}

#tt-custom-footer .tt-social-links a:hover,
#tt-custom-footer .tt-member-link:hover {
    color: var(--text-color) !important;
    border-bottom: 1px solid var(--text-color) !important;
}

/* Right Group (Location & Member Link) */
#tt-custom-footer .tt-right-group {
    display: flex !important;
    align-items: center !important;
    gap: 2rem !important;
}

#tt-custom-footer .tt-member-link {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

/* ENFORCE FONTAWESOME ICON STYLES */
#tt-custom-footer .tt-member-link i {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome" !important;
    font-weight: 900 !important; /* Required for solid FontAwesome icons */
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    display: inline-block !important;
}

@media (max-width: 768px) {
    #tt-custom-footer .tt-inner-footer {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1.5rem !important;
    }

    #tt-custom-footer .tt-social-links {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }

    #tt-custom-footer .tt-right-group {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
    }
}
