/**
 * Tab Styles for Menu Groups
 * @package EligeMenu_Integration
 * @since 2.2.0
 */

/* Menu Tabs Container */
.em-menu-tabs-container {
    width: 100%;
    margin: 0 auto;
}

/* Tabs Navigation */
.em-tabs-navigation {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 2px solid var(--em-border-color, #e5e7eb);
    margin-bottom: 2rem;
    overflow-x: auto;
    gap: 0.5rem;
}

.em-tab-button {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    color: var(--em-text-muted, #6b7280);
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
}

.em-tab-button:hover {
    color: var(--em-text-primary, #111827);
    background: var(--em-bg-hover, #f9fafb);
}

.em-tab-button:focus {
    outline: 2px solid var(--em-primary, #3b82f6);
    outline-offset: 2px;
}

.em-tab-button.active {
    color: var(--em-primary, #3b82f6);
    border-bottom-color: var(--em-primary, #3b82f6);
    font-weight: 600;
}

/* Tabs Content */
.em-tabs-content {
    position: relative;
    min-height: 200px;
}

.em-tab-panel {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.em-tab-panel.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: em-fade-in 0.3s ease forwards;
}

@keyframes em-fade-in {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Menu Section inside Tab Panel */
.em-menu-section {
    padding: 1rem 0;
}

.em-menu-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--em-heading-color, #111827);
}

.em-menu-description {
    font-size: 1rem;
    color: var(--em-text-muted, #6b7280);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.em-no-menus,
.em-no-groups {
    padding: 2rem;
    text-align: center;
    color: var(--em-text-muted, #6b7280);
    background: var(--em-bg-light, #f9fafb);
    border-radius: 8px;
}

/* Responsive - Mobile First */
@media (max-width: 640px) {
    .em-tabs-navigation {
        flex-direction: column;
        border-bottom: none;
        border-left: 3px solid var(--em-border-color, #e5e7eb);
    }
    
    .em-tab-button {
        border-bottom: none;
        border-left: 3px solid transparent;
        text-align: left;
        width: 100%;
    }
    
    .em-tab-button.active {
        border-bottom-color: transparent;
        border-left-color: var(--em-primary, #3b82f6);
        background: var(--em-bg-light, #f9fafb);
    }
    
    .em-menu-title {
        font-size: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .em-tabs-navigation {
        display: none;
    }
    
    .em-tab-panel {
        display: block !important;
        opacity: 1 !important;
        transform: none !important;
        page-break-inside: avoid;
    }
    
    .em-menu-section {
        page-break-inside: avoid;
    }
}
