/* ============================================
   DOCUMENTAÇÃO WINI.IA - ESTILOS COMPLETOS
   Usando estilos base de home2.css
   Versão 2.0 - Profissional e Corporativa
   ============================================ */

/* ===================================
   HERO SECTION
   =================================== */

   .docs-hero {
    min-height: 40vh !important;
    padding: 120px 0 80px !important;
    background: linear-gradient(135deg, #1A1F3A, #2C3E7C) !important;
}

.docs-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.docs-hero .discord-title {
    font-size: 48px;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #FFFFFF, #E8F0FE);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.docs-hero .discord-subtitle {
    font-size: 20px;
    color: #E8F0FE;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===================================
   DOCS CONTENT SECTION
   =================================== */

.docs-content-section {
    min-height: auto !important;
    padding: 80px 0 !important;
    background: #FFFFFF !important;
}

/* ===================================
   LAYOUT PRINCIPAL
   =================================== */

.docs-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    align-items: flex-start;
}

/* ===================================
   SIDEBAR
   =================================== */

.docs-sidebar {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.docs-nav-wrapper {
    background: #F8FAFB;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(107, 70, 193, 0.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.docs-nav-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #1A1F3A;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #6B46C1;
}

.docs-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.docs-nav-link {
    display: block;
    padding: 10px 16px;
    color: #6B7280;
    text-decoration: none;
    font-size: 15px;
    border-radius: 6px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.docs-nav-link:hover {
    background: rgba(107, 70, 193, 0.08);
    color: #6B46C1;
    transform: translateX(4px);
}

.docs-nav-link.active {
    background: rgba(107, 70, 193, 0.12);
    color: #6B46C1;
    font-weight: 600;
    border-left-color: #6B46C1;
}

/* Scrollbar da sidebar */
.docs-sidebar::-webkit-scrollbar {
    width: 6px;
}

.docs-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.docs-sidebar::-webkit-scrollbar-thumb {
    background: rgba(107, 70, 193, 0.3);
    border-radius: 3px;
}

.docs-sidebar::-webkit-scrollbar-thumb:hover {
    background: #6B46C1;
}

/* ===================================
   ARTIGO PRINCIPAL
   =================================== */

.docs-article {
    max-width: 900px;
    color: #1A1F3A;
}

/* Seções */
.docs-section {
    margin-bottom: 60px;
    scroll-margin-top: 100px;
}

/* Títulos */
.docs-section h2 {
    font-size: 36px;
    font-weight: 700;
    color: #1A1F3A;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 3px solid #6B46C1;
    background: linear-gradient(90deg, #6B46C1, #F59E0B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.docs-section h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1A1F3A;
    margin-top: 32px;
    margin-bottom: 16px;
    padding-left: 16px;
    border-left: 4px solid #F59E0B;
}

.docs-section h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1A1F3A;
    margin-top: 20px;
    margin-bottom: 12px;
}

/* Parágrafos */
.docs-section p {
    font-size: 16px;
    line-height: 1.8;
    color: #4B5563;
    margin-bottom: 20px;
}

/* Negrito */
.docs-section strong {
    font-weight: 600;
    color: #1A1F3A;
}

/* Links */
.docs-section a {
    color: #6B46C1;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.docs-section a:hover {
    color: #F59E0B;
    border-bottom-color: #F59E0B;
}

/* Listas */
.docs-section ul,
.docs-section ol {
    margin-bottom: 20px;
    padding-left: 32px;
}

.docs-section li {
    margin-bottom: 12px;
    line-height: 1.8;
    color: #4B5563;
}

/* ===================================
   CALLOUTS (AVISOS E DICAS)
   =================================== */

.docs-callout {
    padding: 20px;
    border-radius: 8px;
    margin: 24px 0;
    border-left: 4px solid;
}

.docs-callout p {
    margin-bottom: 0;
}

.docs-callout-info {
    background: #E8F0FE;
    border-color: #6B46C1;
}

.docs-callout-success {
    background: #D1FAE5;
    border-color: #10B981;
}

.docs-callout-warning {
    background: #FEF3C7;
    border-color: #F59E0B;
}

.docs-callout-tip {
    background: #FEFCE8;
    border-color: #F59E0B;
}

/* ===================================
   STEPS (PASSOS)
   =================================== */

.docs-steps {
    margin: 32px 0;
}

.docs-step {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    padding: 20px;
    background: #F8FAFB;
    border-radius: 8px;
    border-left: 4px solid #6B46C1;
}

.docs-step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6B46C1, #F59E0B);
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.docs-step-content h4 {
    margin-top: 0;
    margin-bottom: 8px;
    color: #1A1F3A;
}

.docs-step-content p {
    margin-bottom: 0;
}

.docs-steps-simple {
    margin: 24px 0;
}

.docs-step-simple {
    padding: 16px;
    margin-bottom: 12px;
    background: #F8FAFB;
    border-radius: 6px;
    border-left: 3px solid #6B46C1;
}

.docs-step-simple strong {
    color: #6B46C1;
    margin-right: 8px;
}

/* ===================================
   CARDS DE TIPOS DE CONTEÚDO
   =================================== */

.docs-content-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 32px 0;
}

.docs-content-type-card {
    background: #FFFFFF;
    border: 2px solid #E8F0FE;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

.docs-content-type-card:hover {
    border-color: #6B46C1;
    box-shadow: 0 4px 12px rgba(107, 70, 193, 0.15);
    transform: translateY(-4px);
}

.docs-content-type-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6B46C1, #F59E0B);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.docs-content-type-icon i {
    font-size: 28px;
    color: #FFFFFF;
}

.docs-content-type-card h4 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #1A1F3A;
    font-size: 20px;
}

.docs-content-type-card p {
    margin-bottom: 12px;
    font-size: 14px;
}

/* ===================================
   COLLAPSIBLES (ACORDEÕES)
   =================================== */

.docs-collapsible {
    background: #F8FAFB;
    border: 1px solid #E8F0FE;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}

.docs-collapsible summary {
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 600;
    color: #1A1F3A;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.docs-collapsible summary::-webkit-details-marker {
    display: none;
}

.docs-collapsible summary::after {
    content: '+';
    font-size: 24px;
    color: #6B46C1;
    transition: transform 0.2s ease;
}

.docs-collapsible[open] summary::after {
    transform: rotate(45deg);
}

.docs-collapsible ul {
    padding: 0 20px 16px 40px;
    margin: 0;
}

.docs-collapsible li {
    color: #4B5563;
    margin-bottom: 8px;
}

/* ===================================
   FAQ
   =================================== */

.docs-faq {
    margin: 24px 0;
}

.docs-faq-item {
    background: #FFFFFF;
    border: 2px solid #E8F0FE;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.docs-faq-item:hover {
    border-color: #6B46C1;
}

.docs-faq-item summary {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    color: #1A1F3A;
    font-size: 16px;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.docs-faq-item summary::-webkit-details-marker {
    display: none;
}

.docs-faq-item summary::after {
    content: '▼';
    font-size: 14px;
    color: #6B46C1;
    transition: transform 0.2s ease;
}

.docs-faq-item[open] summary::after {
    transform: rotate(180deg);
}

.docs-faq-item p {
    padding: 0 20px 20px 20px;
    margin: 0;
    color: #4B5563;
    line-height: 1.7;
}

/* ===================================
   DEMONSTRAÇÃO DE IA
   =================================== */

.docs-ia-demo {
    margin: 24px 0;
    padding: 20px;
    background: #F8FAFB;
    border-radius: 8px;
    border: 1px solid #E8F0FE;
}

.docs-field-example {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #FFFFFF;
    border-radius: 6px;
    border: 1px solid #E8F0FE;
}

.docs-field-example span {
    font-weight: 500;
    color: #1A1F3A;
    flex: 1;
}

.docs-ia-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #6B46C1, #F59E0B);
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.docs-ia-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 70, 193, 0.3);
}

.docs-ia-button i {
    font-size: 14px;
}

/* ===================================
   GRID DE DICAS
   =================================== */

.docs-tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.docs-tip-card {
    background: #F8FAFB;
    border: 1px solid #E8F0FE;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.docs-tip-card i {
    font-size: 32px;
    color: #6B46C1;
    margin-bottom: 12px;
}

.docs-tip-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

/* ===================================
   CAMPOS OBRIGATÓRIOS
   =================================== */

.docs-required-fields {
    margin: 24px 0;
}

/* ===================================
   FOOTER DA DOCUMENTAÇÃO
   =================================== */

.docs-footer {
    margin-top: 80px;
    padding-top: 32px;
    border-top: 2px solid rgba(107, 70, 193, 0.2);
}

.docs-footer p {
    font-size: 14px;
    color: #6B7280;
    margin-bottom: 12px;
}

.docs-version {
    font-size: 13px !important;
    color: #6B7280 !important;
    font-style: italic;
    opacity: 0.7;
}

/* ===================================
   RESPONSIVIDADE
   =================================== */

@media (max-width: 1200px) {
    .docs-layout {
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .docs-layout {
        grid-template-columns: 1fr;
    }
    
    .docs-sidebar {
        position: relative;
        top: 0;
        max-height: none;
        margin-bottom: 40px;
    }
    
    .docs-nav-wrapper {
        max-height: 400px;
        overflow-y: auto;
    }
    
    .docs-hero .discord-title {
        font-size: 40px;
    }
    
    .docs-hero .discord-subtitle {
        font-size: 18px;
    }
    
    .docs-section h2 {
        font-size: 32px;
    }
    
    .docs-section h3 {
        font-size: 22px;
    }

    .docs-content-types {
        grid-template-columns: 1fr;
    }

    .docs-tips-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .docs-hero {
        padding: 100px 0 60px !important;
    }
    
    .docs-hero .discord-title {
        font-size: 32px;
    }
    
    .docs-hero .discord-subtitle {
        font-size: 16px;
    }
    
    .docs-content-section {
        padding: 60px 0 !important;
    }
    
    .docs-section {
        margin-bottom: 40px;
    }
    
    .docs-section h2 {
        font-size: 28px;
    }
    
    .docs-section h3 {
        font-size: 20px;
    }
    
    .docs-section p,
    .docs-section li {
        font-size: 15px;
    }

    .docs-step {
        flex-direction: column;
    }

    .docs-field-example {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .discord-container {
        width: 95%;
    }
    
    .docs-hero .discord-title {
        font-size: 28px;
    }
    
    .docs-section h2 {
        font-size: 24px;
    }
    
    .docs-section h3 {
        font-size: 18px;
    }
    
    .docs-nav-wrapper {
        padding: 16px;
    }

    .docs-step-number {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .docs-content-type-icon {
        width: 50px;
        height: 50px;
    }

    .docs-content-type-icon i {
        font-size: 24px;
    }
}

/* ===================================
   AJUSTES DE INTEGRAÇÃO
   =================================== */

/* Garantir que o header não sobreponha */
.metaportal_fn_content {
    padding-top: 0;
}

/* Remover padding extra das seções discord */
.docs-content-section .discord-container {
    padding: 0;
}

/* ===================================
   UTILITÁRIOS
   =================================== */

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 32px;
}

.mb-4 {
    margin-bottom: 32px;
}