/* ============================================
   API STATUS PAGE - DARK THEME (Matching Homepage)
   Premium Glassmorphism Design with Scroll Effects
   ============================================ */

/* Base Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a1a;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    color: var(--text-primary, #f8fafc);
}

/* Dark Background with Animated Gradient */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0a0a1a 0%, #0d1117 50%, #0f172a 100%);
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 50% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
    animation: meshGradient 15s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes meshGradient {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

/* Container */
.container {
    position: relative;
    z-index: 1;
    padding: 140px 20px 60px;
    max-width: 800px;
    margin: 0 auto;
    background: transparent;
    border: none;
}

/* Status Card - Glassmorphism */
.status-card {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    
    /* Scroll reveal animation */
    opacity: 0;
    transform: translateY(40px);
    animation: slideUpReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.status-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), transparent);
}

@keyframes slideUpReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main Heading */
.status-card h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-card h1 i {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-success {
    color: #10b981 !important;
}

/* Section Headings */
.status-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-top: 32px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-card h3::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 2px;
}

/* Alert Box */
.alert {
    padding: 16px 20px;
    border-radius: 14px;
    margin-bottom: 24px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.alert-info {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

.alert strong {
    color: #60a5fa;
}

/* Endpoint Links */
.endpoint-link {
    display: block;
    padding: 18px 20px;
    margin: 12px 0;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 14px;
    text-decoration: none;
    color: #f1f5f9;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.endpoint-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #6366f1 0%, #8b5cf6 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.endpoint-link:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateX(8px);
    color: #fff;
}

.endpoint-link:hover::before {
    opacity: 1;
}

.endpoint-link strong {
    color: #f1f5f9;
    font-size: 1rem;
}

.endpoint-link small,
.endpoint-link .text-muted {
    color: #94a3b8 !important;
    font-size: 0.85rem;
}

/* Badge Styles */
.badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-custom {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.bg-success {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%) !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.bg-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.bg-secondary {
    background: linear-gradient(135deg, #64748b 0%, #94a3b8 100%) !important;
    box-shadow: 0 4px 15px rgba(100, 116, 139, 0.2);
}

.float-end {
    float: right;
}

/* List Group - Troubleshooting */
.list-group {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-group-item {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 10px;
    color: #94a3b8;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.list-group-item:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(99, 102, 241, 0.2);
}

.list-group-item strong {
    color: #f1f5f9;
}

/* Utility Classes */
.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.mt-5 {
    margin-top: 3rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 120px 16px 40px;
    }
    
    .status-card {
        padding: 32px 24px;
        border-radius: 20px;
    }
    
    .status-card h1 {
        font-size: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .endpoint-link {
        padding: 14px 16px;
    }
    
    .badge-custom {
        float: none !important;
        display: inline-block;
        margin-top: 8px;
    }
}

/* Light Theme Override */
body.light-theme {
    background: #f8fafc;
}

body.light-theme::before {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
}

body.light-theme::after {
    background: 
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
}

body.light-theme .status-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

body.light-theme .status-card h1 {
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light-theme .status-card h3 {
    color: #1e293b;
}

body.light-theme .alert-info {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
    color: #2563eb;
}

body.light-theme .alert strong {
    color: #1d4ed8;
}

body.light-theme .endpoint-link {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #1e293b;
}

body.light-theme .endpoint-link:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
}

body.light-theme .endpoint-link strong {
    color: #1e293b;
}

body.light-theme .endpoint-link small,
body.light-theme .endpoint-link .text-muted {
    color: #64748b !important;
}

body.light-theme .list-group-item {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #64748b;
}

body.light-theme .list-group-item strong {
    color: #1e293b;
}

body.light-theme .list-group-item:hover {
    background: #f1f5f9;
}
