/* Zeus UI Upgrade V2 - Enhanced Styling */

/* Hero Section with 3D Canvas */
.zeus-hero-section {
    position: relative;
    width: 100%;
    min-height: 400px;
    margin-bottom: 3rem;
    overflow: hidden;
    border-radius: 24px;
}

.hero-canvas-container {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 24px;
    background: linear-gradient(
        135deg,
        rgba(99, 102, 241, 0.1) 0%,
        rgba(139, 92, 246, 0.15) 50%,
        rgba(99, 102, 241, 0.1) 100%
    );
    border: 1px solid rgba(139, 92, 246, 0.2);
    backdrop-filter: blur(20px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 0 100px rgba(139, 92, 246, 0.1);
}

#zeus-lightning-sphere {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 24px;
}

.hero-gradient-mask {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at center,
        transparent 30%,
        rgba(15, 15, 30, 0.4) 70%,
        rgba(15, 15, 30, 0.8) 100%
    );
    pointer-events: none;
    border-radius: 24px;
}

/* Enhanced Cards */
.feature-card,
.stat-card {
    position: relative;
    border-radius: 20px;
    background: linear-gradient(
        135deg,
        rgba(30, 30, 50, 0.8) 0%,
        rgba(20, 20, 40, 0.9) 100%
    );
    border: 1px solid rgba(139, 92, 246, 0.2);
    backdrop-filter: blur(10px);
    overflow: visible;
}

/* Gradient Border Effect */
.gradient-border {
    position: relative;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(
        135deg,
        #6366f1 0%,
        #8b5cf6 25%,
        #a78bfa 50%,
        #8b5cf6 75%,
        #6366f1 100%
    );
    background-size: 200% 200%;
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: gradient-shift 3s linear infinite;
}

.gradient-border:hover::before {
    opacity: 1;
}

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

/* Enhanced Stats Display */
.stat-value {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(251, 191, 36, 0.3);
    letter-spacing: -0.02em;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
    font-weight: 600;
}

/* Enhanced Navigation */
.navbar-enhanced {
    backdrop-filter: blur(20px);
    background: linear-gradient(
        180deg,
        rgba(15, 15, 30, 0.95) 0%,
        rgba(15, 15, 30, 0.9) 100%
    );
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Enhanced Buttons */
.zeus-btn-enhanced {
    position: relative;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    color: white;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 15px rgba(99, 102, 241, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

.zeus-btn-enhanced::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 ease;
}

.zeus-btn-enhanced:hover::before {
    left: 100%;
}

.zeus-btn-enhanced:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 10px 30px rgba(139, 92, 246, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

.zeus-btn-enhanced:active {
    transform: translateY(0);
    box-shadow: 
        0 4px 15px rgba(99, 102, 241, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

/* Card Headers */
.card-header-enhanced {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    font-size: 1.5rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.01em;
}

/* Enhanced Input Fields */
.input-enhanced {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border-radius: 12px;
    background: rgba(30, 30, 50, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: white;
    transition: all 0.3s ease;
}

.input-enhanced:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
    background: rgba(30, 30, 50, 0.8);
}

/* Enhanced Spacing */
.section-spacing {
    margin: 4rem 0;
}

.card-spacing {
    padding: 2rem;
}

/* Enhanced Typography */
.heading-enhanced {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.subheading-enhanced {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Enhanced Grid Layouts */
.grid-enhanced {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Enhanced Shadows */
.shadow-enhanced {
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.3),
        0 0 1px rgba(139, 92, 246, 0.5);
}

.shadow-glow {
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(139, 92, 246, 0.4);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .zeus-hero-section {
        min-height: 300px;
        margin-bottom: 2rem;
        border-radius: 16px;
    }
    
    .hero-canvas-container {
        height: 300px;
        border-radius: 16px;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .heading-enhanced {
        font-size: 2rem;
    }
    
    .section-spacing {
        margin: 2rem 0;
    }
    
    .card-spacing {
        padding: 1.5rem;
    }
    
    .grid-enhanced {
        gap: 1rem;
    }
    
    .zeus-btn-enhanced {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .feature-card,
    .stat-card {
        border-width: 2px;
    }
    
    .stat-value {
        text-shadow: none;
    }
}
