.api-hero {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    padding: 150px 20px 100px;
    text-align: center;
}

.hero-code {
    max-width: 800px;
    margin: 50px auto 0;
    text-align: left;
}

.hero-code pre {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(229, 199, 56, 0.2);
    border-radius: 10px;
    padding: 20px;
    overflow-x: auto;
}

.hero-code code {
    color: var(--wfs-yellow);
    font-family: 'Fira Code', monospace;
    font-size: 0.95rem;
}

.api-content {
    padding: 80px 20px;
    background: var(--wfs-darker);
}

.api-section {
    max-width: 1200px;
    margin: 0 auto 80px;
}

.api-section h2 {
    color: var(--wfs-white);
    font-size: 2rem;
    margin-bottom: 15px;
    text-align: center;
}

.api-section > p {
    color: var(--wfs-light-gray);
    text-align: center;
    margin-bottom: 40px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: rgba(26, 26, 26, 0.5);
    border: 1px solid rgba(229, 199, 56, 0.1);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(229, 199, 56, 0.3);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    color: var(--wfs-white);
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--wfs-light-gray);
    font-size: 0.95rem;
}

/* Endpoints */
.endpoints-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.endpoint-item {
    background: rgba(26, 26, 26, 0.5);
    border: 1px solid rgba(229, 199, 56, 0.1);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s;
}

.endpoint-item:hover {
    border-color: rgba(229, 199, 56, 0.3);
}

.endpoint-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.method {
    padding: 5px 12px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.85rem;
}

.method.get {
    background: rgba(0, 200, 83, 0.2);
    color: #00c853;
}

.method.post {
    background: rgba(33, 150, 243, 0.2);
    color: #2196f3;
}

.endpoint-header code {
    color: var(--wfs-yellow);
    font-family: 'Fira Code', monospace;
}

.endpoint-item p {
    color: var(--wfs-light-gray);
    margin: 0;
}

/* Code Examples */
.code-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(229, 199, 56, 0.1);
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--wfs-light-gray);
    padding: 12px 20px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    color: var(--wfs-yellow);
    border-bottom-color: var(--wfs-yellow);
}

.code-panel {
    display: none;
}

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

.code-panel pre {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(229, 199, 56, 0.1);
    border-radius: 10px;
    padding: 25px;
    overflow-x: auto;
}

.code-panel code {
    color: #e0e0e0;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Webhooks */
.webhook-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.webhook-card {
    background: rgba(26, 26, 26, 0.5);
    border: 1px solid rgba(229, 199, 56, 0.1);
    border-radius: 15px;
    padding: 25px;
}

.webhook-card h3 {
    color: var(--wfs-yellow);
    font-family: 'Fira Code', monospace;
    margin-bottom: 10px;
}

.webhook-card p {
    color: var(--wfs-light-gray);
    margin-bottom: 20px;
}

.webhook-payload {
    display: block;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(229, 199, 56, 0.05);
    border-radius: 8px;
    padding: 15px;
    color: #a0a0a0;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    white-space: pre;
    overflow-x: auto;
}

/* Partners */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.partner-card {
    background: rgba(26, 26, 26, 0.5);
    border: 1px solid rgba(229, 199, 56, 0.1);
    border-radius: 15px;
    padding: 25px;
}

.partner-card h3 {
    color: var(--wfs-white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.partner-card ul {
    list-style: none;
}

.partner-card li {
    color: var(--wfs-light-gray);
    padding: 8px 0;
    border-bottom: 1px solid rgba(229, 199, 56, 0.05);
}

.partner-card li:last-child {
    border-bottom: none;
}

/* Rate Limits */
.rate-limits {
    overflow-x: auto;
}

.rate-limits table {
    width: 100%;
    border-collapse: collapse;
}

.rate-limits th {
    background: rgba(229, 199, 56, 0.1);
    color: var(--wfs-yellow);
    padding: 15px;
    text-align: left;
    border: 1px solid rgba(229, 199, 56, 0.2);
}

.rate-limits td {
    padding: 15px;
    color: var(--wfs-light-gray);
    border: 1px solid rgba(229, 199, 56, 0.1);
}

/* CTA */
.api-cta {
    text-align: center;
    padding: 60px;
    background: rgba(229, 199, 56, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(229, 199, 56, 0.1);
}

.api-cta h2 {
    color: var(--wfs-white);
    font-size: 2rem;
    margin-bottom: 20px;
}

.api-cta p {
    color: var(--wfs-light-gray);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .webhook-grid {
        grid-template-columns: 1fr;
    }
    
    .partners-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}
