/* ===================================
   API DOCUMENTATION PAGE STYLES
   =================================== */

/* API Hero */
.api-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #0A1F44 0%, #1B3A5C 100%);
    position: relative;
    overflow: hidden;
}

.api-hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 122, 0, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.api-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 122, 0, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.api-hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.api-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 122, 0, 0.2);
    backdrop-filter: blur(10px);
    color: #FFA64D;
    padding: 10px 24px;
    border-radius: 24px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 166, 77, 0.3);
}

.api-badge i {
    font-size: 1.125rem;
}

.api-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 24px;
    line-height: 1.2;
}

.api-hero-description {
    font-size: 1.25rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.api-hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 32px;
}

.btn-api-primary,
.btn-api-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-api-primary {
    background: linear-gradient(135deg, #FF7A00 0%, #FFA64D 100%);
    color: #FFFFFF;
    box-shadow: 0 8px 24px rgba(255, 122, 0, 0.3);
}

.btn-api-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(255, 122, 0, 0.4);
    color: #FFFFFF;
}

.btn-api-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #FFFFFF;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-api-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    color: #FFFFFF;
}

.api-version-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 500;
}

.api-version-badge i {
    color: #22c55e;
    font-size: 1rem;
}

/* API Body */
.api-body {
    padding: 80px 0;
    background: #FAFBFC;
}

.api-content {
    background: #FFFFFF;
    padding: 48px;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(10, 31, 68, 0.08);
}

/* API Section */
.api-section {
    margin-bottom: 64px;
}

.api-section:last-child {
    margin-bottom: 0;
}

.api-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #0A1F44;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(10, 31, 68, 0.1);
}

.api-section h2 i {
    color: #FF7A00;
    font-size: 1.75rem;
}

.api-description {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 24px;
}

/* API Card */
.api-card {
    background: #FAFBFC;
    border: 1px solid rgba(10, 31, 68, 0.1);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.api-card:last-child {
    margin-bottom: 0;
}

.api-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0A1F44;
    margin-bottom: 16px;
}

.api-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1B3A5C;
    margin-bottom: 12px;
    margin-top: 20px;
}

.api-card h4:first-child {
    margin-top: 0;
}

/* Info Card */
.info-card {
    background: linear-gradient(135deg, rgba(255, 122, 0, 0.08) 0%, rgba(255, 166, 77, 0.08) 100%);
    border-color: rgba(255, 122, 0, 0.2);
    display: flex;
    gap: 16px;
}

.info-icon {
    font-size: 2rem;
    color: #FF7A00;
    flex-shrink: 0;
}

.info-content h4 {
    margin-top: 0;
    color: #FF7A00;
}

.info-content p {
    margin: 0;
    color: #4a5568;
}

/* Code Block */
.code-block {
    background: #0A1F44;
    color: #FFFFFF;
    padding: 20px 24px;
    border-radius: 10px;
    overflow-x: auto;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9375rem;
    line-height: 1.6;
    position: relative;
}

.code-block code {
    color: #FFFFFF;
    background: none;
}

.code-block pre {
    margin: 0;
}

.code-block pre code {
    display: block;
}

/* API List */
.api-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.api-list li {
    padding: 12px 0;
    color: #4a5568;
    font-size: 1rem;
    border-bottom: 1px solid rgba(10, 31, 68, 0.05);
}

.api-list li:last-child {
    border-bottom: none;
}

.api-list strong {
    color: #0A1F44;
    font-weight: 600;
}

/* API Table */
.api-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid rgba(10, 31, 68, 0.1);
}

.api-table {
    width: 100%;
    border-collapse: collapse;
    background: #FFFFFF;
}

.api-table thead {
    background: #0A1F44;
    color: #FFFFFF;
}

.api-table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9375rem;
}

.api-table td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(10, 31, 68, 0.08);
    color: #4a5568;
    font-size: 0.9375rem;
}

.api-table tbody tr:last-child td {
    border-bottom: none;
}

.api-table tbody tr:hover {
    background: #FAFBFC;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
}

.status-badge.status-success {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.status-badge.status-error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Endpoint Card */
.endpoint-card {
    background: #FFFFFF;
    border: 2px solid rgba(10, 31, 68, 0.1);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.endpoint-card:hover {
    border-color: rgba(255, 122, 0, 0.3);
    box-shadow: 0 4px 16px rgba(255, 122, 0, 0.1);
}

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

.http-method {
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.http-method.get {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.http-method.post {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.http-method.put {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
}

.http-method.delete {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.endpoint-path {
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 1rem;
    font-weight: 600;
    color: #0A1F44;
}

.endpoint-description {
    color: #4a5568;
    margin-bottom: 16px;
}

.endpoint-example {
    margin-top: 16px;
}

/* Security Grid */
.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #FAFBFC;
    border: 1px solid rgba(10, 31, 68, 0.1);
    border-radius: 10px;
}

.security-item i {
    color: #22c55e;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.security-item span {
    color: #4a5568;
    font-size: 0.9375rem;
    font-weight: 500;
}

/* Webhook List */
.webhook-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.webhook-list li {
    padding: 12px 16px;
    margin-bottom: 8px;
    background: #FAFBFC;
    border-radius: 8px;
    border-left: 3px solid #FF7A00;
}

.webhook-list code {
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9375rem;
    color: #0A1F44;
    font-weight: 600;
}

/* SDK Grid */
.sdk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.sdk-card {
    background: #FFFFFF;
    border: 2px solid rgba(10, 31, 68, 0.1);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.sdk-card:hover {
    border-color: #FF7A00;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(255, 122, 0, 0.15);
}

.sdk-card i {
    font-size: 3rem;
    color: #FF7A00;
    margin-bottom: 12px;
}

.sdk-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #0A1F44;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.badge-beta {
    background: rgba(255, 122, 0, 0.1);
    color: #FF7A00;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Support Card */
.support-card {
    background: linear-gradient(135deg, #0A1F44 0%, #1B3A5C 100%);
    border-radius: 16px;
    padding: 40px;
    display: flex;
    gap: 24px;
    align-items: center;
}

.support-icon {
    font-size: 4rem;
    color: #FFA64D;
    flex-shrink: 0;
}

.support-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 12px;
}

.support-content p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 16px;
}

.support-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #FFA64D;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 24px;
    background: rgba(255, 166, 77, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.support-link:hover {
    background: rgba(255, 166, 77, 0.2);
    color: #FFA64D;
    transform: translateX(4px);
}

/* API Sidebar */
.api-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 24px rgba(10, 31, 68, 0.08);
    margin-bottom: 24px;
}

.sidebar-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0A1F44;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-title i {
    color: #FF7A00;
}

.api-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.api-nav-link {
    padding: 10px 16px;
    color: #4a5568;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.api-nav-link:hover,
.api-nav-link.active {
    background: rgba(255, 122, 0, 0.08);
    color: #FF7A00;
    border-left-color: #FF7A00;
}

/* Status Card */
.status-card {
    background: linear-gradient(135deg, rgba(255, 122, 0, 0.05) 0%, rgba(255, 166, 77, 0.05) 100%);
    border: 1px solid rgba(255, 122, 0, 0.1);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #FFFFFF;
    border-radius: 8px;
    margin-bottom: 16px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.status-dot.status-online {
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
    }
}

.status-indicator span {
    font-weight: 600;
    color: #0A1F44;
    font-size: 0.9375rem;
}

.status-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.status-metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: #FFFFFF;
    border-radius: 8px;
}

.metric-label {
    color: #4a5568;
    font-size: 0.875rem;
}

.metric-value {
    color: #FF7A00;
    font-weight: 700;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 991px) {
    .api-sidebar {
        position: static;
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .api-hero-title {
        font-size: 2.5rem;
    }
    
    .api-hero-description {
        font-size: 1.125rem;
    }
    
    .api-hero-actions {
        flex-direction: column;
    }
    
    .api-content {
        padding: 32px 24px;
    }
    
    .api-section h2 {
        font-size: 1.75rem;
    }
    
    .endpoint-header {
        flex-wrap: wrap;
    }
    
    .support-card {
        flex-direction: column;
        text-align: center;
    }
    
    .sdk-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

