/* ========================================
   TABS STYLES
   ======================================== */

.tabs-wrapper {
    display: flex;
    flex-direction: column;
    margin: 20px 0;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

/* Navegação das abas */
.tabs-navigation {
    display: flex;
    gap: 0;
    background-color: #f5f5f5;
    border-bottom: 2px solid #e0e0e0;
}

.tab-button {
    flex: 1;
    padding: 12px 20px;
    background-color: #f5f5f5;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.tab-button:hover {
    background-color: #f0f0f0;
    color: #333;
}

.tab-button.active {
    background-color: #ffffff;
    color: #0078d4;
    border-bottom-color: #0078d4;
}

/* Conteúdo das abas */
.tabs-content {
    background-color: #ffffff;
}

.tab-content {
    display: none;
    padding: 20px;
    animation: fadeIn 0.3s ease-in;
}

.tab-content.active {
    display: block;
}

.tab-content p {
    margin: 0 0 12px 0;
    line-height: 1.6;
    color: #333;
}

.tab-content p:last-child {
    margin-bottom: 0;
}

/* Figuras dentro das abas */
.tab-content figure {
    margin: 16px 0;
    text-align: center;
}

.tab-content figure img {
    max-width: 100%;
    height: auto;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.tab-content figcaption {
    margin-top: 8px;
    font-size: 12px;
    color: #999;
    font-style: italic;
}

.tab-content figure p {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
}

/* Animação */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .tabs-navigation {
        flex-wrap: wrap;
    }

    .tab-button {
        flex: 1 1 auto;
        min-width: 120px;
        padding: 10px 15px;
        font-size: 13px;
    }

    .tab-content {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .tabs-navigation {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .tab-button {
        min-width: 100px;
        padding: 10px 12px;
        font-size: 12px;
    }

    .tab-content {
        padding: 12px;
    }
}
