/* ========================================
 * OFFICE FOOTER - RESPONSIVE LAYOUT
 * Mobile-first design with breakpoints at 600px, 1024px
 * Dark mode support via office tokens
 * Performance: reduced squares on mobile
 * ======================================== */

/* Footer main container - mobile first */
.footer-panel {
    width: 100%;
    bottom: 0;
    right: 0;
    z-index: 100;
    padding-left: 0;
}

/* Footer squares wrapper - mobile base */
.footer-squares-wrapper-panel {
    position: relative;
    overflow: hidden;
    height: 60px;
    display: none !important; /* Hidden per current design */
}

.footer-squares-container-panel {
    display: none !important;
}

.footer-square-panel {
    display: none !important;
}

/* Hide excess squares on mobile for performance */
@media (max-width: 600px) {
    .footer-square-panel:nth-child(n+100) {
        display: none;
    }

    .footer-squares-container-panel.alternate-panel .footer-square-panel:nth-child(n+50) {
        display: none;
    }
}

/* Footer content bar - mobile first (stacked layout) */
.footer-black-bar-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    width: 100%;
    background-color: var(--office-surface-secondary, #F8FAFC);
    color: var(--office-text-secondary, #475569);
    box-sizing: border-box;
    border-top: 1px solid var(--office-border, #E2E8F0);
    margin-top: 40px;
    align-items: center;
    text-align: center;
}

/* Logo and social icons container - mobile stacked */
.footer-black-bar-panel > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

/* Links container - mobile vertical */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.footer-links a {
    color: var(--office-text-secondary, #475569);
    text-decoration: none;
    font-size: 0.75rem;
    transition: color var(--office-duration-fast, 150ms) ease;
}

.footer-links a:hover {
    color: var(--office-primary, #2563EB);
    text-decoration: underline;
}

/* Footer logo - mobile size */
.logo-footer-panel {
    height: 28px;
    width: auto;
    opacity: 0.5;
    transition: opacity var(--office-duration-fast, 150ms) ease;
}

.logo-footer-panel:hover {
    opacity: 0.7;
}

/* Social icons - mobile size */
.social-logo-panel {
    height: 20px;
    width: 20px;
    margin: 0 4px;
    opacity: 0.5;
    transition: opacity var(--office-duration-fast, 150ms) ease;
}

.social-logo-panel:hover {
    opacity: 0.7;
}

/* Copyright text - mobile size */
.footer-black-bar-panel span {
    font-size: 0.75rem;
    color: var(--office-text-muted, #94A3B8);
}

/* Footer links styling */
.footer-black-bar-panel a {
    color: var(--office-text-secondary, #475569);
    text-decoration: none;
    transition: color var(--office-duration-fast, 150ms) ease;
}

.footer-black-bar-panel a:hover {
    color: var(--office-primary, #2563EB);
}

/* ========================================
 * TABLET (≥600px) - Horizontal layout begins
 * ======================================== */
@media (min-width: 600px) {
    .footer-black-bar-panel {
        flex-direction: row;
        justify-content: space-between;
        padding: 20px 24px;
        text-align: left;
        gap: 16px;
    }

    .footer-black-bar-panel > div:first-child {
        flex-direction: row;
        gap: 12px;
    }

    .footer-links {
        flex-direction: row;
        gap: 12px;
    }

    .footer-links a {
        font-size: 0.813rem;
    }

    .logo-footer-panel {
        height: 32px;
    }

    .social-logo-panel {
        height: 24px;
        width: 24px;
        margin: 0 6px;
    }

    .footer-black-bar-panel span {
        font-size: 0.813rem;
    }

    .footer-squares-wrapper-panel {
        height: 80px;
    }
}

/* ========================================
 * DESKTOP (≥1024px) - Sidebar compensation + larger sizes
 * ======================================== */
@media (min-width: 1024px) {
    .footer-panel {
        /* padding-left: 260px; - OBSOLETO após migração MudBlazor - MudMainContent gerencia isso */
    }

    .footer-black-bar-panel {
        padding: 24px 32px;
        gap: 24px;
    }

    .footer-links {
        gap: 16px;
    }

    .footer-links a {
        font-size: 0.875rem;
    }

    .logo-footer-panel {
        height: 36px;
    }

    .social-logo-panel {
        height: 28px;
        width: 28px;
        margin: 0 8px;
    }

    .footer-black-bar-panel span {
        font-size: 0.875rem;
    }

    .footer-squares-wrapper-panel {
        height: 100px;
    }
}

/* ========================================
 * LARGE DESKTOP (≥1366px) - Maximum comfort
 * ======================================== */
@media (min-width: 1366px) {
    .footer-black-bar-panel {
        padding: 28px 40px;
    }

    .footer-links {
        gap: 20px;
    }

    .footer-links a {
        font-size: 0.938rem;
    }

    .logo-footer-panel {
        height: 40px;
    }

    .social-logo-panel {
        height: 32px;
        width: 32px;
        margin: 0 10px;
    }

    .footer-black-bar-panel span {
        font-size: 0.938rem;
    }
}

/* ========================================
 * DARK MODE OVERRIDES
 * Uses office tokens for automatic dark mode support
 * ======================================== */
[data-theme="dark"] .footer-black-bar-panel {
    background-color: var(--office-surface-secondary, #1E293B);
    border-top-color: var(--office-border, #334155);
    color: var(--office-text-secondary, #CBD5E1);
}

[data-theme="dark"] .footer-black-bar-panel a {
    color: var(--office-text-secondary, #CBD5E1);
}

[data-theme="dark"] .footer-black-bar-panel a:hover {
    color: var(--office-primary, #2563EB);
}

[data-theme="dark"] .footer-black-bar-panel span {
    color: var(--office-text-muted, #64748B);
}

/* ========================================
 * ACCESSIBILITY - Reduced motion
 * Disable square animations if user prefers reduced motion
 * ======================================== */
@media (prefers-reduced-motion: reduce) {
    .footer-square-panel {
        animation: none !important;
    }
}
