/* ========================================
   Vertical Tabs Content - Frontend CSS
   ======================================== */

.vtc-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.vtc-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    min-height: 500px;
}

/* ========================================
   Menu de Navegação Vertical
   ======================================== */

.vtc-tabs-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.vtc-tab-button {
    background: transparent;
    border: none;
    padding: 14px 20px;
    text-align: left;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    border-radius: 6px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.vtc-tab-button:hover {
    background: #f5f5f5;
    color: #0073aa;
    border-left-color: #0073aa;
}

.vtc-tab-button.active {
    background: #0073aa;
    color: #ffffff;
    border-left-color: #005a87;
    box-shadow: 0 2px 4px rgba(0, 115, 170, 0.2);
}

/* ========================================
   Área de Conteúdo
   ======================================== */

.vtc-tabs-content {
    position: relative;
    min-height: 400px;
}

.vtc-tab-panel {
    display: none;
    animation: fadeIn 0.4s ease-in;
}

.vtc-tab-panel.active {
    display: block;
}

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

/* ========================================
   Conteúdo do Topo - Cards
   ======================================== */

.vtc-top-content {
    margin-bottom: 40px;
}

.vtc-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.vtc-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vtc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.vtc-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
}

.vtc-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.vtc-card:hover .vtc-card-image img {
    transform: scale(1.05);
}

.vtc-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
    padding: 20px 20px 10px 20px;
    line-height: 1.4;
}

.vtc-card-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
    padding: 0 20px 20px 20px;
    line-height: 1.6;
}

/* ========================================
   Conteúdo Lateral
   ======================================== */

.vtc-side-content {
    background: #ffffff;
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.vtc-side-title {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin: 0 0 25px 0;
    line-height: 1.3;
    border-bottom: 3px solid #0073aa;
    padding-bottom: 15px;
}

.vtc-side-text {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.vtc-side-text p {
    margin: 0 0 18px 0;
}

.vtc-side-text p:last-child {
    margin-bottom: 0;
}

.vtc-side-text strong {
    color: #222;
    font-weight: 600;
}

.vtc-side-text ul,
.vtc-side-text ol {
    margin: 0 0 18px 0;
    padding-left: 25px;
}

.vtc-side-text li {
    margin-bottom: 10px;
    line-height: 1.7;
}

/* ========================================
   HTML Customizado
   ======================================== */

.vtc-custom-html {
    line-height: 1.7;
    color: #444;
}

.vtc-custom-html img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ========================================
   Responsivo
   ======================================== */

@media (max-width: 1024px) {
    .vtc-container {
        grid-template-columns: 220px 1fr;
        gap: 20px;
    }
    
    .vtc-tabs-nav {
        padding: 15px;
    }
    
    .vtc-tab-button {
        font-size: 14px;
        padding: 12px 15px;
    }
}

@media (max-width: 768px) {
    .vtc-wrapper {
        padding: 15px;
    }
    
    .vtc-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .vtc-tabs-nav {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        padding: 15px;
    }
    
    .vtc-tab-button {
        flex: 1;
        min-width: 150px;
        text-align: center;
        border-left: none;
        border-bottom: 3px solid transparent;
    }
    
    .vtc-tab-button:hover {
        border-left-color: transparent;
        border-bottom-color: #0073aa;
    }
    
    .vtc-tab-button.active {
        border-left-color: transparent;
        border-bottom-color: #005a87;
    }
    
    .vtc-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .vtc-side-content {
        padding: 25px 20px;
    }
    
    .vtc-side-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .vtc-tab-button {
        min-width: 100%;
        font-size: 13px;
        padding: 12px 15px;
    }
    
    .vtc-card-title {
        font-size: 16px;
        padding: 15px 15px 8px 15px;
    }
    
    .vtc-card-subtitle {
        font-size: 13px;
        padding: 0 15px 15px 15px;
    }
    
    .vtc-side-title {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .vtc-side-text {
        font-size: 15px;
    }
}

/* ========================================
   Variações de Estilo (Opcional)
   ======================================== */

/* Estilo alternativo para cards sem imagem */
.vtc-card.no-image {
    padding: 25px;
}

.vtc-card.no-image .vtc-card-title {
    padding: 0 0 10px 0;
}

.vtc-card.no-image .vtc-card-subtitle {
    padding: 0;
}

/* Destaque especial */
.vtc-card.featured {
    border-top: 4px solid #0073aa;
}

/* Cores customizáveis - adicione classes no HTML customizado */
.vtc-card.card-blue { border-top: 4px solid #0073aa; }
.vtc-card.card-green { border-top: 4px solid #46b450; }
.vtc-card.card-red { border-top: 4px solid #dc3232; }
.vtc-card.card-orange { border-top: 4px solid #f56e28; }
.vtc-card.card-purple { border-top: 4px solid #826eb4; }
