/* Page-specific component styles for documentation pages */

/* Common article styling */
.docs-article {
    max-width: 800px;
    line-height: 1.7;
}

.lead {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.docs-article h2 {
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-size: 1.875rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.docs-article h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.375rem;
    font-weight: 600;
}

/* Benefits and info boxes */
.benefits-box, .info-box {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #0ea5e9;
    border-radius: 0.75rem;
    padding: 2rem;
    margin: 2rem 0;
}

.benefits-box h3, .info-box h4 {
    margin: 0 0 1rem 0;
    color: #0c4a6e;
}

.benefits-box ul, .info-box ul {
    margin: 0;
    padding-left: 1.2rem;
}

.benefits-box li, .info-box li {
    margin-bottom: 0.5rem;
}

/* Setup steps */
.setup-step {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
}

.setup-step h3 {
    margin: 0 0 1rem 0;
    color: var(--primary-color);
}

.setup-step ol {
    padding-left: 1.2rem;
}

.setup-step li {
    margin-bottom: 1rem;
}

/* Visual steps grid */
.steps-visual {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.step-visual {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
}

.step-num {
    background: var(--primary-color);
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}

.step-content p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* API key form examples */
.api-key-form-example {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.api-key-form-example h4 {
    margin: 0 0 1rem 0;
    color: var(--text-color);
}

.form-field {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.form-field:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.permissions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.permission {
    background: #f1f5f9;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

/* Warning boxes */
.warning-box {
    background: #fef7f0;
    border: 1px solid #fed7aa;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.warning-box h4 {
    margin: 0 0 1rem 0;
    color: #ea580c;
}

/* Code examples */
.api-key-example {
    background: #1f2937;
    color: #f9fafb;
    padding: 1rem;
    border-radius: 0.375rem;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.875rem;
    overflow-x: auto;
}

.expected-output {
    margin: 1.5rem 0;
}

.expected-output h4 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.success-output {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    padding: 1rem;
    border-radius: 0.375rem;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.875rem;
}

/* Test results */
.test-results {
    margin: 1.5rem 0;
}

.test-result-item {
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 0.5rem;
}

.test-result-item h5 {
    margin: 0 0 0.5rem 0;
    color: #166534;
}

.test-result-item p {
    margin: 0;
    color: #166534;
    font-size: 0.875rem;
}

/* Action groups and support */
.next-actions, .support-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.action-group {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.action-group h3 {
    margin: 0 0 1rem 0;
    font-size: 1.125rem;
    color: var(--primary-color);
}

.action-group ul {
    margin: 0;
    padding-left: 1.2rem;
}

.action-group li {
    margin-bottom: 0.5rem;
}

.support-option {
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.support-option h4 {
    margin: 0 0 0.5rem 0;
    color: #0c4a6e;
}

.support-option p {
    margin: 0;
    color: #0c4a6e;
    font-size: 0.875rem;
}

/* Next steps cards */
.next-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.next-step-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    box-shadow: var(--shadow);
}

.next-step-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.next-step-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
    color: var(--primary-color);
}

.next-step-card p {
    margin: 0;
    color: var(--text-light);
}

/* Code blocks */
.code-block {
    background: var(--code-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1rem 0;
    overflow-x: auto;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Responsive design */
@media (max-width: 768px) {
    .docs-article {
        max-width: 100%;
    }
    
    .steps-visual,
    .next-actions,
    .support-options,
    .next-steps-grid {
        grid-template-columns: 1fr;
    }
    
    .step-visual {
        flex-direction: column;
        text-align: center;
    }
}