/* ============================================
   易拉罐商店 - 罐子样式、开罐操作区
   盲盒易拉罐 - 一只打工猫的逆袭故事
   ============================================ */

/* 罐子网格 */
.cans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    flex: 1;
    overflow-y: auto;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 12px;
    min-height: 0;
}

.can-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.can-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-gold);
    box-shadow: 0 5px 15px rgba(255, 217, 61, 0.2);
}

.can-card.selected {
    border-color: var(--accent-gold);
    box-shadow: 0 0 15px rgba(255, 217, 61, 0.4);
    background: rgba(255, 217, 61, 0.1);
}

.can-card.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.can-card.locked:hover {
    transform: none;
    border-color: var(--border-color);
    box-shadow: none;
}

/* 罐子容器 */
.can-container {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.can {
    position: relative;
    width: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.can-top {
    width: 50px;
    height: 8px;
    border-radius: 4px 4px 0 0;
    z-index: 2;
}

.can-body {
    width: 55px;
    height: 65px;
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.can-bottom {
    width: 50px;
    height: 6px;
    border-radius: 0 0 3px 3px;
}

.can-shine {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 15px;
    height: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0.3), transparent);
    border-radius: 2px;
}

/* 罐子颜色方案 */
.tin-top, .tin-bottom { background: #7f8c8d; }
.tin-body { background: linear-gradient(180deg, #95a5a6, #7f8c8d); }
.tin-rust {
    position: absolute;
    width: 8px;
    height: 10px;
    background: #c0392b;
    border-radius: 2px;
    opacity: 0.5;
}

.aluminum-top, .aluminum-bottom { background: #bdc3c7; }
.aluminum-body { background: linear-gradient(180deg, #ecf0f1, #bdc3c7); }

.colorful-top, .colorful-bottom { background: #e74c3c; }
.colorful-body { background: linear-gradient(180deg, #e74c3c, #f39c12, #2ecc71, #3498db, #9b59b6); }
.confetti-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: float 2s ease-in-out infinite;
}

.gold-top, .gold-bottom { background: #f39c12; }
.gold-body { background: linear-gradient(180deg, #ffd93d, #f39c12, #e67e22); }
.gold-gleam {
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s linear infinite;
}

.diamond-top, .diamond-bottom { background: #3498db; }
.diamond-body { background: linear-gradient(180deg, #85c1e9, #3498db, #2e86c1); }
.diamond-facet {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 20px solid rgba(255,255,255,0.2);
}

.rainbow-top, .rainbow-bottom { background: #e74c3c; }
.rainbow-body { background: linear-gradient(180deg, #ff6b6b, #ffd93d, #6bcb77, #4d96ff, #9b59b6); }

.starry-top, .starry-bottom { background: #2c3e50; }
.starry-body { background: linear-gradient(180deg, #1a1a2e, #2c3e50, #0f0e17); }
.star {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

.lava-top, .lava-bottom { background: #c0392b; }
.lava-body { background: linear-gradient(180deg, #e74c3c, #c0392b, #8e44ad); }
.lava-crack {
    position: absolute;
    height: 3px;
    background: #ff6b35;
    border-radius: 2px;
    animation: pulse 2s ease-in-out infinite;
}
.lava-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(255,107,53,0.2), transparent);
    animation: pulse 2s ease-in-out infinite;
}

.aurora-top, .aurora-bottom { background: #2ecc71; }
.aurora-body { background: linear-gradient(180deg, #1a1a2e, #2ecc71, #3498db, #9b59b6); }
.aurora-ribbon {
    position: absolute;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(46,204,113,0.6), rgba(52,152,219,0.6), transparent);
    animation: shimmer 3s linear infinite;
}

.crystal-top, .crystal-bottom { background: #9b59b6; }
.crystal-body { background: linear-gradient(180deg, #d7bde2, #9b59b6, #8e44ad); }
.crystal-point {
    position: absolute;
    background: rgba(255,255,255,0.3);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}
.crystal-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(155,89,182,0.3), transparent);
    animation: pulse 2s ease-in-out infinite;
}

.proposal-top, .proposal-bottom { background: #ff6b9d; }
.proposal-body { background: linear-gradient(180deg, #ff6b9d, #ffd93d, #ff6b9d); }
.heart-particle {
    position: absolute;
    font-size: 10px;
    animation: float 2s ease-in-out infinite;
}
.proposal-ribbon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: rgba(255,107,157,0.3);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

/* 罐子信息 */
.can-info {
    text-align: center;
}

.can-name {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 3px;
}

.can-price {
    font-size: 11px;
    color: var(--accent-gold);
    margin-bottom: 3px;
}

.can-rarity {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.can-lock-badge {
    font-size: 10px;
    color: var(--accent-red);
    margin-top: 3px;
}

/* 开罐操作区 */
.open-can-area {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 15px;
}

.selected-can-preview {
    flex: 1;
    min-width: 150px;
}

.selected-display {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}

.sel-can {
    font-size: 24px;
}

.placeholder {
    color: var(--text-secondary);
    font-size: 14px;
}

.open-actions {
    display: flex;
    gap: 8px;
}

.btn-open, .btn-multi {
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-open {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-orange));
    color: var(--bg-primary);
}

.btn-open:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 217, 61, 0.4);
}

.btn-multi {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-multi:hover:not(:disabled) {
    border-color: var(--accent-gold);
}

/* 钻石罐（神秘罐）样式 */
.can-card.diamond-can {
    border-color: rgba(155, 89, 182, 0.4);
    background: linear-gradient(180deg, rgba(155, 89, 182, 0.08) 0%, transparent 100%);
}

.can-card.diamond-can:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 0 20px rgba(155, 89, 182, 0.2);
}

.can-card.diamond-can.selected {
    border-color: var(--accent-gold);
    box-shadow: 0 0 25px rgba(155, 89, 182, 0.3);
}

.can-diamond-badge {
    font-size: 10px;
    color: #9b59b6;
    font-weight: 600;
    background: rgba(155, 89, 182, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 2px;
}

/* 神秘罐 - 罐体样式 */
.mystery-body {
    background: linear-gradient(135deg, #2c3e50, #9b59b6, #e74c3c, #f39c12, #2ecc71, #3498db);
    background-size: 300% 300%;
    animation: mysteryGradient 3s ease infinite;
}

.mystery-top {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-bottom: 2px solid #9b59b6;
}

.mystery-bottom {
    background: linear-gradient(135deg, #16213e, #1a1a2e);
    border-top: 2px solid #9b59b6;
}

.mystery-glow {
    position: absolute;
    top: -5px;
    left: -5px;
    width: calc(100% + 10px);
    height: calc(100% + 10px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(155, 89, 182, 0.3) 0%, transparent 70%);
    animation: mysteryPulse 1.5s ease-in-out infinite;
    pointer-events: none;
}

.mystery-question {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.6);
    text-shadow: 0 0 20px rgba(155, 89, 182, 0.5);
    animation: mysteryFloat 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes mysteryGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes mysteryPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

@keyframes mysteryFloat {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -60%) scale(1.1); }
}
