/* AI Recipe Generator - Onglets de navigation pour recettes */

.air-recipe-tabs {
    background: #f8fafc;
    border-bottom: 2px solid #e5e7eb;
    padding: 0;
    margin: 2rem 0 0 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    font-size: 14px;
    min-font-size: 14px;
}

.air-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.air-tabs-nav li {
    margin: 0;
}

.air-tab-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
    min-height: 60px;
}

.air-tab-button:hover {
    background: rgba(99, 102, 241, 0.05);
    color: #4f46e5;
}

.air-tab-button.active {
    color: #4f46e5;
    background: rgba(99, 102, 241, 0.1);
    border-bottom-color: #4f46e5;
    font-weight: 600;
}

.air-tab-icon {
    font-size: 1.2rem;
}

.air-tab-content {
    display: none;
    padding: 2rem;
    background: white;
    border-radius: 0 0 12px 12px;
    animation: fadeIn 0.3s ease-in-out;
}

.air-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .air-tabs-nav {
        flex-direction: column;
    }
    
    .air-tab-button {
        width: 100%;
        justify-content: flex-start;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #e5e7eb;
        border-right: none;
    }
    
    .air-tab-button.active {
        border-bottom-color: #e5e7eb;
        border-left: 3px solid #4f46e5;
    }
    
    .air-tab-content {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .air-tab-button {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .air-tab-icon {
        font-size: 1rem;
    }
    
    .air-tab-content {
        padding: 1rem;
    }
}

/* Indicateur de contenu */
.air-tab-button::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #4f46e5;
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.air-tab-button {
    position: relative;
}

.air-tab-button:hover::after {
    transform: scaleX(0.5);
}

.air-tab-button.active::after {
    transform: scaleX(1);
}

/* Animations d'ouverture */
.air-tab-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.air-tab-content.active {
    max-height: none;
    overflow: visible;
}

/* Style pour les compteurs */
.air-tab-counter {
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.air-tab-button.active .air-tab-counter {
    background: #4f46e5;
}