/* ============================================================
   Developer 페이지 — API 문서
   ============================================================ */

.developer-section {
    padding-top: 120px;
    padding-bottom: 60px;
}
.developer-section .container {
    max-width: 1080px;
}

.developer-section > .container > h2 {
    color: #fff;
    border-bottom: 0;
    padding: 0 0 8px;
    margin: 0 0 12px;
}

.developer-section section {
    margin-bottom: 22px;
    background-color: #fff;
    padding: 26px 28px;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(6, 27, 71, 0.22);
    border: 1px solid rgba(183, 221, 255, 0.5);
    /* API 문서 본문은 가독성 위해 표준 산세리프 유지 (둥근미소 폰트 미적용) */
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.developer-section section h3 {
    color: #1b3566;
    border-bottom: 2px solid rgba(31, 111, 235, 0.18);
    padding: 0 0 10px;
    margin: 0 0 18px;
    font-size: 22px;
}
.developer-section section h3 i {
    color: #1f6feb;
    margin-right: 6px;
}
.developer-section section h4 {
    color: #244b9d;
    margin: 22px 0 10px;
    font-size: 16px;
}

.developer-section p { color: #444; line-height: 1.7; margin: 0 0 10px; }

/* ============================================================
   1) 빠른 시작 — 번호 + 제목 통합 헤딩
   ============================================================ */
.quick-start {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 8px;
}

.qs-step {
    background: #fff;
    border: 1px solid #e5ecf5;
    border-radius: 10px;
    padding: 22px 22px 20px;
    position: relative;
}

/* 번호 + 제목 = 하나의 큰 헤딩 라인 */
.qs-title {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 0 0 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid #1f6feb;
    color: #1b3566;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.qs-num {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    color: #1f6feb;
    letter-spacing: -1px;
    flex-shrink: 0;
}

.qs-desc {
    font-size: 13px;
    color: #555;
    line-height: 1.7;
}
.qs-desc code {
    background: #f0f5ff;
    color: #1f6feb;
    padding: 1px 6px;
    border-radius: 3px;
    font-family: Consolas, Menlo, monospace;
    font-size: 12px;
}

@media (max-width: 768px) {
    .quick-start { grid-template-columns: 1fr; }
    .qs-num { font-size: 24px; }
    .qs-title { font-size: 16px; }
}

/* ===== 2) API 명세 ===== */
.api-spec {
    background: #f7f9fc;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 18px;
    border: 1px solid #e5ecf5;
}
.spec-row {
    display: flex;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px dashed #e5ecf5;
    font-size: 13px;
}
.spec-row:last-child { border-bottom: 0; }
.spec-label {
    min-width: 110px;
    font-weight: 600;
    color: #666;
}
.spec-value { color: #333; flex: 1; }
.spec-row code {
    background: #1f2a44;
    color: #9fd;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-family: Consolas, Menlo, monospace;
}

.method-badge {
    background: #28a745;
    color: #fff;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    letter-spacing: 0.5px;
    font-family: monospace;
}

.field-table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0 16px;
    font-size: 13px;
}
.field-table th {
    background: #f0f5ff;
    color: #1b3566;
    text-align: left;
    padding: 8px 12px;
    border-bottom: 2px solid #c0d6f0;
    font-weight: 700;
}
.field-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #ecf0f5;
    color: #444;
    vertical-align: top;
}
.field-table code {
    background: #f4f5f7;
    color: #d33;
    padding: 1px 6px;
    border-radius: 3px;
    font-family: Consolas, Menlo, monospace;
    font-size: 12px;
}

/* ===== 응답 row ===== */
.response-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 10px 0 16px;
}
@media (max-width: 768px) {
    .response-row { grid-template-columns: 1fr; }
}
.resp-success, .resp-failure {
    border-radius: 8px;
    padding: 14px;
    border: 1px solid;
}
.resp-success { background: #e8f5e9; border-color: #66bb6a; }
.resp-failure { background: #ffebee; border-color: #ef9a9a; }
.resp-head {
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 13px;
}
.resp-success .resp-head { color: #1e6f3d; }
.resp-failure .resp-head { color: #b71c1c; }
.resp-success pre, .resp-failure pre {
    margin: 0;
    background: rgba(255,255,255,0.7);
}

/* ===== 콜아웃 박스 ===== */
.callout {
    display: flex;
    gap: 12px;
    background: #fff8e1;
    border-left: 4px solid #f0ad4e;
    padding: 14px 18px;
    border-radius: 6px;
    margin: 14px 0 0;
    font-size: 13px;
    color: #555;
    line-height: 1.7;
}
.callout i {
    color: #f0ad4e;
    font-size: 18px;
    margin-top: 2px;
}
.callout code {
    background: #1f2a44;
    color: #9fd;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 12px;
}

/* ===== Pre/Code (코드 블록) ===== */
.developer-section pre {
    background: #1f2a44;
    color: #e8eaee;
    padding: 16px 18px;
    border-radius: 8px;
    overflow-x: auto;
    position: relative;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 8px 0 12px;
}
.developer-section pre code {
    background: transparent;
    color: #e8eaee;
    padding: 0;
    font-family: Consolas, "Courier New", monospace;
    font-size: 13px;
}
.developer-section pre.data-format {
    background: #1f2a44;
    color: #9fd;
}

/* code 인라인 (pre 외부) */
.developer-section p code,
.developer-section li code,
.developer-section .faq-body code {
    background: #f4f5f7;
    color: #d33;
    padding: 1px 6px;
    border-radius: 3px;
    font-family: Consolas, Menlo, monospace;
    font-size: 12px;
}

/* Copy 버튼 */
.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.12);
    color: #e8eaee;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    transition: all .2s ease;
}
.copy-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.45);
}
.copy-btn.copied {
    background: #28a745;
    border-color: #28a745;
}
.copy-btn i { margin-right: 3px; }

/* ===== 언어 선택 버튼 ===== */
.developer-section .language-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 8px 0 18px;
}
.language-button {
    background: #fff;
    color: #1f6feb;
    border: 1px solid #1f6feb;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all .2s ease;
}
.language-button:hover {
    background: #1f6feb;
    color: #fff;
}

/* ===== 모범 사례 리스트 ===== */
.best-list {
    margin: 0;
    padding-left: 20px;
}
.best-list li {
    color: #444;
    line-height: 1.8;
    font-size: 13px;
    margin-bottom: 6px;
}
.best-list li strong { color: #1b3566; }

/* ===== FAQ ===== */
.faq {
    border-bottom: 1px solid #ecf0f5;
    padding: 12px 0;
}
.faq:last-child { border-bottom: 0; }
.faq summary {
    cursor: pointer;
    font-weight: 600;
    color: #1b3566;
    font-size: 14px;
    padding: 4px 0;
    list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
    content: '+';
    display: inline-block;
    width: 18px;
    color: #1f6feb;
    font-weight: 700;
}
.faq[open] summary::before { content: '−'; }
.faq summary:hover { color: #1f6feb; }
.faq-body {
    margin: 8px 0 0 18px;
    padding: 10px 14px;
    background: #f7f9fc;
    border-radius: 6px;
    font-size: 13px;
    color: #555;
    line-height: 1.7;
}
.faq-body a { color: #1f6feb; }

/* ===== 반응형 ===== */
@media (max-width: 768px) {
    .developer-section { padding-top: 100px; padding-bottom: 40px; }
    .developer-section section { padding: 18px; }
    .developer-section section h3 { font-size: 18px; }
    .developer-section pre { font-size: 12px; padding: 12px 14px; }
    .copy-btn { top: 6px; right: 6px; font-size: 10px; padding: 3px 8px; }
    .api-spec { padding: 10px 14px; }
    .spec-row { flex-direction: column; align-items: flex-start; gap: 4px; }
    .spec-label { min-width: auto; }
}
