/* ============================================
   API DOCUMENTATION PAGE SPECIFIC STYLES
   WiFiHapa - API Reference & Developer Docs
   ============================================ */
/* Main Content */
.main-content {
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Hero Section */
.api-hero {
    background: linear-gradient(145deg, #edf4ff 0%, #ffffff 100%);
    padding: 2.5rem 2rem;
    border-radius: 48px;
    margin: 1.5rem 0 2rem;
    border: 1px solid rgba(13, 110, 253, 0.05);
    transition: var(--transition, all 0.3s ease);
}

body.dark .api-hero {
    background: var(--hero-bg, linear-gradient(145deg, #111827 0%, #1e2538 100%));
}

@media (max-width: 768px) {
    .api-hero {
        padding: 1.5rem;
    }

    .api-hero h1 {
        font-size: 1.8rem;
    }
}

.api-badge {
    display: inline-block;
    background: #0d6efd;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

/* Section Title */
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary, #0a2c3d);
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.5rem;
    }
}

/* Endpoint Category */
.endpoint-category {
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-light, #e9ecef);
    color: var(--text-primary, #0a2c3d);
}

/* Endpoint Card */
.endpoint-card {
    background: var(--card-bg, white);
    border-radius: 24px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    margin-bottom: 1rem;
    transition: var(--transition, all 0.2s ease);
}

body.dark .endpoint-card {
    background: var(--card-bg, #1e2538);
    border-color: var(--border-light, rgba(255, 255, 255, 0.05));
}

.endpoint-card:hover {
    border-color: #0d6efd;
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.08);
}

/* Method Badges */
.method {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-right: 0.8rem;
}

.method.get {
    background: #198754;
    color: white;
}

.method.post {
    background: #0d6efd;
    color: white;
}

.method.put {
    background: #fd7e14;
    color: white;
}

.method.delete {
    background: #dc3545;
    color: white;
}

/* Endpoint URL */
.endpoint-url {
    font-family: monospace;
    font-size: 0.9rem;
    background: var(--badge-light-bg, #f8fafd);
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    display: inline-block;
    color: var(--text-primary, #0a2c3d);
}

body.dark .endpoint-url {
    background: var(--badge-light-bg, #2a3448);
}

/* Code Block */
.code-block {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 1rem;
    border-radius: 12px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    overflow-x: auto;
    margin: 1rem 0;
    white-space: pre-wrap;
    word-break: break-word;
}

body.dark .code-block {
    background: #0a0a0a;
    color: #e0e0e0;
}

/* Response Codes Box */
.response-codes {
    background: var(--card-bg, white);
    border: 1px solid var(--border-light, #e9ecef);
}

body.dark .response-codes {
    background: var(--card-bg, #1e2538);
}

/* Rate Limits Box */
.rate-limits {
    background: var(--card-bg, white);
    border: 1px solid var(--border-light, #e9ecef);
}

body.dark .rate-limits {
    background: var(--card-bg, #1e2538);
}

/* Responsive */
@media (max-width: 768px) {
    .endpoint-card {
        padding: 1rem;
    }

    .endpoint-url {
        font-size: 0.8rem;
        margin-top: 0.5rem;
        display: inline-block;
    }

    .method {
        margin-bottom: 0.5rem;
    }

    .code-block {
        font-size: 0.7rem;
        padding: 0.8rem;
    }
}

@media (max-width: 576px) {
    .api-hero .btn {
        width: 100%;
        text-align: center;
    }

    .endpoint-card .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .method {
        margin-bottom: 0.3rem;
    }
}