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

/* 直接使用币安主题变量 - 从style.css继承 */

/* 3D Card Effects - 使用币安主题变量 */
:root {
    --binance-primary: #f0b90b;
    --binance-accent: #84cc16;
    --accent: #0ecb81;
}

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

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

.card-3d {
    transform-style: preserve-3d;
    transition: all 0.6s var(--transition, 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: var(--bg-card, rgba(240, 185, 11, 0.03));
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light, rgba(240, 185, 11, 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, var(--border-light, rgba(240, 185, 11, 0.1)), transparent);
    animation: hologram-scan 3s var(--transition, ease-in-out) infinite;
}

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

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

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

/* Enhanced Neon Glow for CTA Button - 币安风格 */
button[href*="register"],
.card-3d button[type="button"],
.card-3d button[href] {
    box-shadow: 
        0 0 20px rgba(240, 185, 11, 0.4),
        0 0 40px rgba(240, 185, 11, 0.2),
        0 0 60px rgba(240, 185, 11, 0.1),
        inset 0 0 20px rgba(255, 255, 255, 0.1) !important;
    animation: neon-pulse 2s ease-in-out infinite;
}

button[href*="register"]:hover,
.card-3d button[type="button"]:hover,
.card-3d button[href]:hover {
    box-shadow: 
        0 0 30px rgba(240, 185, 11, 0.6),
        0 0 60px rgba(240, 185, 11, 0.3),
        0 0 90px rgba(240, 185, 11, 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(240, 185, 11, 0.4),
            0 0 40px rgba(240, 185, 11, 0.2),
            0 0 60px rgba(240, 185, 11, 0.1),
            inset 0 0 20px rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow: 
            0 0 30px rgba(240, 185, 11, 0.6),
            0 0 60px rgba(240, 185, 11, 0.3),
            0 0 90px rgba(240, 185, 11, 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(240, 185, 11, 0.15),
        0 0 60px rgba(240, 185, 11, 0.1),
        0 0 90px rgba(240, 185, 11, 0.05),
        inset 0 0 30px rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-medium, rgba(240, 185, 11, 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(240, 185, 11, 0.25),
        0 0 80px rgba(240, 185, 11, 0.15),
        0 0 120px rgba(240, 185, 11, 0.1),
        inset 0 0 40px rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-dark, rgba(240, 185, 11, 0.3));
}

/* Glitch Effect - 使用币安主题变量 */
.glitch-effect {
    position: relative;
    animation: glitch 2s var(--transition-fast, ease) 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: 12px;
    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: var(--text-white, #ffffff);
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(11, 14, 17, 0.3);
    transition: var(--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: var(--transition-fast, 3s);
    box-shadow: 0 6px 20px rgba(11, 14, 17, 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 - 使用币安主题主色调 */
.crypto-icon.bnb {
    background: linear-gradient(135deg, var(--primary, #F0B90B) 0%, var(--primary-dark, #D9A441) 100%);
    box-shadow: 0 4px 15px rgba(240, 185, 11, 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: 4px;
}

.crypto-symbol {
    font-size: var(--font-base, 16px);
    font-weight: 700;
    color: var(--text-white, #ffffff);
    line-height: 1.2;
}

.crypto-fullname {
    font-size: var(--font-sm, 14px);
    color: var(--text-gray, #848E9C);
    line-height: 1.2;
}

/* Crypto Right Section - 币安风格 */
.crypto-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    text-align: right;
}

.crypto-price {
    font-size: var(--font-base, 16px);
    font-weight: 700;
    color: var(--text-white, #ffffff);
    line-height: 1.2;
}

.crypto-change {
    font-size: var(--font-sm, 14px);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.price-up {
    color: var(--success, #10B981);
}

.price-down {
    color: var(--error, #EF4444);
}

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

/* Crypto Tilt Effect - 币安风格 */
.crypto-tilt {
    transition: var(--transition, all 0.3s ease);
    background: var(--bg-card, rgba(240, 185, 11, 0.03));
    border: 1px solid var(--border-light, rgba(240, 185, 11, 0.1));
    border-radius: var(--radius-lg, 16px);
    padding: 16px;
}

.crypto-tilt:hover {
    transform: translateX(5px);
    background: var(--theme-black-lighter, rgba(40, 40, 40, 0.95));
    border-color: var(--border-medium, 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) {
    /* 移动端禁用倾斜效果 */
    .card-3d.glass-morphism.rounded-3xl.p-8 {
        transform: none !important;
    }
    
    .card-3d.glass-morphism.rounded-3xl.p-8:hover {
        transform: none !important;
    }
    
    .crypto-icon {
        width: 2rem;
        height: 2rem;
        font-size: var(--font-sm, 14px);
    }
    
    /* Adjust animation for mobile */
    .crypto-icon {
        animation: icon-rotate 8s linear infinite;
    }
    
    .crypto-symbol {
        font-size: var(--font-sm, 14px);
    }
    
    .crypto-fullname {
        font-size: var(--font-xs, 12px);
    }
    
    .crypto-price {
        font-size: var(--font-sm, 14px);
    }
    
    .crypto-change {
        font-size: var(--font-xs, 12px);
    }
    
    .crypto-tilt {
        padding: 12px;
    }
}

@media (max-width: 640px) {
    /* 小屏移动端也禁用倾斜效果 */
    .card-3d.glass-morphism.rounded-3xl.p-8 {
        transform: none !important;
    }
    
    .card-3d.glass-morphism.rounded-3xl.p-8:hover {
        transform: none !important;
    }
    
    .crypto-row {
        gap: 8px;
    }
    
    .crypto-left {
        gap: 8px;
    }
    
    .crypto-icon {
        width: 1.75rem;
        height: 1.75rem;
        font-size: var(--font-xs, 12px);
    }
    
    .crypto-symbol {
        font-size: var(--font-sm, 14px);
    }
    
    .crypto-fullname {
        font-size: var(--font-xs, 12px);
    }
    
    .crypto-price {
        font-size: var(--font-sm, 14px);
    }
    
    .crypto-change {
        font-size: var(--font-xs, 12px);
    }
}
