/* LedgerScanner Custom Styles - Production Ready Design */

:root {
    /* Primary Colors - Modern Crypto/Tech Theme */
    --ls-primary: #6366F1; /* Indigo - Trust & Technology */
    --ls-primary-dark: #4F46E5;
    --ls-primary-light: #818CF8;
    --ls-primary-bg: rgba(99, 102, 241, 0.1);
    
    /* Secondary Colors */
    --ls-secondary: #10B981; /* Emerald - Success/Safe */
    --ls-secondary-dark: #059669;
    --ls-secondary-light: #34D399;
    --ls-secondary-bg: rgba(16, 185, 129, 0.1);
    
    /* Accent Colors */
    --ls-accent: #F59E0B; /* Amber - Attention/Warning */
    --ls-accent-dark: #D97706;
    --ls-accent-light: #FCD34D;
    --ls-accent-bg: rgba(245, 158, 11, 0.1);
    
    /* Danger/Alert Colors */
    --ls-danger: #EF4444; /* Red - Danger/Scam */
    --ls-danger-dark: #DC2626;
    --ls-danger-light: #F87171;
    --ls-danger-bg: rgba(239, 68, 68, 0.1);
    
    /* Neutral Colors */
    --ls-dark: #1F2937;
    --ls-dark-secondary: #374151;
    --ls-gray: #6B7280;
    --ls-gray-light: #9CA3AF;
    --ls-gray-lighter: #E5E7EB;
    --ls-white: #FFFFFF;
    --ls-off-white: #F9FAFB;
    
    /* Gradients */
    --ls-gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --ls-gradient-secondary: linear-gradient(135deg, #667eea 0%, #10B981 100%);
    --ls-gradient-dark: linear-gradient(135deg, #1F2937 0%, #374151 100%);
    --ls-gradient-hero: linear-gradient(135deg, rgba(99, 102, 241, 0.9) 0%, rgba(139, 92, 246, 0.9) 100%);
}

/* Fix Color Contrast Issues */
.container-wrap section {
    position: relative;
    background: var(--ls-white);
}

/* Alternating Section Backgrounds */
.container-wrap section:nth-child(even) {
    background: var(--ls-off-white);
}

/* Hero Sections with Gradient Backgrounds */
section[id$="-hero"] {
    background: var(--ls-gradient-primary);
    color: var(--ls-white);
    position: relative;
    overflow: hidden;
}

section[id$="-hero"] h1,
section[id$="-hero"] h2,
section[id$="-hero"] h3,
section[id$="-hero"] h4,
section[id$="-hero"] p,
section[id$="-hero"] .lead {
    color: var(--ls-white) !important;
}

/* Background Pattern Overlay */
section[id$="-hero"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

/* Animated Background Shapes */
.hero-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    opacity: 0.1;
    animation: float 20s ease-in-out infinite;
}

.floating-shape.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--ls-white);
    border-radius: 50%;
    top: -150px;
    right: -150px;
}

.floating-shape.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--ls-white);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    bottom: -100px;
    left: -100px;
    animation-delay: 5s;
}

.floating-shape.shape-3 {
    width: 150px;
    height: 150px;
    background: var(--ls-white);
    transform: rotate(45deg);
    top: 50%;
    right: 10%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(120deg); }
    66% { transform: translateY(20px) rotate(240deg); }
}

/* Enhanced Cards with Decorative Backgrounds */
.feature-card,
.pricing-card,
.guide-card,
.scam-type-card,
.stat-card,
.value-card,
.timeline-item,
.team-card,
.api-card,
.blog-card,
.contact-card,
.location-card {
    background: var(--ls-white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
    border: 1px solid var(--ls-gray-lighter);
    position: relative;
    overflow: hidden;
    background-image: radial-gradient(circle at top right, rgba(99, 102, 241, 0.03) 0%, transparent 50%);
}

.feature-card:hover,
.pricing-card:hover,
.guide-card:hover,
.stat-card:hover,
.team-card:hover,
.api-card:hover,
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Card Decoration */
.feature-card::before,
.pricing-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--ls-gradient-primary);
}

/* Icon Styling */
.feature-icon,
.icon-box {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: var(--ls-primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
}

.feature-icon i,
.icon-box i {
    font-size: 40px;
    color: var(--ls-primary);
}

.feature-icon.secondary,
.icon-box.secondary {
    background: var(--ls-secondary-bg);
}

.feature-icon.secondary i,
.icon-box.secondary i {
    color: var(--ls-secondary);
}

.feature-icon.accent,
.icon-box.accent {
    background: var(--ls-accent-bg);
}

.feature-icon.accent i,
.icon-box.accent i {
    color: var(--ls-accent);
}

.feature-icon.danger,
.icon-box.danger {
    background: var(--ls-danger-bg);
}

.feature-icon.danger i,
.icon-box.danger i {
    color: var(--ls-danger);
}

/* Button Enhancements */
.btn {
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--ls-gradient-primary);
    border: none;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.3);
}

.btn-outlined {
    background: transparent;
    border: 2px solid currentColor;
}

.btn-outlined.btn-primary {
    color: var(--ls-primary);
    border-color: var(--ls-primary);
}

.btn-outlined.btn-primary:hover {
    background: var(--ls-primary);
    color: white;
}

.btn-white {
    background: white;
    color: var(--ls-primary);
}

.btn-white:hover {
    background: var(--ls-off-white);
}

/* Badges */
.badge-beta {
    background: var(--ls-gradient-secondary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); }
    100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

/* Section Titles */
.section-title {
    position: relative;
    margin-bottom: 3rem;
    text-align: center;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ls-dark);
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.125rem;
    color: var(--ls-gray);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--ls-gradient-primary);
    border-radius: 2px;
}

/* Pricing Cards Special */
.pricing-card.featured {
    transform: scale(1.05);
    border: 2px solid var(--ls-primary);
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--ls-primary);
}

.pricing-card .price span {
    font-size: 1rem;
    color: var(--ls-gray);
}

/* List Items with Icons */
ul.feature-list {
    list-style: none;
    padding: 0;
}

ul.feature-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
}

ul.feature-list li::before {
    content: '\F012C';
    font-family: 'Material Design Icons';
    position: absolute;
    left: 0;
    color: var(--ls-secondary);
    font-size: 1.25rem;
}

/* Stats Section */
.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: var(--ls-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--ls-gradient-primary);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--ls-primary);
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--ls-primary-bg);
}

/* Fix Text Visibility */
.use-text-paragraph {
    color: var(--ls-dark-secondary) !important;
}

.use-text-subtitle2 {
    color: var(--ls-gray) !important;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--ls-dark) !important;
}

/* White background sections text fix */
section:not([id$="-hero"]) p,
section:not([id$="-hero"]) li,
section:not([id$="-hero"]) span {
    color: var(--ls-dark-secondary);
}

/* CTA Sections */
.cta-section {
    background: var(--ls-gradient-primary);
    color: white;
    padding: 4rem 2rem;
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section h2,
.cta-section p {
    color: white !important;
}

/* Decorative Elements */
.decoration-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.3;
    pointer-events: none;
}

.decoration-blob.primary {
    background: var(--ls-primary);
}

.decoration-blob.secondary {
    background: var(--ls-secondary);
}

.decoration-blob.accent {
    background: var(--ls-accent);
}

/* Image Enhancements */
.feature-illustration {
    position: relative;
    padding: 2rem;
}

.feature-illustration img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .section-title h2 {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
}

/* Loading Animation */
.skeleton-loader {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Notification Banner */
.beta-banner {
    background: var(--ls-gradient-secondary);
    color: white;
    padding: 0.75rem;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.beta-banner p {
    margin: 0;
    color: white !important;
}

.beta-banner a {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

/* Trust Indicators */
.trust-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--ls-off-white);
    border: 1px solid var(--ls-gray-lighter);
    border-radius: 8px;
    margin: 0.25rem;
}

.trust-badge i {
    color: var(--ls-secondary);
    margin-right: 0.5rem;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* Improved Shadows */
.shadow-sm {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.shadow-md {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.shadow-lg {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.shadow-xl {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/* Fix specific contrast issues */
.bg-primary,
.use-bg-primary-main,
.use-theme--primary {
    background: var(--ls-primary) !important;
    color: white !important;
}

.bg-primary *,
.use-bg-primary-main *,
.use-theme--primary * {
    color: white !important;
}

.text-primary {
    color: var(--ls-primary) !important;
}

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

.text-accent {
    color: var(--ls-accent) !important;
}

.text-danger {
    color: var(--ls-danger) !important;
}

/* Ensure readability on all backgrounds */
.container-wrap section p,
.container-wrap section li,
.container-wrap section span:not(.badge) {
    line-height: 1.7;
}

/* Beta/Coming Soon Indicators */
.coming-soon-overlay {
    position: relative;
}

.coming-soon-overlay::after {
    content: 'COMING SOON';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    background: var(--ls-accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Animated Gradient Backgrounds */
.gradient-animate {
    background: linear-gradient(270deg, #667eea, #764ba2, #f093fb, #c471f5);
    background-size: 800% 800%;
    animation: GradientShift 15s ease infinite;
}

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

/* Decorative Shapes for Sections */
.section-decoration {
    position: absolute;
    pointer-events: none;
    opacity: 0.05;
}

.section-decoration.top-left {
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: var(--ls-primary);
    border-radius: 50%;
    filter: blur(100px);
}

.section-decoration.bottom-right {
    bottom: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: var(--ls-secondary);
    border-radius: 50%;
    filter: blur(100px);
}

/* Animated Icons */
.animated-icon {
    display: inline-block;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Glass Effect Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

/* Particle Background Effect */
.particle-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--ls-primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: particleFloat 20s linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-10vh) rotate(360deg);
        opacity: 0;
    }
}

/* Neon Glow Effect */
.neon-glow {
    text-shadow: 
        0 0 10px rgba(99, 102, 241, 0.8),
        0 0 20px rgba(99, 102, 241, 0.6),
        0 0 30px rgba(99, 102, 241, 0.4),
        0 0 40px rgba(99, 102, 241, 0.2);
}

/* Rotating Badge */
.rotating-badge {
    display: inline-block;
    animation: rotate 10s linear infinite;
}

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