/* Custom styles for Developers Landing Page */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Dark theme for developers */
.developer-gradient {
    background: linear-gradient(-45deg, #1F2937, #374151, #1E3A8A, #7C3AED);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Code block styling */
.code-block {
    background: #1F2937;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.code-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.code-header {
    background: #374151;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #4B5563;
}

.code-content {
    padding: 1.5rem;
    overflow-x: auto;
}

.code-content pre {
    margin: 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Copy button styling */
.copy-btn {
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 0.375rem;
}

.copy-btn:hover {
    background: #4B5563;
    color: #F3F4F6;
}

.copy-btn.copied {
    background: #10B981;
    color: white;
}

/* Terminal styling */
.terminal {
    background: #1F2937;
    border-radius: 0.5rem;
    padding: 1rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    color: #F3F4F6;
    border: 1px solid #374151;
}

.terminal-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.terminal-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.terminal-dot.red { background: #EF4444; }
.terminal-dot.yellow { background: #F59E0B; }
.terminal-dot.green { background: #10B981; }

/* Developer badge */
.developer-badge {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

/* Feature cards */
.feature-card {
    transition: all 0.3s ease;
    border: 1px solid #E5E7EB;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #10B981;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10B981, #059669);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

/* Benefit cards */
.benefit-card {
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    transition: all 0.3s ease;
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Testimonial cards */
.testimonial-card {
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Mobile menu animations */
.mobile-menu-enter {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #F3F4F6;
}

::-webkit-scrollbar-thumb {
    background: #10B981;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #059669;
}

/* Loading states */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid #10B981;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-gray-50 {
        background-color: #ffffff;
    }
    
    .text-gray-600 {
        color: #000000;
    }
    
    .border-gray-300 {
        border-color: #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .developer-gradient {
        background: #1F2937;
        animation: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .dark-mode {
        background-color: #1F2937;
        color: #F9FAFB;
    }
    
    .dark-mode .bg-white {
        background-color: #374151;
    }
    
    .dark-mode .text-gray-900 {
        color: #F9FAFB;
    }
    
    .dark-mode .text-gray-600 {
        color: #D1D5DB;
    }
}

/* Interactive elements */
.interactive {
    cursor: pointer;
    user-select: none;
}

.interactive:hover {
    opacity: 0.8;
}

.interactive:active {
    transform: scale(0.98);
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .developer-gradient {
        background: #1F2937 !important;
    }
    
    .code-block {
        break-inside: avoid;
    }
}

/* Developer-specific styling */
.developer-cta {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    position: relative;
    overflow: hidden;
}

.developer-cta:hover {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
    transform: translateY(-3px) scale(1.05);
}

.developer-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.developer-cta:hover::before {
    left: 100%;
}

/* Code syntax highlighting overrides */
.token.string {
    color: #A7F3D0;
}

.token.number {
    color: #FCD34D;
}

.token.boolean {
    color: #F59E0B;
}

.token.keyword {
    color: #C084FC;
}

.token.function {
    color: #60A5FA;
}

.token.comment {
    color: #9CA3AF;
}

/* API status indicators */
.api-status {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.api-status.online {
    background: #10B981;
    animation: pulse-green 2s infinite;
}

.api-status.offline {
    background: #EF4444;
}

@keyframes pulse-green {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Developer stats */
.developer-stats {
    background: rgba(16, 185, 129, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.developer-stats:hover {
    background: rgba(16, 185, 129, 0.15);
    transform: translateY(-5px);
}

/* Language selector */
.language-selector {
    background: #374151;
    border: 1px solid #4B5563;
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    color: #F3F4F6;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.language-selector:focus {
    outline: 2px solid #10B981;
    outline-offset: 2px;
}

/* Developer tools section */
.devtools-section {
    background: linear-gradient(135deg, #F0FDF4, #DCFCE7);
    border: 1px solid #BBF7D0;
    border-radius: 0.75rem;
    padding: 2rem;
    margin: 2rem 0;
}

.devtools-section::before {
    content: "🛠️";
    font-size: 1.5rem;
    margin-right: 0.5rem;
}
