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

#endpoints {
    background: white;
}

/* Navegação dos endpoints */
.endpoints-nav {
    margin-bottom: 3rem;
}

.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    color: #64748b;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
}

.nav-btn:hover {
    border-color: var(--api-primary);
    color: var(--api-primary);
    transform: translateY(-2px);
}

.nav-btn.active {
    background: var(--api-primary);
    border-color: var(--api-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 170, 0.3);
}

/* Categorias de endpoints */
.endpoints-category {
    display: none;
}

.endpoints-category.active {
    display: block;
}

.category-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--api-secondary);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.category-title::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--api-primary);
    border-radius: 1px;
}

/* Cards de endpoint */
.endpoint-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.endpoint-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.endpoint-url {
    font-family: 'Fira Code', monospace;
    font-size: 0.875rem;
    color: #64748b;
    background: #f1f5f9;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    flex: 1;
}

.endpoint-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--api-secondary);
    margin: 0;
}

.endpoint-description {
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.endpoint-example {
    margin-top: 1rem;
}

.endpoint-example h5 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--api-secondary);
    margin-bottom: 0.5rem;
}

.endpoint-params {
    margin-top: 1rem;
}

.endpoint-params h5 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--api-secondary);
    margin-bottom: 0.5rem;
}

.endpoint-params ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
}

.endpoint-params li {
    padding: 0.25rem 0;
    color: #64748b;
    border-bottom: 1px solid #f1f5f9;
}

.endpoint-params li:last-child {
    border-bottom: none;
}

.endpoint-params code {
    background: #f1f5f9;
    color: #334155;
    padding: 0.125rem 0.375rem;
    border-radius: 3px;
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Testador de API */
.api-tester {
    margin-top: 4rem;
    text-align: center;
}

.api-tester .api-card {
    max-width: 600px;
    margin: 0 auto;
}

/* Responsividade específica */
@media (max-width: 768px) {
    .nav-buttons {
        gap: 0.5rem;
    }
    
    .nav-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .endpoint-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .endpoint-url {
        font-size: 0.75rem;
        word-break: break-all;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
    
    .api-tester {
        margin-top: 2rem;
    }
}

@media (max-width: 640px) {
    .nav-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
    
    .endpoint-card {
        gap: 0.75rem;
    }
    
    .endpoint-example,
    .endpoint-params {
        margin-top: 0.75rem;
    }
}

/* Animação suave para troca de categorias */
.endpoints-category {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.endpoints-category.active {
    opacity: 1;
    transform: translateY(0);
}
