/* ============================================
   DEVELOPER PORTAL - DARK THEME (Matching Homepage)
   Premium Glassmorphism Design with Scroll Effects
   ============================================ */

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #06b6d4;
    --dark-bg: #0a0a1a;
    --card-bg: rgba(15, 23, 42, 0.8);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --border-color: rgba(148, 163, 184, 0.1);
}

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

/* 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); }
}

/* Hero Section */
.hero-section {
    position: relative;
    z-index: 1;
    padding: 160px 0 80px;
    text-align: center;
    background: transparent;
    border-bottom: 1px solid var(--border-color);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.05) 100%);
    z-index: -1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title i {
    margin-right: 15px;
}

.hero-section .lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 30px;
    
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

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

/* Feature Badges */
.feature-badge {
    display: inline-block;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 5px;
    transition: all 0.3s;
    
    opacity: 0;
    animation: slideUpReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.feature-badge:nth-child(1) { animation-delay: 0.3s; }
.feature-badge:nth-child(2) { animation-delay: 0.4s; }
.feature-badge:nth-child(3) { animation-delay: 0.5s; }
.feature-badge:nth-child(4) { animation-delay: 0.6s; }

.feature-badge:hover {
    background: rgba(99, 102, 241, 0.25);
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-2px);
}

/* Container */
.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Quick Links Grid */
.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin: 50px 0;
}

.quick-link-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.quick-link-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);
    opacity: 0;
    transition: opacity 0.3s;
}

.quick-link-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 
        0 20px 40px rgba(99, 102, 241, 0.2),
        0 0 0 1px rgba(99, 102, 241, 0.1);
    color: var(--text-primary);
}

.quick-link-card:hover::before {
    opacity: 1;
}

.quick-link-icon {
    font-size: 3rem;
    margin-bottom: 18px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.quick-link-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.quick-link-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* API Card - Glassmorphism */
.api-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 36px;
    margin-bottom: 30px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

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

.api-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.15);
}

/* Category Title */
.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-title i {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Endpoint Styling */
.endpoint {
    background: rgba(99, 102, 241, 0.05);
    border-left: 4px solid var(--primary-color);
    padding: 18px 20px;
    margin-bottom: 16px;
    border-radius: 0 12px 12px 0;
    transition: all 0.3s;
}

.endpoint:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateX(4px);
}

.method-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 12px;
}

.method-get { 
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%); 
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.method-post { 
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%); 
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
.method-put { 
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%); 
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}
.method-patch { 
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%); 
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}
.method-delete { 
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%); 
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.endpoint-path {
    font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
}

.endpoint-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 10px;
    line-height: 1.5;
}

/* Code Block */
.code-block {
    background: #0d1117;
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
    overflow-x: auto;
    position: relative;
}

.code-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.3), rgba(6, 182, 212, 0.3));
}

.code-block code {
    color: #7dd3fc;
    font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.7;
}

/* Section Headings */
.api-card h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 28px;
    margin-bottom: 16px;
}

.api-card p {
    color: var(--text-secondary);
}

/* Utility Classes */
.text-secondary {
    color: var(--text-secondary) !important;
}

.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-5 {
    margin-bottom: 3rem !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) {
    .hero-section {
        padding: 120px 20px 60px;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .quick-links {
        gap: 16px;
    }
    
    .quick-link-card {
        padding: 24px 20px;
    }
    
    .api-card {
        padding: 24px;
        border-radius: 16px;
    }
    
    .code-block {
        padding: 16px;
        font-size: 0.8rem;
    }
    
    .category-title {
        font-size: 1.25rem;
    }
}

/* 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 .hero-section {
    border-bottom-color: #e2e8f0;
}

body.light-theme .hero-section::before {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.03) 100%);
}

body.light-theme .hero-title {
    background: linear-gradient(135deg, #1e293b 0%, #6366f1 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

body.light-theme .hero-section .lead {
    color: #64748b;
}

body.light-theme .feature-badge {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.2);
    color: #6366f1;
}

body.light-theme .quick-link-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.08);
}

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

body.light-theme .quick-link-card p {
    color: #64748b;
}

body.light-theme .api-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .endpoint {
    background: rgba(99, 102, 241, 0.05);
}

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

body.light-theme .endpoint-description {
    color: #64748b;
}

body.light-theme .code-block {
    background: #1e293b;
    border-color: #334155;
}

body.light-theme .api-card h4 {
    color: #1e293b;
}

body.light-theme .api-card p {
    color: #64748b;
}
