/* ========================================
   API CSS - SalonBookIt
   Estilos ESPECIFICOS de la pagina de API
   ======================================== */

/* === API HERO STATS === */
.api-hero-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.api-hero-stat {
    text-align: center;
}

.api-hero-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold);
}

.api-hero-stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

/* === API FEATURES GRID === */
.api-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.api-feature-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.api-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.api-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.api-feature-icon.blue { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.api-feature-icon.green { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.api-feature-icon.purple { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.api-feature-icon.orange { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }

.api-feature-icon svg {
    width: 24px;
    height: 24px;
}

.api-feature-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.api-feature-desc {
    color: var(--gray-600);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* === ENDPOINT GROUP === */
.endpoint-group {
    margin-bottom: 2rem;
}

.endpoint-group-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.endpoint-group-title svg {
    width: 20px;
    height: 20px;
    color: var(--gold);
}

.endpoint-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.endpoint-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.endpoint-item:hover {
    border-color: var(--gold);
    background: rgba(245, 158, 11, 0.05);
}

.endpoint-method {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    min-width: 60px;
    text-align: center;
}

.endpoint-method.get { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.endpoint-method.post { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.endpoint-method.put { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.endpoint-method.delete { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

.endpoint-path {
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 0.9375rem;
    color: var(--navy-900);
    flex: 1;
}

.endpoint-desc {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* === CODE EXAMPLE === */
.code-example {
    background: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    margin: 1.5rem 0;
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: #2d2d2d;
    border-bottom: 1px solid #3d3d3d;
}

.code-tabs {
    display: flex;
    gap: 0.5rem;
}

.code-tab {
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    border: none;
}

.code-tab:hover {
    color: var(--gold);
}

.code-tab.active {
    background: var(--gold);
    color: #000;
}

.code-content {
    display: none;
}

.code-content.active {
    display: block;
}

.code-copy {
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8125rem;
    color: #888;
    background: transparent;
    border: 1px solid #3d3d3d;
    cursor: pointer;
    transition: all 0.2s ease;
}

.code-copy:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.code-body {
    padding: 1.5rem;
    overflow-x: auto;
}

.code-body pre {
    margin: 0;
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #d4d4d4;
}

.code-body .comment { color: #6a9955; }
.code-body .string { color: #ce9178; }
.code-body .keyword { color: #569cd6; }
.code-body .function { color: #dcdcaa; }

/* === API STEPS === */
.api-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.api-step {
    text-align: center;
    padding: 1.5rem;
}

.api-step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gold);
    color: #000;
    font-weight: 800;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.api-step-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.api-step-desc {
    color: var(--gray-600);
    font-size: 0.9375rem;
}

/* === SDK CARDS === */
.sdk-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.sdk-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    text-decoration: none;
    color: var(--white);
    transition: all 0.2s ease;
}

.sdk-card:hover {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.sdk-card svg {
    width: 32px;
    height: 32px;
}

.sdk-card-info {
    display: flex;
    flex-direction: column;
}

.sdk-card-name {
    font-weight: 600;
    color: var(--white);
}

.sdk-card-version {
    font-size: 0.8125rem;
    color: var(--gold);
}

/* === RESPONSIVE API === */
@media (max-width: 768px) {
    .api-hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .endpoint-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}
