/* Dark Theme Override Styles - Based on Market Research Page */

/* Base Dark Theme */
body {
    background: #000000 !important;
    color: #FFFFFF !important;
}

body.dark-theme {
    background: #000000 !important;
    color: #FFFFFF !important;
}

/* Ensure Inter font is used everywhere */
* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: #FFFFFF !important;
}

p {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Hero Section */
.hero {
    background: #000000 !important;
    color: #FFFFFF !important;
}

.hero h1 {
    background: linear-gradient(135deg, #FFFFFF 0%, #666666 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-weight: 700 !important;
}

.hero p {
    color: rgba(255, 255, 255, 0.7) !important;
    opacity: 1 !important;
}

/* CTA Buttons */
.cta-button {
    background: transparent !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-weight: 500 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.1) !important;
}

/* Service Cards - Glass Morphism */
.service-card {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-5px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
}

.service-card h3 {
    color: #FFFFFF !important;
}

.service-card p {
    color: rgba(255, 255, 255, 0.7) !important;
}

.card-number {
    color: rgba(255, 255, 255, 0.1) !important;
}

.service-card:hover .card-number {
    color: rgba(255, 255, 255, 0.15) !important;
}

.card-link {
    color: #3b82f6 !important;
}

.card-link:hover {
    color: #60a5fa !important;
}

.card-link::after {
    background: #3b82f6 !important;
}

/* Navigation */
.navbar {
    background: transparent !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.98) !important;
    backdrop-filter: blur(30px) !important;
    -webkit-backdrop-filter: blur(30px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.8) !important;
}

.nav-menu a:hover {
    color: #FFFFFF !important;
}

.nav-menu a::before {
    background: #FFFFFF !important;
}

/* Mobile Navigation */
.mobile-menu-overlay {
    background: #000000 !important;
}

.mobile-nav a {
    color: rgba(255, 255, 255, 0.8) !important;
}

.mobile-nav a:hover {
    color: #FFFFFF !important;
}

.hamburger span {
    background: #FFFFFF !important;
}

/* Footer */
footer {
    background: #000000 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

footer a {
    color: rgba(255, 255, 255, 0.8) !important;
}

footer a:hover {
    color: #FFFFFF !important;
}

.legal-disclaimer {
    color: rgba(255, 255, 255, 0.4) !important;
}

/* Forms and Inputs */
input, textarea, select {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #FFFFFF !important;
}

input::placeholder, textarea::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

input:focus, textarea:focus, select:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    outline: none !important;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Selection */
::selection {
    background: rgba(59, 130, 246, 0.3);
    color: #FFFFFF;
}

::-moz-selection {
    background: rgba(59, 130, 246, 0.3);
    color: #FFFFFF;
}

/* Focus States */
a:focus, button:focus {
    outline: none !important;
}

/* Legal Analysis Section */
#legal-analysis {
    background: rgba(255, 255, 255, 0.02) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Business Model Section */
#business-model {
    background: transparent !important;
}

/* Any section with white background */
section[style*="background: white"],
section[style*="background: #fff"],
section[style*="background: #ffffff"],
section[style*="background-color: white"],
section[style*="background-color: #fff"],
section[style*="background-color: #ffffff"] {
    background: #000000 !important;
}

/* Override any inline styles */
[style*="color: black"],
[style*="color: #000"],
[style*="color: #000000"] {
    color: #FFFFFF !important;
}

[style*="background: white"],
[style*="background: #fff"],
[style*="background: #ffffff"],
[style*="background-color: white"],
[style*="background-color: #fff"],
[style*="background-color: #ffffff"] {
    background: rgba(255, 255, 255, 0.03) !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* High Contrast Support */
@media (prefers-contrast: high) {
    .service-card {
        border: 2px solid #FFFFFF !important;
    }
    
    .navbar {
        border-bottom: 2px solid #FFFFFF !important;
    }
}

/* Additional Market Research Specific Styles */
.market-hero {
    background: #000000 !important;
}

.research-table {
    background: rgba(255, 255, 255, 0.02) !important;
}

.research-table th {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #FFFFFF !important;
}

.research-table td {
    color: rgba(255, 255, 255, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.research-table tr:hover {
    background: rgba(255, 255, 255, 0.03) !important;
}

/* Status colors */
.status-yes {
    background: rgba(34, 197, 94, 0.2) !important;
    color: #22C55E !important;
}

.status-partial {
    background: rgba(251, 191, 36, 0.2) !important;
    color: #FBBF24 !important;
}

.status-no {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #EF4444 !important;
}

/* Glass morphism enhancements */
.glass-panel {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
}

.glass-panel:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Gradient text enhancements */
.gradient-primary {
    background: linear-gradient(135deg, #ffffff 0%, #666666 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.gradient-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Enhanced button styles */
button, .button {
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Enhanced link hover effects */
a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Card hover animations */
.card, [class*="card"] {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Ensure consistent mobile styles */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem !important;
        font-weight: 700 !important;
    }
    
    .hero p {
        font-size: 1rem !important;
    }
    
    .service-card {
        padding: 1.5rem !important;
    }
    
    .cta-button {
        padding: 12px 24px !important;
        font-size: 14px !important;
    }
}