/* API Testing - Modern Enterprise Design */
.api-testing-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-top: 2rem;
}

/* Hero Section */
.api-hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    border-radius: 24px;
    padding: 4rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.api-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.api-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.api-hero-text h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin: 0 0 1.5rem 0;
    line-height: 1.2;
}

.api-hero-text p {
    font-size: 1.25rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin: 0 0 2rem 0;
}

.api-stats {
    display: flex;
    gap: 2rem;
}

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

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #10b981;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #94a3b8;
    font-weight: 500;
}

/* Floating Security Elements */
.floating-security-elements {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.security-element {
    position: absolute;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.3);
    animation: float 6s ease-in-out infinite;
}

.security-element:nth-child(1) { animation-delay: 0s; }
.security-element:nth-child(2) { animation-delay: 1.5s; }
.security-element:nth-child(3) { animation-delay: 3s; }
.security-element:nth-child(4) { animation-delay: 4.5s; }

.shield-element { top: 20%; left: 20%; }
.lock-element { top: 20%; right: 20%; }
.eye-element { bottom: 20%; left: 20%; }
.code-element { bottom: 20%; right: 20%; }

.element-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: glow-pulse 3s ease-in-out infinite;
}

/* Platforms Showcase */
.api-platforms-showcase {
    background: var(--bg-primary);
    border-radius: 24px;
    padding: 3rem;
    border: 1px solid var(--border-secondary);
}

.platforms-header {
    text-align: center;
    margin-bottom: 3rem;
}

.platforms-header h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
}

.platforms-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin: 0;
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.platform-card {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--border-secondary);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.platform-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-primary);
}

.platform-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.05;
}

.platform-pattern {
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, currentColor 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, currentColor 2px, transparent 2px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
}

.platform-content {
    position: relative;
    z-index: 2;
}

.platform-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1.5rem;
}

.platform-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.75rem 0;
}

.platform-content p {
    color: var(--text-secondary);
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
}

.platform-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.platform-features span {
    background: var(--bg-primary);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--border-secondary);
}

.platform-status {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-indicator {
    width: 12px;
    height: 12px;
    background: #10b981;
    border-radius: 50%;
    animation: status-pulse 2s infinite;
}

.platform-status span {
    font-size: 0.875rem;
    color: #10b981;
    font-weight: 600;
}

/* Steps Section */
.api-steps-section {
    background: var(--bg-secondary);
    border-radius: 24px;
    padding: 3rem;
    border: 1px solid var(--border-secondary);
}

.steps-header {
    text-align: center;
    margin-bottom: 3rem;
}

.steps-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
}

.steps-header p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 1.125rem;
}

.steps-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.step-card {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-secondary);
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-primary);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 2rem;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, #8b5cf6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    border: 3px solid var(--bg-secondary);
}

.step-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
}

.step-content p {
    color: var(--text-secondary);
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
}

.api-steps-section .step-card .code-block {
    width: 100% !important;
    margin-top: auto;
    max-width: 100% !important;
    overflow-x: auto !important;
    box-sizing: border-box;
}

.api-steps-section .step-card .code-block pre {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    box-sizing: border-box;
}

/* Override step-content grid layout for API testing section */
.api-steps-section .step-content {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    min-height: auto !important;
}

/* Command Center */
.api-command-center {
    background: var(--bg-secondary);
    border-radius: 24px;
    padding: 3rem;
    border: 1px solid var(--border-secondary);
    margin-top: 4rem;
}

.command-center-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.header-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.header-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.header-content p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 1.125rem;
}

.command-tabs {
    background: var(--bg-primary);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-secondary);
}

.tab-buttons {
    display: flex;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-secondary);
}

.tab-btn {
    flex: 1;
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--accent-primary);
    color: white;
}

.tab-content {
    padding: 2rem;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.command-preview {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-secondary);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.preview-label {
    background: var(--accent-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
}

.preview-platform {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes glow-pulse {
    0%, 100% {
        opacity: 0.2;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes status-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .api-hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .api-hero-section {
        padding: 2rem;
    }

    .api-hero-text h3 {
        font-size: 2rem;
    }

    .api-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .platforms-grid {
        grid-template-columns: 1fr;
    }

    .command-center-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .tab-buttons {
        flex-direction: column;
    }

    .steps-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .step-card {
        padding: 1.5rem;
    }

    .step-number {
        top: -15px;
        left: 1.5rem;
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
}
