/**
 * Footer Styles
 *
 * Styles for footer widgets, layout, and defensive CSS.
 *
 * @package Famoid_Blogger
 */

/* Hide Facebook SDK elements that may cause layout issues */
#fb-root,
.fb_reset,
[id^="fb-"] {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Footer Widget Grid Layout */
.footer-widgets {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-widgets {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-widget-area {
    min-width: 0;
}

.footer-widget-area .widget {
    margin-bottom: 1.5rem;
}

.footer-widget-area .widget:last-child {
    margin-bottom: 0;
}

.footer-widget-area .widget-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-text, #1a1a1a);
}

.footer-widget-area ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-widget-area li {
    margin-bottom: 0.5rem;
}

.footer-widget-area a {
    color: var(--color-text-secondary, #6b7280);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.15s ease;
}

.footer-widget-area a:hover {
    color: var(--color-accent, #0080ff);
}

/* Error page styling fix */
#error-page {
    display: none !important;
}
