/* Banner Component - Crypto List Styles
 * Using Tailwind CSS classes with custom cyberpunk enhancements
 */

/* CSS Variables */
:root {
    --binance-bg-primary: #000000;
    --binance-bg-secondary: #1a1a1a;
    --binance-bg-tertiary: #2a2a2a;
    --binance-primary: #f0b90b;
    --binance-accent: #84cc16;
    --binance-text-primary: #ffffff;
    --binance-text-secondary: #94a3b8;
}

/* 3D Card Effects */
.card-3d {
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-3d:hover {
    transform: rotateY(5deg) rotateX(5deg) translateZ(10px);
}

/* Glass Morphism */
.glass-morphism {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hologram Effect */
.hologram {
    position: relative;
    overflow: hidden;
}

.hologram::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: hologram-scan 3s infinite;
}

@keyframes hologram-scan {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Neon Glow */
.neon-glow {
    box-shadow: 0 0 20px rgba(240, 185, 11, 0.3);
}

.neon-glow:hover {
    box-shadow: 0 0 30px rgba(240, 185, 11, 0.5);
}

/* Enhanced Neon Glow for CTA Button */
button[style*="linear-gradient(135deg, var(--binance-primary)"],
button[href*="register"],
.card-3d button[type="button"],
.card-3d button[href] {
    box-shadow: 
        0 0 20px rgba(132, 204, 22, 0.4),
        0 0 40px rgba(132, 204, 22, 0.2),
        0 0 60px rgba(34, 197, 94, 0.1),
        inset 0 0 20px rgba(255, 255, 255, 0.1) !important;
    animation: neon-pulse 2s ease-in-out infinite;
}

button[style*="linear-gradient(135deg, var(--binance-primary)"]:hover,
button[href*="register"]:hover,
.card-3d button[type="button"]:hover,
.card-3d button[href]:hover {
    box-shadow: 
        0 0 30px rgba(132, 204, 22, 0.6),
        0 0 60px rgba(132, 204, 22, 0.3),
        0 0 90px rgba(34, 197, 94, 0.2),
        inset 0 0 30px rgba(255, 255, 255, 0.2) !important;
    animation: neon-pulse 1s ease-in-out infinite;
}

/* Neon Pulse Animation */
@keyframes neon-pulse {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(132, 204, 22, 0.4),
            0 0 40px rgba(132, 204, 22, 0.2),
            0 0 60px rgba(34, 197, 94, 0.1),
            inset 0 0 20px rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow: 
            0 0 30px rgba(132, 204, 22, 0.6),
            0 0 60px rgba(132, 204, 22, 0.3),
            0 0 90px rgba(34, 197, 94, 0.2),
            inset 0 0 30px rgba(255, 255, 255, 0.2);
    }
}

/* Enhanced Neon Glow for Crypto Card Container */
.card-3d.glass-morphism.rounded-3xl.p-8 {
    box-shadow: 
        0 0 30px rgba(34, 197, 94, 0.15),
        0 0 60px rgba(34, 197, 94, 0.1),
        0 0 90px rgba(132, 204, 22, 0.05),
        inset 0 0 30px rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(34, 197, 94, 0.2);
    transform-origin: top center;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-3d.glass-morphism.rounded-3xl.p-8:hover {
    box-shadow: 
        0 0 40px rgba(34, 197, 94, 0.25),
        0 0 80px rgba(34, 197, 94, 0.15),
        0 0 120px rgba(132, 204, 22, 0.1),
        inset 0 0 40px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(34, 197, 94, 0.3);
    transform: perspective(1000px) rotateZ(-2deg) translateX(30px);
}

/* Glitch Effect */
.glitch-effect {
    position: relative;
    animation: glitch 2s infinite;
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    10% { transform: translate(-2px, -2px); }
    20% { transform: translate(2px, 2px); }
    30% { transform: translate(-2px, 2px); }
    40% { transform: translate(2px, -2px); }
    50% { transform: translate(0); }
}

/* Crypto Row Layout */
.crypto-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Crypto Left Section */
.crypto-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

/* Crypto Icon */
.crypto-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    animation: icon-rotate 10s linear infinite;
}

/* Icon Rotation Animation */
@keyframes icon-rotate {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

/* Icon Hover Effect */
.crypto-icon:hover {
    animation-duration: 3s;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

/* BTC - Orange to Red */
.crypto-icon.btc {
    background: linear-gradient(135deg, #fb923c 0%, #ef4444 100%);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

/* ETH - Blue to Purple */
.crypto-icon.eth {
    background: linear-gradient(135deg, #60a5fa 0%, #a855f7 100%);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}

/* BNB - Yellow to Orange */
.crypto-icon.bnb {
    background: linear-gradient(135deg, #facc15 0%, #fb923c 100%);
    box-shadow: 0 4px 15px rgba(251, 146, 60, 0.4);
}

/* ADA - Blue to Cyan */
.crypto-icon.ada {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
}

/* SOL - Purple to Pink */
.crypto-icon.sol {
    background: linear-gradient(135deg, #c084fc 0%, #ec4899 100%);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
}

/* Crypto Info */
.crypto-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.crypto-symbol {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.crypto-fullname {
    font-size: 0.75rem;
    color: #9ca3af;
    line-height: 1.2;
}

/* Crypto Right Section */
.crypto-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.125rem;
    text-align: right;
}

.crypto-price {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.crypto-change {
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.price-up {
    color: #22c55e;
}

.price-down {
    color: #ef4444;
}

.change-text {
    font-size: 0.875rem;
}

/* Crypto Tilt Effect */
.crypto-tilt {
    transition: all 0.3s ease;
    background: rgba(30, 30, 30, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1rem;
}

.crypto-tilt:hover {
    transform: translateX(5px);
    background: rgba(40, 40, 40, 0.95);
    border-color: rgba(240, 185, 11, 0.3);
}

/* Responsive Adjustments */
@media (min-width: 769px) {
    /* PC版本倾斜效果 */
    .card-3d.glass-morphism.rounded-3xl.p-8:hover {
        transform: perspective(1000px) rotateZ(-2deg) translateX(30px);
    }
}

@media (max-width: 768px) {
    .crypto-icon {
        width: 2rem;
        height: 2rem;
        font-size: 0.875rem;
    }
    
    /* Adjust animation for mobile */
    .crypto-icon {
        animation: icon-rotate 8s linear infinite;
    }
    
    .crypto-symbol {
        font-size: 0.875rem;
    }
    
    .crypto-fullname {
        font-size: 0.6875rem;
    }
    
    .crypto-price {
        font-size: 0.875rem;
    }
    
    .crypto-change {
        font-size: 0.6875rem;
    }
    
    .crypto-tilt {
        padding: 0.75rem;
    }
}

@media (max-width: 640px) {
    .crypto-row {
        gap: 0.5rem;
    }
    
    .crypto-left {
        gap: 0.5rem;
    }
    
    .crypto-icon {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.75rem;
    }
    
    .crypto-symbol {
        font-size: 0.8125rem;
    }
    
    .crypto-fullname {
        font-size: 0.625rem;
    }
    
    .crypto-price {
        font-size: 0.8125rem;
    }
    
    .crypto-change {
        font-size: 0.625rem;
    }
}
