/**
 * 深渊UI样式
 * 包含揭露按钮和三选一界面的样式
 */

/* ========================================
   1. 揭露按钮容器
   ======================================== */

.abyss-reveal-container {
    /* 插入到模拟界面左侧列的底部 */
    width: 100%;
    padding: 20px;
    margin-top: 20px;
    
    background: linear-gradient(135deg, rgba(26, 31, 46, 0.95), rgba(13, 17, 23, 0.95));
    border: 2px solid #58a6ff;
    border-radius: 12px;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    animation: fadeIn 0.3s ease;
    
    /* 辉光效果 */
    box-shadow: 
        0 0 20px rgba(88, 166, 255, 0.3),
        inset 0 0 20px rgba(88, 166, 255, 0.1);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   2. 揭露按钮
   ======================================== */

.abyss-reveal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.abyss-reveal-button {
    position: relative;
    padding: 30px 60px;
    background: linear-gradient(135deg, #1a1f2e, #0d1117);
    border: 3px solid #58a6ff;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    
    /* 辉光效果 */
    box-shadow: 
        0 0 20px rgba(88, 166, 255, 0.5),
        inset 0 0 20px rgba(88, 166, 255, 0.2);
}

.abyss-reveal-button:hover {
    transform: scale(1.05);
    border-color: #79c0ff;
    box-shadow: 
        0 0 40px rgba(88, 166, 255, 0.8),
        inset 0 0 30px rgba(88, 166, 255, 0.3);
}

.abyss-reveal-button:active {
    transform: scale(0.98);
}

.abyss-reveal-icon {
    font-size: 48px;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.abyss-reveal-text {
    font-size: 24px;
    font-weight: bold;
    color: #c9d1d9;
    text-shadow: 0 0 10px rgba(88, 166, 255, 0.8);
}

/* ========================================
   3. 三选一界面容器
   ======================================== */

.abyss-selection-container {
    /* 插入到模拟界面左侧列的底部 */
    width: 100%;
    padding: 20px;
    margin-top: 20px;
    
    background: linear-gradient(135deg, rgba(26, 31, 46, 0.98), rgba(13, 17, 23, 0.98));
    border: 2px solid #58a6ff;
    border-radius: 12px;
    
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    
    animation: fadeIn 0.3s ease;
    
    /* 辉光效果 */
    box-shadow: 
        0 0 25px rgba(88, 166, 255, 0.4),
        inset 0 0 25px rgba(88, 166, 255, 0.15);
}

/* ========================================
   4. 标题
   ======================================== */

.abyss-selection-title {
    font-size: 20px;
    font-weight: bold;
    color: #58a6ff;
    text-shadow: 0 0 15px rgba(88, 166, 255, 0.6);
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(88, 166, 255, 0.3);
}

/* ========================================
   5. 选项网格
   ======================================== */

.abyss-options-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

/* ========================================
   6. 选项卡片
   ======================================== */

.abyss-option-card {
    background: linear-gradient(135deg, #1a1f2e, #0d1117);
    border: 2px solid #30363d;
    border-radius: 8px;
    padding: 16px;
    
    cursor: pointer;
    transition: all 0.25s ease;
    
    display: flex;
    flex-direction: column;
    gap: 8px;
    
    min-height: auto;
}

.abyss-option-card:hover {
    border-color: #58a6ff;
    transform: translateX(5px);
    box-shadow: 
        0 5px 20px rgba(88, 166, 255, 0.4),
        inset 0 0 15px rgba(88, 166, 255, 0.1);
}

.abyss-option-card:active {
    transform: translateX(3px);
}

/* ========================================
   7. 词缀类型徽章
   ======================================== */

.affix-type-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    align-self: flex-start;
}

.affix-type-badge.prefix {
    background: #1f6feb;
    color: white;
}

.affix-type-badge.suffix {
    background: #da3633;
    color: white;
}

.affix-type-badge.abyss {
    background: linear-gradient(135deg, #8957e5, #6e40c9);
    color: white;
    box-shadow: 0 0 15px rgba(137, 87, 229, 0.6);
}

/* ========================================
   8. Tier显示
   ======================================== */

.affix-tier {
    font-size: 14px;
    color: #8b949e;
    font-weight: 500;
}

/* ========================================
   9. 简化描述（母词缀）
   ======================================== */

.affix-simple-description {
    font-size: 16px;
    color: #79c0ff;
    font-weight: 600;
    margin-top: 4px;
}

/* ========================================
   10. 词缀描述
   ======================================== */

.affix-description {
    font-size: 18px;
    color: #c9d1d9;
    font-weight: 500;
    line-height: 1.5;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

/* ========================================
   11. 暗色主题适配
   ======================================== */

[data-theme="dark"] .abyss-reveal-button {
    background: linear-gradient(135deg, #2d333b, #1c2128);
    border-color: #58a6ff;
}

[data-theme="dark"] .abyss-option-card {
    background: linear-gradient(135deg, #2d333b, #1c2128);
    border-color: #444c56;
}

[data-theme="dark"] .abyss-option-card:hover {
    border-color: #58a6ff;
}

/* ========================================
   12. 亮色主题适配
   ======================================== */

[data-theme="light"] .abyss-reveal-container {
    background: rgba(255, 255, 255, 0.85);
}

[data-theme="light"] .abyss-selection-container {
    background: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .abyss-reveal-button {
    background: linear-gradient(135deg, #f6f8fa, #ffffff);
    border-color: #0969da;
}

[data-theme="light"] .abyss-reveal-text {
    color: #24292f;
    text-shadow: 0 0 10px rgba(9, 105, 218, 0.5);
}

[data-theme="light"] .abyss-selection-title {
    color: #0969da;
    text-shadow: 0 0 20px rgba(9, 105, 218, 0.5);
}

[data-theme="light"] .abyss-option-card {
    background: linear-gradient(135deg, #f6f8fa, #ffffff);
    border-color: #d0d7de;
}

[data-theme="light"] .abyss-option-card:hover {
    border-color: #0969da;
    box-shadow: 
        0 10px 40px rgba(9, 105, 218, 0.3),
        inset 0 0 20px rgba(9, 105, 218, 0.05);
}

[data-theme="light"] .affix-tier {
    color: #57606a;
}

[data-theme="light"] .affix-simple-description {
    color: #0969da;
}

[data-theme="light"] .affix-description {
    color: #24292f;
}

/* ========================================
   6. 重新揭露按钮（回响之兆）
   ======================================== */

.abyss-reroll-button {
    position: relative;
    width: 100%;
    margin-top: 20px;
    padding: 15px 30px;
    
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    
    cursor: pointer;
    transition: all 0.3s ease;
    
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    
    box-shadow: 
        0 5px 15px rgba(102, 126, 234, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    
    overflow: hidden;
}

.abyss-reroll-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.abyss-reroll-icon {
    font-size: 20px;
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.abyss-reroll-text {
    position: relative;
    z-index: 1;
    font-size: 16px;
    letter-spacing: 1px;
}

.abyss-reroll-button:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(102, 126, 234, 0.6),
        inset 0 0 30px rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
}

.abyss-reroll-button:active {
    transform: translateY(0);
    box-shadow: 
        0 3px 10px rgba(102, 126, 234, 0.5),
        inset 0 0 15px rgba(255, 255, 255, 0.1);
}

.abyss-reroll-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    box-shadow: none;
}

.abyss-reroll-button:disabled:hover {
    transform: none;
}

/* 明亮主题下的重新揭露按钮 */
[data-theme="light"] .abyss-reroll-button {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 5px 15px rgba(124, 58, 237, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.15);
}

[data-theme="light"] .abyss-reroll-button:hover {
    box-shadow: 
        0 8px 25px rgba(124, 58, 237, 0.5),
        inset 0 0 30px rgba(255, 255, 255, 0.2);
}

