/* The Connect - Retro Synthwave Theme */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Space+Mono:wght@400;700&display=swap');

:root {
    /* Retro Color Palette - WCAG Compliant */
    --bg-primary: #121212;      /* Changed from #0a0a0f - avoid pure black */
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #1F1F1F;     /* Changed from #16213e for consistency */
    --neon-pink: #ff006e;
    --neon-purple: #8338ec;
    --neon-cyan: #06ffa5;
    --neon-blue: #3a86ff;
    --neon-green: #06ffa5;
    --neon-yellow: #ffbe0b;
    --text-primary: #E0E0E0;    /* Off-white for dark backgrounds */
    --text-secondary: #B8B8B8;  /* Light gray for dark backgrounds - FIXED */
    --text-muted: #999999;      /* Lighter gray for muted text on dark - FIXED */
    --grid-color: rgba(255, 0, 110, 0.1);
    --glow-primary: 0 0 20px var(--neon-pink);
    --glow-secondary: 0 0 15px var(--neon-cyan);
    --glow-accent: 0 0 10px var(--neon-purple);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Space Mono', monospace;
    background: var(--bg-primary);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animated Grid Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 0, 110, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 110, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    animation: gridPulse 4s ease-in-out infinite alternate;
}

@keyframes gridPulse {
    0% { opacity: 0.3; }
    100% { opacity: 0.1; }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    color: var(--neon-cyan);
    text-shadow: var(--glow-secondary);
}

.brand-title {
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    background: linear-gradient(45deg, var(--neon-pink), var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 0 10px var(--neon-pink));
}

/* Navigation */
.navbar {
    background: var(--bg-secondary) !important;
    border-bottom: 2px solid var(--neon-pink);
    box-shadow: 0 4px 20px rgba(255, 0, 110, 0.3);
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--neon-cyan) !important;
    text-shadow: var(--glow-secondary);
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
    filter: drop-shadow(var(--glow-primary));
}

.nav-link {
    color: var(--text-primary) !important;
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--neon-cyan) !important;
    text-shadow: var(--glow-secondary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--neon-pink);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
    box-shadow: var(--glow-primary);
}

/* Buttons */
.btn {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid;
    border-radius: 0;
    padding: 12px 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(45deg, var(--neon-pink), var(--neon-purple));
    border-color: var(--neon-pink);
    color: white;
    box-shadow: var(--glow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 0, 110, 0.4);
    background: linear-gradient(45deg, var(--neon-purple), var(--neon-pink));
}

.btn-secondary {
    background: transparent;
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: var(--glow-secondary);
}

.btn-secondary:hover {
    background: var(--neon-cyan);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 255, 165, 0.4);
}

.btn-success {
    background: linear-gradient(45deg, var(--neon-green), var(--neon-blue));
    border-color: var(--neon-green);
    color: white;
    box-shadow: 0 0 15px var(--neon-green);
}

.btn-warning {
    background: linear-gradient(45deg, var(--neon-yellow), var(--neon-pink));
    border-color: var(--neon-yellow);
    color: var(--bg-primary);
    box-shadow: 0 0 15px var(--neon-yellow);
}

/* White background CTA elements for retro theme */
.btn-light, .cta-white {
    background: #ffffff;
    border: 2px solid #000000;
    color: #000000 !important;  /* Force black text */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.btn-light:hover, .cta-white:hover {
    background: #000000;
    border-color: #000000;
    color: #ffffff !important;  /* White text on hover */
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

/* Internal CTA and Component Overrides for Retro Theme */
/* NOTE: Removed global .card override to allow pricing page cards to use their own inline styles */
.dashboard-card:not([style*="background"]) {
    background: var(--bg-secondary) !important;
    border: 2px solid var(--neon-purple) !important;
    color: var(--text-primary) !important;
}

.dashboard-card .card-header {
    background: var(--bg-tertiary) !important;
    color: var(--neon-cyan) !important;
}

.dashboard-card .card-body {
    color: var(--text-primary) !important;
}

/* Fix light background elements in retro theme */
.alert {
    background: var(--bg-secondary) !important;
    border-color: var(--neon-purple) !important;
    color: var(--text-primary) !important;
}

.alert-info {
    background: rgba(6, 255, 165, 0.1) !important;
    border-color: var(--neon-cyan) !important;
    color: var(--neon-cyan) !important;
}

.alert-warning {
    background: rgba(255, 190, 11, 0.1) !important;
    border-color: var(--neon-yellow) !important;
    color: var(--neon-yellow) !important;
}

.alert-success {
    background: rgba(6, 255, 165, 0.1) !important;
    border-color: var(--neon-green) !important;
    color: var(--neon-green) !important;
}

.alert-danger {
    background: rgba(255, 0, 110, 0.1) !important;
    border-color: var(--neon-pink) !important;
    color: var(--neon-pink) !important;
}

/* Table styling for retro theme */
.table {
    color: var(--text-primary) !important;
    background: transparent !important;
}

.table th {
    border-color: var(--neon-purple) !important;
    color: var(--neon-cyan) !important;
}

.table td {
    border-color: var(--neon-purple) !important;
    color: var(--text-primary) !important;
}

/* Badge styling */
.badge {
    background: var(--neon-purple) !important;
    color: var(--text-primary) !important;
}

.status-verified {
    background: var(--neon-green) !important;
    color: var(--bg-primary) !important;
}

.status-pending {
    background: var(--neon-yellow) !important;
    color: var(--bg-primary) !important;
}

.status-failed {
    background: var(--neon-pink) !important;
    color: var(--text-primary) !important;
}

/* Override any remaining text-muted in retro theme */
.text-muted {
    color: var(--text-secondary) !important;
}

/* Form elements in retro theme */
.form-floating > label {
    color: var(--text-secondary) !important;
}

.form-text {
    color: var(--text-secondary) !important;
}

/* List groups */
.list-group-item {
    background: var(--bg-secondary) !important;
    border-color: var(--neon-purple) !important;
    color: var(--text-primary) !important;
}

/* Cards */
.card {
    background: var(--bg-secondary);
    border: 2px solid var(--neon-purple);
    border-radius: 0;
    box-shadow: 0 8px 32px rgba(131, 56, 236, 0.2);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(131, 56, 236, 0.3);
    border-color: var(--neon-cyan);
}

.card-header {
    background: var(--bg-tertiary) !important;
    border-bottom: 2px solid var(--neon-pink) !important;
    color: var(--neon-cyan) !important;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
}

.card-body {
    color: var(--text-primary);
}

/* Forms */
.form-control, .form-select {
    background: var(--bg-tertiary);
    border: 2px solid var(--neon-purple);
    border-radius: 0;
    color: var(--text-primary);
    font-family: 'Space Mono', monospace;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    background: var(--bg-secondary);
    border-color: var(--neon-cyan);
    box-shadow: var(--glow-secondary);
    color: var(--text-primary);
}

.form-floating > label {
    color: var(--text-secondary);
    font-family: 'Space Mono', monospace;
}

.form-floating > .form-control:focus ~ label {
    color: var(--neon-cyan);
    text-shadow: var(--glow-secondary);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: radial-gradient(ellipse at center, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/static/images/sruhlon_connect_hero.png') center center no-repeat;
    background-size: contain;
    opacity: 0.3;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
    0% { filter: drop-shadow(0 0 10px var(--neon-pink)); }
    100% { filter: drop-shadow(0 0 20px var(--neon-cyan)); }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-family: 'Space Mono', monospace;
}

/* Stats Cards */
.stat-card {
    background: var(--bg-secondary);
    border: 2px solid var(--neon-purple);
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--neon-cyan);
    box-shadow: var(--glow-secondary);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: var(--glow-primary);
}

/* Integration Cards */
.integration-card {
    background: var(--bg-secondary);
    border: 2px solid var(--neon-purple);
    transition: all 0.3s ease;
    position: relative;
}

.integration-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 0, 110, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.integration-card:hover::before {
    opacity: 1;
}

.integration-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-cyan);
    box-shadow: 0 15px 40px rgba(6, 255, 165, 0.2);
}

.integration-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--glow-accent);
}

.bg-wordpress { background: linear-gradient(45deg, #21759b, #23282d); }
.bg-shopify { background: linear-gradient(45deg, #96bf48, #5e8e3e); }
.bg-google { background: linear-gradient(45deg, #4285f4, #ea4335); }
.bg-webhook { background: linear-gradient(45deg, var(--neon-purple), var(--neon-pink)); }

/* Badges */
.badge {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-verified {
    background: var(--neon-green);
    color: var(--bg-primary);
    box-shadow: 0 0 10px var(--neon-green);
}

.status-pending {
    background: var(--neon-yellow);
    color: var(--bg-primary);
    box-shadow: 0 0 10px var(--neon-yellow);
}

.status-failed {
    background: var(--neon-pink);
    color: white;
    box-shadow: 0 0 10px var(--neon-pink);
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 2px solid var(--neon-pink);
    color: var(--text-primary);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 0, 110, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 110, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
}

.footer-content {
    position: relative;
    z-index: 1;
}

.footer a {
    color: var(--neon-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: var(--neon-pink);
    text-shadow: var(--glow-primary);
}

.copyright {
    color: var(--neon-green);
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    text-shadow: 0 0 10px var(--neon-green);
}

/* Alerts */
.alert {
    border: 2px solid;
    border-radius: 0;
    font-family: 'Space Mono', monospace;
    font-weight: 700;
}

.alert-success {
    background: rgba(6, 255, 165, 0.1);
    border-color: var(--neon-green);
    color: var(--neon-green);
}

.alert-danger {
    background: rgba(255, 0, 110, 0.1);
    border-color: var(--neon-pink);
    color: var(--neon-pink);
}

.alert-warning {
    background: rgba(255, 190, 11, 0.1);
    border-color: var(--neon-yellow);
    color: var(--neon-yellow);
}

.alert-info {
    background: rgba(6, 255, 165, 0.1);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

/* Tables */
.table {
    color: var(--text-primary);
    font-family: 'Space Mono', monospace;
}

.table th {
    background: var(--bg-tertiary);
    border-color: var(--neon-purple);
    color: var(--neon-cyan);
    font-family: 'Orbitron', monospace;
    font-weight: 700;
}

.table td {
    border-color: var(--neon-purple);
}

.table-hover tbody tr:hover {
    background: var(--bg-tertiary);
    color: var(--neon-cyan);
}

/* Pulse Animation */
.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 10px var(--neon-pink)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 20px var(--neon-cyan)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 10px var(--neon-pink)); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(6, 255, 165, 0.2), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
.btn:focus, .form-control:focus, .form-select:focus {
    outline: 2px solid var(--neon-cyan);
    outline-offset: 2px;
}