/* ============================================
   猫才招募抽奖动画
   盲盒易拉罐 - 一只打工猫的逆袭故事
   ============================================ */

/* 猫才市场 */
.cat-market-modal {
    text-align: center;
}

.market-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.6;
}

.market-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-market-recruit {
    flex: 1;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-market-recruit:hover {
    border-color: var(--accent-gold);
    background: rgba(255, 217, 61, 0.1);
}

.employee-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    max-height: 250px;
    overflow-y: auto;
}

.employee-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.employee-card:hover {
    border-color: var(--accent-gold);
}

.employee-avatar {
    font-size: 28px;
    margin-bottom: 4px;
}

.employee-name {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 2px;
}

.employee-rarity {
    font-size: 10px;
    font-weight: 600;
}

.employee-skill {
    font-size: 10px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* 招募抽奖动画 */
.recruit-lottery-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.88);
    z-index: 3000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.recruit-lottery-box {
    text-align: center;
    position: relative;
    max-width: 500px;
    width: 90%;
    padding: 30px 20px;
    background: linear-gradient(180deg, rgba(255, 217, 61, 0.08) 0%, transparent 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 217, 61, 0.15);
}

.recruit-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.recruit-rarity-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    border-radius: var(--radius-lg);
}

.recruit-lottery-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 6px;
    text-shadow: 0 0 20px rgba(255, 217, 61, 0.3);
}

.recruit-lottery-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* 转盘 */
.recruit-wheel-area {
    position: relative;
    margin: 0 auto 24px;
    width: 180px;
    height: 180px;
}

.recruit-wheel-pointer {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 28px;
    z-index: 2;
    animation: recruitBounce 0.8s ease-in-out infinite;
    filter: drop-shadow(0 0 6px rgba(255, 217, 61, 0.5));
}

.recruit-wheel {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 4px solid var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    background: conic-gradient(
        #ff6b6b 0deg 45deg,
        #ffd93d 45deg 90deg,
        #6bcb77 90deg 135deg,
        #4d96ff 135deg 180deg,
        #9b59b6 180deg 225deg,
        #ff6b9d 225deg 270deg,
        #f39c12 270deg 315deg,
        #e74c3c 315deg 360deg
    );
    box-shadow: 0 0 30px rgba(255, 217, 61, 0.2), inset 0 0 20px rgba(0,0,0,0.2);
    transition: all 0.5s ease;
}

.recruit-wheel.spinning {
    animation: recruitSpin 0.4s linear infinite;
}

.recruit-wheel.stopped {
    animation: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 40px rgba(46, 204, 113, 0.3);
}

.recruit-wheel-center {
    font-size: 36px;
    background: var(--bg-primary);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--accent-gold);
    box-shadow: 0 0 15px rgba(255, 217, 61, 0.3);
}

/* 卡片展示 - 翻牌效果 */
.recruit-cards-container {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 20px;
    min-height: 120px;
    perspective: 800px;
}

.recruit-card {
    width: 90px;
    height: 110px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.recruit-card.revealed {
    animation: recruitFlip 0.6s ease forwards;
}

.recruit-card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.recruit-card-face.back {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    border: 2px solid var(--accent-gold);
    transform: rotateY(0deg);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.recruit-card-face.front {
    background: var(--bg-secondary);
    border: 2px solid var(--accent-gold);
    transform: rotateY(180deg);
    box-shadow: 0 4px 15px rgba(255, 217, 61, 0.2);
}

.recruit-card-avatar {
    font-size: 30px;
    margin-bottom: 4px;
}

.recruit-card-name {
    font-size: 12px;
    font-weight: 700;
}

.recruit-card-rarity {
    font-size: 10px;
    font-weight: 600;
}

/* 结果文字 */
.recruit-result-text {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    min-height: 30px;
}

.btn-recruit-confirm {
    padding: 12px 36px;
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-orange));
    color: var(--bg-primary);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: none;
}

.btn-recruit-confirm:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 217, 61, 0.4);
}

/* 招募动画关键帧 */
@keyframes recruitSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes recruitBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

@keyframes recruitFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 1; }
}

@keyframes recruitFlip {
    0% { transform: rotateY(0deg) scale(1); }
    50% { transform: rotateY(90deg) scale(1.1); }
    100% { transform: rotateY(180deg) scale(1); }
}

/* 连续开罐 Modal */
.multi-open-modal {
    text-align: center;
}

.multi-options {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}

.multi-opt {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 700;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

.multi-opt:hover {
    border-color: var(--accent-gold);
}

.multi-opt.selected {
    border-color: var(--accent-gold);
    background: rgba(255, 217, 61, 0.15);
}

.multi-summary {
    margin-bottom: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.multi-result-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    margin-bottom: 4px;
    font-size: 13px;
}

.multi-result-icon {
    font-size: 18px;
}

.multi-result-name {
    flex: 1;
    font-weight: 600;
}

.multi-result-count {
    color: var(--text-secondary);
}

.btn-open-multi {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-orange));
    color: var(--bg-primary);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-open-multi:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 217, 61, 0.4);
}

/* 开罐特效 Modal */
.open-modal {
    text-align: center;
}

.open-effect-area {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.effect-placeholder {
    text-align: center;
}

.effect-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 15px;
}

.can-preview-in-effect {
    font-size: 60px;
    animation: bounce 1s ease-in-out infinite;
}

.open-result {
    margin: 15px 0;
}

.open-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.open-result-icon {
    font-size: 28px;
}

.open-result-info {
    flex: 1;
    text-align: left;
}

.open-result-name {
    font-size: 15px;
    font-weight: 700;
}

.open-result-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.open-result-rarity {
    font-size: 12px;
    font-weight: 600;
}

.open-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-collect {
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-orange));
    color: var(--bg-primary);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-collect:hover {
    transform: translateY(-2px);
}
