/**
 * Dapp Network - Custom Styles & Web3 Animations
 * Converted from Google Stitch Design & Enhanced with Web3 Theme
 */

.glass-panel {
    background-color: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.glass-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

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

.primary-btn {
    background-color: #4F46E5;
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 20px rgba(79, 70, 229, 0.35);
    transition: all 0.2s ease;
}

.primary-btn:hover {
    filter: brightness(1.15);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 30px rgba(79, 70, 229, 0.6);
    transform: translateY(-1px);
}

.glass-btn {
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.glass-btn:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

.grid-bg {
    background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #c3c0ff 50%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(195, 192, 255, 0.2);
}

.accent-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(79,70,229,0.15) 0%, rgba(79,70,229,0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

/* ==========================================================================
   Web3 Ambient Glows & Cyber Grid
   ========================================================================== */

.hero-ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    pointer-events: none;
    mix-blend-mode: screen;
}

.hero-glow-indigo {
    top: 10%;
    left: 20%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.5) 0%, rgba(79, 70, 229, 0) 70%);
    animation: floatGlowIndigo 10s ease-in-out infinite alternate;
}

.hero-glow-purple {
    top: 25%;
    right: 15%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.4) 0%, rgba(168, 85, 247, 0) 70%);
    animation: floatGlowPurple 12s ease-in-out infinite alternate;
}

.hero-glow-cyan {
    bottom: 5%;
    left: 40%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.3) 0%, rgba(56, 189, 248, 0) 70%);
    animation: floatGlowCyan 14s ease-in-out infinite alternate;
}

@keyframes floatGlowIndigo {
    0% { transform: translate(0, 0) scale(1); opacity: 0.35; }
    50% { transform: translate(40px, -30px) scale(1.15); opacity: 0.5; }
    100% { transform: translate(-30px, 40px) scale(0.95); opacity: 0.35; }
}

@keyframes floatGlowPurple {
    0% { transform: translate(0, 0) scale(1); opacity: 0.3; }
    50% { transform: translate(-50px, 30px) scale(1.2); opacity: 0.45; }
    100% { transform: translate(30px, -40px) scale(0.9); opacity: 0.3; }
}

@keyframes floatGlowCyan {
    0% { transform: translate(0, 0) scale(0.9); opacity: 0.25; }
    50% { transform: translate(30px, -40px) scale(1.1); opacity: 0.4; }
    100% { transform: translate(-40px, 20px) scale(1); opacity: 0.25; }
}

/* Perspective Cyber Grid */
.hero-cyber-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 80%);
    opacity: 0.7;
    pointer-events: none;
}

/* Live Blockchain Status Floating Pill */
.web3-status-pill {
    background: rgba(18, 20, 20, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(195, 192, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(79, 70, 229, 0.15);
}
