/* 游戏模式选择样式 */

/* 模式选择屏幕样式 */
#modeSelectionScreen h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    text-shadow: 0 0 10px var(--primary-color);
}

.mode-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 800px;
    width: 100%;
    margin-bottom: 30px;
    padding: 0 20px;
}

.mode-card {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 20px;
    cursor: default;
    transition: var(--transition);
    position: relative;
    overflow: hidden;

    /* 移动端触摸优化 */
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.mode-card.locked {
    opacity: 0.6;
    cursor: not-allowed;
    border-color: #666;
}

.mode-card.locked:hover {
    transform: none;
    box-shadow: none;
    border-color: #666;
}

.mode-card.selected {
    background: rgba(0, 255, 136, 0.1);
    border-color: #00cc66;
    box-shadow: 0 0 20px var(--shadow-color);
}

.mode-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.mode-icon {
    width: 40px;
    height: 40px;
    margin-right: 15px;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 50%;
}

.mode-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
}

.mode-description {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 15px;
    line-height: 1.4;
}

.mode-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 10px;
}

.mode-difficulty {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
}

.mode-difficulty.normal {
    background: rgba(0, 255, 136, 0.2);
    color: var(--primary-color);
}

.mode-difficulty.hard {
    background: rgba(255, 165, 0, 0.2);
    color: #ffa500;
}

.mode-difficulty.expert {
    background: rgba(255, 107, 107, 0.2);
    color: var(--accent-color);
}

.mode-unlock-condition {
    font-size: 0.8rem;
    color: #ffa500;
    font-style: italic;
    margin-top: 10px;
    padding: 8px;
    background: rgba(255, 165, 0, 0.1);
    border-radius: 4px;
    border-left: 3px solid #ffa500;
}

.mode-card.locked .mode-icon {
    background: rgba(102, 102, 102, 0.1);
    border-color: #666;
    color: #666;
}

.mode-card.locked .mode-title {
    color: #666;
}

/* 模式选择按钮 */
.mode-select-btn {
    width: 100%;
    padding: 10px;
    margin-top: 15px;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: bold;
}

.mode-select-btn:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
}

.mode-select-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #666;
    color: #666;
}

.mode-select-btn:disabled:hover {
    background: transparent;
    color: #666;
}

/* 模式标志样式 */
.mode-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--secondary-color);
    color: var(--primary-color);
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    border: 1px solid var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 10;
    white-space: nowrap;
}

/* 响应式设计 */
@media (max-width: 768px) {
    #modeSelectionScreen h2 {
        font-size: 1.6rem;
        margin-bottom: 20px;
        margin-top: 0;
    }

    .mode-list {
        grid-template-columns: 1fr;
        padding: 0 var(--spacing-md);
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    #modeSelectionScreen h2 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }

    .mode-card {
        padding: var(--spacing-md);
        background-color: #000;
    }

    .mode-list {
        padding: 0 10px;
        gap: 15px;
    }
}