/* ============================================
   color-modal.css - 颜色调整弹窗
   全黑背景 + 3个图像预设选项
   ============================================ */

/* 弹窗遮罩 - 纯黑色 */
.color-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.color-modal-overlay.active {
    display: flex;
}

/* 弹窗主体 - 纯黑色 */
.color-modal {
    background: #000;
    border: 1px solid #333;
    width: 900px;
    max-width: 95vw;
    min-height: 650px;
    display: flex;
    flex-direction: column;
}

/* 标题栏 */
.color-modal-header {
    background: #111;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

.color-modal-title {
    color: #c4b998;
    font-size: 14px;
    font-weight: bold;
}

.color-modal-close {
    width: 20px;
    height: 20px;
    background: #8b0000;
    border: 1px solid #a52a2a;
    color: #fff;
    cursor: url('../img/cursor/wot_link.cur'), pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
}

/* 内容区 */
.color-modal-body {
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

/* 主标题 */
.color-section-title {
    color: #c4b998;
    font-size: 16px;
    font-weight: bold;
    text-align: left;
}

/* 副标题 */
.color-section-subtitle {
    color: #888;
    font-size: 13px;
    text-align: left;
    margin-top: -10px;
}

/* 选项容器 */
.color-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
    width: 100%;
}

/* 单个选项 - 只有图片 */
.color-option {
    cursor: url('../img/cursor/wot_link.cur'), pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    display: inline-block;
    width: fit-content;
    max-width: 60%;
}

.color-option img {
    display: block;
    width: 100%;
    height: auto;
}

/* 选中状态 - 橙红色边框 */
.color-option.active {
    border: 2px solid #cc4422;
    box-shadow: 0 0 15px rgba(204, 68, 34, 0.6), 0 0 30px rgba(204, 68, 34, 0.3);
}

/* 预设过滤区域 - 相对定位容器 */
.filter-presets-section {
    margin-top: 15px;
    width: 100%;
    height: 280px;
    position: relative;
}

/* 预设过滤内容 - 绝对定位 */
.filter-presets-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.filter-presets-title {
    color: #c4b998;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 3px;
}

.filter-presets-subtitle {
    color: #888;
    font-size: 11px;
    margin-bottom: 10px;
}

/* 滑块容器 */
.filter-slider-container {
    margin-bottom: 15px;
}

.filter-slider {
    position: relative;
    height: 20px;
    background: #222;
    border: 1px solid #444;
    cursor: url('../img/cursor/wot_link.cur'), pointer;
}

.filter-slider-track {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, #333 0%, #c4b998 100%);
    pointer-events: none;
}

.filter-slider-thumb {
    position: absolute;
    top: 50%;
    width: 16px;
    height: 24px;
    background: linear-gradient(180deg, #666 0%, #444 100%);
    border: 1px solid #888;
    transform: translate(-50%, -50%);
    cursor: grab;
}

.filter-slider-thumb:active {
    cursor: grabbing;
    background: linear-gradient(180deg, #888 0%, #666 100%);
}

/* 8组图片网格 - 每行2张 */
.filter-presets-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.filter-preset-item {
    cursor: url('../img/cursor/wot_link.cur'), pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    display: inline-block;
    width: fit-content;
    max-width: 90%;
}

.filter-preset-item img {
    display: block;
    width: 100%;
    height: auto;
}

.filter-preset-item.active {
    border: 2px solid #cc4422;
    box-shadow: 0 0 15px rgba(204, 68, 34, 0.6), 0 0 30px rgba(204, 68, 34, 0.3);
}

/* 自定义设置区域 - 绝对定位 */
.custom-settings-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.custom-settings-title {
    color: #c4b998;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 3px;
}

.custom-settings-subtitle {
    color: #888;
    font-size: 11px;
    margin-bottom: 15px;
}

.custom-sliders {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 15px;
}

.custom-slider-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.custom-slider-label {
    color: #aaa;
    font-size: 13px;
    width: 60px;
    flex-shrink: 0;
}

.custom-slider-row .filter-slider {
    flex: 1;
}

.custom-slider-value {
    color: #c4b998;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    width: 50px;
    text-align: right;
    flex-shrink: 0;
}

.custom-reset-btn {
    margin-top: 20px;
    padding: 8px 25px;
    background: #333;
    border: 1px solid #555;
    color: #aaa;
    font-size: 13px;
    cursor: pointer;
}

.custom-reset-btn:hover {
    background: #444;
    color: #fff;
}

/* 底部按钮 */
.color-modal-footer {
    padding: 15px;
    border-top: 1px solid #333;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #111;
}

.color-modal-btn {
    padding: 8px 25px;
    background: #333;
    border: 1px solid #555;
    color: #aaa;
    font-size: 13px;
    cursor: url('../img/cursor/wot_link.cur'), pointer;
}

.color-modal-btn:hover {
    background: #444;
    color: #fff;
}

.color-modal-btn.primary {
    background: #8b6914;
    border-color: #a57c1e;
    color: #fff;
}

.color-modal-btn.primary:hover {
    background: #a57c1e;
}