/* ========================================
   API WEBHOOK - ESTILOS ESPECÍFICOS
   ======================================== */

#webhook {
    background: white;
}

/* Benefícios do webhook */
.webhook-benefits {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.benefit-item i {
    font-size: 1rem;
    flex-shrink: 0;
}

/* Passos de configuração */
.setup-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.step-number {
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, var(--api-primary), #00b89a);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.step h4 {
    font-size: 1rem;
    margin: 0 0 0.25rem 0;
    color: var(--api-secondary);
}

.step p {
    margin: 0;
    line-height: 1.4;
}

/* Cards de eventos */
.event-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.event-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: white;
}

.event-payload {
    margin-top: auto;
}

.event-payload h5 {
    color: var(--api-secondary);
    margin-bottom: 0.5rem;
}

.event-payload .api-code {
    font-size: 0.75rem;
}

/* Navegação de linguagens para webhooks */
.webhook-lang-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.lang-btn {
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    color: #64748b;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Fira Code', monospace;
    font-size: 0.875rem;
}

.lang-btn:hover {
    border-color: var(--api-primary);
    color: var(--api-primary);
}

.lang-btn.active {
    background: var(--api-primary);
    border-color: var(--api-primary);
    color: white;
}

/* Exemplos de webhook */
.webhook-examples {
    position: relative;
}

.webhook-example {
    display: none;
}

.webhook-example.active {
    display: block;
    animation: fadeInUp 0.3s ease;
}

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

/* Espaçamento para listas */
#webhook .space-y-1 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 0.25rem;
}

/* Responsividade específica */
@media (max-width: 768px) {
    .webhook-benefits {
        gap: 0.5rem;
    }
    
    .setup-steps {
        gap: 0.75rem;
    }
    
    .step {
        gap: 0.75rem;
    }
    
    .step-number {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.75rem;
    }
    
    .event-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.25rem;
    }
    
    .webhook-lang-nav {
        gap: 0.25rem;
    }
    
    .lang-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .event-payload .api-code {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .webhook-lang-nav {
        flex-direction: column;
        align-items: center;
    }
    
    .lang-btn {
        width: 100%;
        max-width: 150px;
        text-align: center;
    }
    
    .step {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .benefit-item {
        justify-content: flex-start;
        gap: 0.5rem;
    }
}
