/* ========================================
   ZEUS 代币视觉增强系统
   为代币交换页面添加宙斯主题元素
   ======================================== */

/* ========== ZEUS 代币图标 ========== */

/* 代币图标容器 */
.zeus-token-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #b8860b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow:
        0 8px 24px rgba(255, 215, 0, 0.4),
        0 0 20px rgba(255, 215, 0, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.5),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3);
    animation: zeusTokenGlow 3s ease-in-out infinite;
}

/* 代币图标内圈 */
.zeus-token-icon::before {
    content: '';
    position: absolute;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid rgba(255, 215, 0, 0.6);
    box-shadow: inset 0 0 10px rgba(255, 215, 0, 0.3);
}

/* 代币符号 */
.zeus-token-symbol {
    font-size: 24px;
    font-weight: 900;
    background: linear-gradient(135deg, #fff 0%, #ffe066 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    z-index: 1;
    font-family: 'Georgia', serif;
}

/* 闪电装饰 */
.zeus-token-icon::after {
    content: '⚡';
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 16px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.5);
    animation: lightningPulse 2s ease-in-out infinite;
}

@keyframes zeusTokenGlow {
    0%, 100% {
        box-shadow:
            0 8px 24px rgba(255, 215, 0, 0.4),
            0 0 20px rgba(255, 215, 0, 0.3),
            inset 0 2px 4px rgba(255, 255, 255, 0.5),
            inset 0 -2px 4px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow:
            0 8px 32px rgba(255, 215, 0, 0.6),
            0 0 30px rgba(255, 215, 0, 0.5),
            inset 0 2px 4px rgba(255, 255, 255, 0.5),
            inset 0 -2px 4px rgba(0, 0, 0, 0.3);
    }
}

@keyframes lightningPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* ========== 交换卡片增强 ========== */

/* 为swap-card添加宙斯主题 */
.swap-card.zeus-theme {
    position: relative;
    background: linear-gradient(135deg,
        rgba(17, 24, 39, 0.95) 0%,
        rgba(30, 41, 59, 0.95) 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(99, 102, 241, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* 卡片顶部金色装饰条 */
/* 已禁用：用户反馈不需要 */
/*
.swap-card.zeus-theme::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        #ffd700 20%,
        #ffed4e 50%,
        #ffd700 80%,
        transparent 100%);
    background-size: 200% 100%;
    animation: goldenFlow 3s ease-in-out infinite;
}

@keyframes goldenFlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}
*/

/* 宙斯图腾背景 */
.zeus-totem-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    opacity: 0.03;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="50" x="50" text-anchor="middle" dominant-baseline="middle" font-size="60" font-weight="bold" fill="%23ffd700">Ƶ</text></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    animation: totemRotate 30s linear infinite;
}

@keyframes totemRotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ========== 闪电效果装饰 ========== */

.swap-lightning-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: inherit;
}

.lightning-bolt {
    position: absolute;
    width: 2px;
    height: 60px;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(99, 102, 241, 0.8) 50%,
        transparent 100%);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.6);
    animation: boltStrike 4s ease-in-out infinite;
}

.lightning-bolt:nth-child(1) {
    left: 20%;
    animation-delay: 0s;
}

.lightning-bolt:nth-child(2) {
    left: 50%;
    animation-delay: 1.3s;
}

.lightning-bolt:nth-child(3) {
    left: 80%;
    animation-delay: 2.6s;
}

@keyframes boltStrike {
    0%, 90%, 100% {
        opacity: 0;
        transform: translateY(-100%);
    }
    91%, 93%, 95% {
        opacity: 1;
    }
    92%, 94% {
        opacity: 0.5;
    }
    96% {
        opacity: 0;
        transform: translateY(100%);
    }
}

/* ========== 金币粒子效果 ========== */

.coin-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    border-radius: inherit;
}

.coin-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #ffd700, #b8860b);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
    animation: particleRise 6s linear infinite;
    opacity: 0;
}

@keyframes particleRise {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) scale(1);
    }
}

/* ========== 交换按钮增强 ========== */

.swap-btn.zeus-style {
    position: relative;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
    background-size: 200% 200%;
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow:
        0 8px 24px rgba(99, 102, 241, 0.4),
        0 0 20px rgba(139, 92, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: btnGradientShift 3s ease infinite;
}

.swap-btn.zeus-style::before {
    content: '⚡';
    position: absolute;
    left: 16px;
    font-size: 18px;
    animation: btnLightningFlash 2s ease-in-out infinite;
}

.swap-btn.zeus-style:hover {
    transform: translateY(-2px);
    box-shadow:
        0 12px 32px rgba(99, 102, 241, 0.5),
        0 0 40px rgba(139, 92, 246, 0.4),
        0 0 60px rgba(99, 102, 241, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

@keyframes btnGradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes btnLightningFlash {
    0%, 90%, 100% {
        opacity: 1;
    }
    95% {
        opacity: 0.3;
    }
}

/* ========== 输入框增强 ========== */

.token-input-wrapper.zeus-style {
    position: relative;
    background: linear-gradient(135deg,
        rgba(15, 23, 42, 0.8) 0%,
        rgba(30, 41, 59, 0.8) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
}

.token-input-wrapper.zeus-style:hover {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.token-input-wrapper.zeus-style:focus-within {
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow:
        0 0 30px rgba(255, 215, 0, 0.3),
        0 0 0 3px rgba(255, 215, 0, 0.1);
}

/* ========== 代币选择器 ========== */

.token-select.zeus-style {
    background: linear-gradient(135deg,
        rgba(99, 102, 241, 0.15),
        rgba(139, 92, 246, 0.15));
    border: 1px solid rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
}

.token-select.zeus-style:hover {
    background: linear-gradient(135deg,
        rgba(99, 102, 241, 0.25),
        rgba(139, 92, 246, 0.25));
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-1px);
}

/* ========== 交换方向按钮 ========== */

.swap-direction-btn.zeus-style {
    position: relative;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    box-shadow:
        0 8px 20px rgba(99, 102, 241, 0.4),
        0 0 20px rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.swap-direction-btn.zeus-style::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    filter: blur(8px);
}

.swap-direction-btn.zeus-style:hover {
    transform: rotate(180deg) scale(1.1);
    border-color: rgba(255, 215, 0, 0.6);
}

.swap-direction-btn.zeus-style:hover::before {
    opacity: 0.6;
}

/* ========== 价格显示增强 ========== */

.price-display.zeus-style {
    background: linear-gradient(90deg,
        rgba(99, 102, 241, 0.1) 0%,
        rgba(139, 92, 246, 0.1) 50%,
        rgba(99, 102, 241, 0.1) 100%);
    border-left: 3px solid #ffd700;
    padding: 12px 16px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.price-display.zeus-style .price-value {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* ========== 响应式调整 ========== */

@media (max-width: 768px) {
    .zeus-token-icon {
        width: 40px;
        height: 40px;
    }

    .zeus-token-icon::before {
        width: 36px;
        height: 36px;
    }

    .zeus-token-symbol {
        font-size: 20px;
    }

    .zeus-token-icon::after {
        width: 20px;
        height: 20px;
        font-size: 14px;
    }

    .zeus-totem-bg {
        width: 150px;
        height: 150px;
        opacity: 0.02;
    }
}

/* ========== 加载动画 ========== */

.zeus-loading {
    display: inline-block;
    width: 40px;
    height: 40px;
    position: relative;
}

.zeus-loading::after {
    content: 'Ƶ';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: 900;
    background: linear-gradient(135deg, #ffd700, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: zeusLoadingSpin 1.5s linear infinite;
}

@keyframes zeusLoadingSpin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ========== 成功/失败提示 ========== */

.zeus-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    padding: 16px 24px;
    border-radius: 12px;
    background: linear-gradient(135deg,
        rgba(99, 102, 241, 0.95),
        rgba(139, 92, 246, 0.95));
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow:
        0 8px 32px rgba(99, 102, 241, 0.4),
        0 0 20px rgba(139, 92, 246, 0.3);
    color: white;
    font-weight: 600;
    z-index: 10000;
    animation: toastSlideUp 0.3s ease;
}

.zeus-toast.success {
    background: linear-gradient(135deg,
        rgba(16, 185, 129, 0.95),
        rgba(5, 150, 105, 0.95));
}

.zeus-toast.error {
    background: linear-gradient(135deg,
        rgba(239, 68, 68, 0.95),
        rgba(220, 38, 38, 0.95));
}

@keyframes toastSlideUp {
    from {
        transform: translateX(-50%) translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}
