/* API Documentation Page Specific Styles */

/* API Hero */
.api-hero {
    padding: 10rem 2rem 6rem;
    background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-base) 100%);
    border-bottom: var(--border-comic);
    text-align: center;
}

.api-hero .hero-badge {
    margin: 0 auto 1.5rem;
}

.api-hero .hero-title {
    font-size: 4rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.api-hero .hero-subtitle {
    max-width: 600px;
    margin: 0 auto 2rem;
    text-align: center;
}

.api-hero .hero-cta {
    justify-content: center;
}

/* Features Section */
.features-section {
    padding: var(--space-4xl) var(--space-xl);
    background: var(--bg-surface);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-base);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.2s;
}

.feature-card:hover {
    border-color: var(--rust);
    transform: translateY(-4px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--golden);
    border: 2px solid var(--border-strong);
    border-radius: 8px;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.feature-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Quickstart Section */
.quickstart-section {
    padding: var(--space-4xl) var(--space-xl);
    background: var(--bg-base);
}

.quickstart-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.step-number {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rust);
    color: var(--text-inverse);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    border-radius: 50%;
    border: 2px solid var(--border-strong);
}

.step-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text-primary);
}

/* Code Blocks */
.code-block {
    background: #1A1A1A;
    border: var(--border-comic);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-comic-sm);
}

.code-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #2A2A2A;
    border-bottom: 2px solid #3A3A3A;
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4A4A4A;
}

.code-dot:nth-child(1) { background: #FF5F56; }
.code-dot:nth-child(2) { background: #FFBD2E; }
.code-dot:nth-child(3) { background: #27C93F; }

.code-title {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #8A8A8A;
}

.code-content {
    padding: 1.5rem;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.7;
    color: #E0E0E0;
    margin: 0;
}

.code-keyword { color: #C792EA; }
.code-string { color: #C3E88D; }
.code-number { color: #F78C6C; }
.code-comment { color: #546E7A; }

/* Concepts Section */
.concepts-section {
    padding: var(--space-4xl) var(--space-xl);
    background: var(--bg-surface);
    border-top: var(--border-comic-sm);
}

.concepts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.concept-card {
    background: var(--bg-base);
    border: 3px solid var(--border-strong);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-comic-sm);
}

.concept-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--rust);
    margin-bottom: 0.75rem;
}

.concept-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.code-snippet {
    padding: 0.75rem 1rem;
    background: #1A1A1A;
    border-radius: 8px;
    overflow-x: auto;
}

.code-snippet code {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #E0E0E0;
    white-space: nowrap;
}

/* Reference Section */
.reference-section {
    padding: var(--space-4xl) var(--space-xl);
    background: var(--bg-base);
}

.reference-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.reference-card {
    background: var(--bg-surface);
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    transition: all 0.2s;
}

.reference-card:hover {
    border-color: var(--rust);
}

.reference-title {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.method-badge {
    padding: 0.125rem 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.625rem;
    letter-spacing: 0.05em;
    border-radius: 4px;
    color: var(--text-inverse);
}

.method-badge.get { background: var(--success); }
.method-badge.post { background: var(--rust); }
.method-badge.put { background: var(--warning); }
.method-badge.delete { background: var(--error); }

.reference-description {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.reference-cta {
    text-align: center;
}

/* Limits Section */
.limits-section {
    padding: var(--space-4xl) var(--space-xl);
    background: var(--bg-surface);
    border-top: var(--border-comic-sm);
}

.limits-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.limits-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.limits-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.limits-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-base);
    border: 2px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.limits-table th,
.limits-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.limits-table th {
    background: var(--bg-muted);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

.limits-table tr:last-child td {
    border-bottom: none;
}

.limits-visual {
    display: flex;
    justify-content: center;
}

.limits-panel {
    padding: 2rem;
    max-width: 320px;
    text-align: center;
}

.panel-label {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--rust);
    color: var(--text-inverse);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.panel-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.panel-code {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #1A1A1A;
    color: #C3E88D;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    border-radius: 6px;
}

/* Nav Active State */
.nav-link.active {
    color: var(--rust);
}

/* Responsive */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reference-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .limits-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .limits-visual {
        order: -1;
    }
}

@media (max-width: 768px) {
    .api-hero .hero-title {
        font-size: 2.75rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .concepts-grid {
        grid-template-columns: 1fr;
    }

    .reference-grid {
        grid-template-columns: 1fr;
    }

    .code-content {
        font-size: 0.75rem;
        padding: 1rem;
    }
}
