/* Footer Styles - Standardized for Site & Panel */
.main-footer {
    width: 100%;
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 24px 0;
    margin-top: auto;
    position: relative;
    z-index: 10;
}

.footCn {
    width: 100%;
}

.footIn {
    max-width: var(--contentW);
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footL {
    font-size: var(--font-14);
    color: var(--text-secondary);
    font-weight: 500;
}

.footR {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Menu Item Link Styling */
.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--font-14);
    font-weight: 500;
    transition: color 0.2s ease, opacity 0.2s ease;
    cursor: pointer;
}

.footer-link:hover {
    color: var(--primary-color);
}

/* Secondary (More) Menu Adjustments */
.footR .item-dropdown-container {
    display: flex;
    align-items: center;
}

.footR .item-dropdown-menu.show-above {
    bottom: 120%;
    right: 0;
    top: auto;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .main-footer {
        padding: 20px 0 90px; /* Extra padding for mobile bottom nav */
    }

    .footIn {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .footR {
        justify-content: center;
        gap: 12px 20px;
    }

    .footL {
        order: 2; /* Copyright at bottom on mobile */
    }

    .footR {
        order: 1; /* Menu at top on mobile */
    }
}

/* Dark/Dim Theme Support */
[data-theme="dark"] .main-footer,
.dark-theme .main-footer {
    background-color: var(--bg-primary);
}