/**
 * Brightness Adjuster Styles
 * 이미지 밝기 조절기 전용 스타일 (2컬럼 레이아웃)
 *
 * @package Zipper
 */

/* ===== 2컬럼 레이아웃 (데스크탑) ===== */
.bright-main-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
    align-items: start;
}

.bright-input-col {
    position: sticky;
    top: 20px;
}

.bright-result-col {
    min-width: 0;
}

/* 입력 섹션 */
.bright-input-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 10px;
}

.bright-input-title {
    font-size: 14px;
    font-weight: 600;
    color: #2d2a26;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bright-input-title i {
    color: #d4af37;
}

/* 이미지 업로드 영역 */
.bright-upload-area {
    border: 2px dashed #e8e4dc;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #faf9f7;
}

.bright-upload-area:hover {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.05);
}

.bright-upload-area.dragover {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.1);
}

.bright-upload-icon {
    font-size: 32px;
    color: #d4af37;
    margin-bottom: 8px;
}

.bright-upload-text {
    font-size: 13px;
    color: #5f5a56;
    margin-bottom: 4px;
}

.bright-upload-hint {
    font-size: 11px;
    color: #a09a94;
}

.bright-upload-input {
    display: none;
}

/* 조절 슬라이더 그룹 */
.bright-slider-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bright-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bright-slider-label {
    font-size: 12px;
    font-weight: 600;
    color: #5f5a56;
}

.bright-slider-value {
    font-size: 12px;
    font-weight: 600;
    color: #d4af37;
    min-width: 40px;
    text-align: right;
}

.bright-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: #e8e4dc;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.bright-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s;
}

.bright-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.bright-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* 프리셋 버튼 그룹 */
.bright-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.bright-preset-btn {
    flex: 1;
    min-width: 70px;
    padding: 8px 10px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid #e8e4dc;
    border-radius: 6px;
    background: #faf9f7;
    color: #5f5a56;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.bright-preset-btn:hover {
    border-color: #d4af37;
    color: #d4af37;
}

.bright-preset-btn.active {
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    border-color: #d4af37;
    color: #fff;
}

/* 액션 버튼 */
.bright-actions {
    display: flex;
    gap: 8px;
}

.bright-btn {
    flex: 1;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.bright-btn-primary {
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    color: #fff;
}

.bright-btn-primary:hover {
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    transform: translateY(-1px);
}

.bright-btn-primary:disabled {
    background: #e8e4dc;
    color: #a09a94;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.bright-btn-secondary {
    background: #faf9f7;
    border: 1px solid #e8e4dc;
    color: #5f5a56;
}

.bright-btn-secondary:hover {
    border-color: #d4af37;
    color: #d4af37;
}

/* 다운로드 드롭다운 */
.bright-download-wrapper {
    position: relative;
    flex: 1;
}

.bright-download-menu {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 4px;
    display: none;
    z-index: 10;
}

.bright-download-menu.show {
    display: block;
}

.bright-download-item {
    padding: 10px 14px;
    font-size: 12px;
    color: #2d2a26;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bright-download-item:first-child {
    border-radius: 6px 6px 0 0;
}

.bright-download-item:last-child {
    border-radius: 0 0 6px 6px;
}

.bright-download-item:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37;
}

.bright-download-item i {
    width: 16px;
}

/* ===== 결과 영역 ===== */

/* 대기 상태 */
.bright-waiting {
    text-align: center;
    padding: 60px 20px;
    color: #a09a94;
    background: #faf9f7;
    border: 1px dashed #e8e4dc;
    border-radius: 10px;
}

.bright-waiting i {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
}

.bright-waiting p {
    font-size: 14px;
}

/* 미리보기 영역 */
.bright-preview-section {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 10px;
    overflow: hidden;
}

/* 이미지 컨테이너 */
.bright-image-container {
    position: relative;
    min-height: 300px;
    max-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: repeating-conic-gradient(#f0f0f0 0% 25%, #fff 0% 50%) 50% / 16px 16px;
    overflow: hidden;
}

.bright-canvas {
    max-width: 100%;
    max-height: 500px;
    display: block;
}

/* 이미지 정보 */
.bright-image-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #faf9f7;
    border-top: 1px solid #e8e4dc;
    font-size: 12px;
    color: #5f5a56;
}

.bright-info-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.bright-info-item i {
    color: #d4af37;
}

/* 면책조항 */
.bright-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: rgba(108, 117, 125, 0.08);
    border-radius: 8px;
    margin-top: 12px;
}

.bright-disclaimer i {
    color: #6c757d;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

.bright-disclaimer-text {
    font-size: 12px;
    color: #5f5a56;
    line-height: 1.5;
}

.bright-disclaimer-text strong {
    color: #2d2a26;
}

/* 숨김 */
.bright-hidden {
    display: none !important;
}

/* ===== 반응형 - 태블릿 ===== */
@media (max-width: 900px) {
    .bright-main-layout {
        grid-template-columns: 280px 1fr;
        gap: 16px;
    }

    .bright-presets {
        flex-wrap: wrap;
    }

    .bright-preset-btn {
        min-width: 60px;
    }
}

/* ===== 반응형 - 모바일 ===== */
@media (max-width: 768px) {
    .bright-main-layout {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .bright-input-col {
        position: static;
    }

    .bright-input-section {
        padding: 14px;
    }

    .bright-presets {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .bright-actions {
        flex-direction: column;
    }

    .bright-download-wrapper {
        width: 100%;
    }

    .bright-image-container {
        min-height: 250px;
        max-height: 400px;
    }

    .bright-canvas {
        max-height: 400px;
    }
}

/* ===== 반응형 - 작은 모바일 ===== */
@media (max-width: 480px) {
    .bright-upload-area {
        padding: 16px;
    }

    .bright-upload-icon {
        font-size: 28px;
    }

    .bright-presets {
        grid-template-columns: repeat(2, 1fr);
    }

    .bright-preset-btn {
        padding: 6px 8px;
        font-size: 10px;
    }

    .bright-image-container {
        min-height: 200px;
        max-height: 350px;
    }

    .bright-canvas {
        max-height: 350px;
    }

    .bright-image-info {
        flex-wrap: wrap;
        gap: 8px;
    }
}
