/* fortune 模块 — 抽签/骰子（おみくじ）样式（v2.106.0 从 style.css 拆出，纯重构） */

/* ========== 抽签/骰子功能样式 ========== */

/* 主题列表项 */
.fortune-theme-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background: var(--bg-card);
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    position: relative;
}

.fortune-theme-item:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.fortune-theme-item:active {
    transform: scale(0.98);
}

.fortune-theme-item .theme-name {
    flex: 1;
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
}

.fortune-theme-item .theme-count {
    font-size: 13px;
    color: var(--text-secondary);
    margin-right: 12px;
}

/* 主题操作按钮组 */
.fortune-theme-item .theme-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

/* 编辑按钮 */
.fortune-theme-item .theme-edit-btn {
    background: rgba(0, 122, 255, 0.1);
    border: none;
    color: var(--accent-color);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.fortune-theme-item .theme-edit-btn:hover {
    background: var(--accent-color);
}

.fortune-theme-item .theme-edit-btn:hover svg {
    stroke: white;
}

/* 删除按钮 */
.fortune-theme-item .theme-delete-btn {
    background: rgba(255, 59, 48, 0.1);
    border: none;
    color: var(--danger-color);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.fortune-theme-item .theme-delete-btn:hover {
    background: var(--danger-color);
    color: white;
}

/* 抽签结果显示 */
.fortune-result {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-soft));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: white;
    text-align: center;
    padding: 20px;
    box-shadow: 0 10px 40px var(--accent-shadow);
    transition: all 0.3s ease;
    word-break: break-word;
    line-height: 1.3;
}

.fortune-result.spinning {
    animation: fortuneSpin 0.1s linear infinite;
    box-shadow: 0 10px 60px var(--accent-shadow);
}

.fortune-result.revealed {
    animation: fortuneReveal 0.5s ease-out;
    background: var(--icon-gradient-1);
    transform: scale(1.1);
    box-shadow: 0 0 40px var(--accent-shadow), 0 10px 30px rgba(0,0,0,0.1);
}

@keyframes fortuneSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes fortuneReveal {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* 选项芯片 */
.fortune-option-chip {
    display: inline-block;
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-primary);
    transition: all 0.2s;
}

.fortune-option-chip:hover {
    background: var(--accent-soft);
    border-color: var(--accent-color);
}

/* 历史记录项 */
.history-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    border-left: 4px solid var(--accent-color);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.history-item:hover {
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.history-item .history-theme {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-secondary);
    margin-right: 12px;
    flex-shrink: 0;
}

.history-item .history-result {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.history-item .history-time {
    font-size: 12px;
    color: var(--text-tertiary);
    flex-shrink: 0;
}

/* 抽签按钮特殊样式 */
#drawBtn {
    background: var(--icon-gradient-1);
    border: none;
    color: white;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 6px 20px var(--accent-shadow);
    transition: all 0.3s ease;
}

#drawBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-shadow);
}

#drawBtn:active {
    transform: translateY(0);
}

#drawBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
