/**
 * Image Noise Styles
 * 이미지 노이즈 만들기 전용 스타일
 *
 * @package Zipper
 */

.noise-tool-intro {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.noise-tool-lead {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #5f5a56;
}

.noise-main-layout {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

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

.noise-result-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.noise-input-section,
.noise-preview-section,
.noise-summary-card,
.noise-detail-card {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(45, 42, 38, 0.06);
    box-sizing: border-box;
}

.noise-input-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
}

.noise-preview-section,
.noise-detail-card {
    padding: 16px;
}

.noise-panel-head,
.noise-preview-head,
.noise-detail-head,
.noise-preview-card-head,
.noise-slider-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.noise-panel-head {
    margin-bottom: 2px;
}

.noise-panel-title,
.noise-preview-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 700;
    color: #1f1b17;
}

.noise-panel-title i,
.noise-preview-title i,
.noise-inline-note i,
.noise-disclaimer i {
    color: #d4af37;
}

.noise-panel-chip,
.noise-preview-badge,
.noise-detail-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.noise-panel-chip {
    color: #8a6a12;
    background: rgba(212, 175, 55, 0.14);
}

.noise-panel-chip-soft,
.noise-detail-chip,
.noise-preview-badge {
    color: #5f5a56;
    background: #f6f1e6;
}

.noise-upload-area {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    border: 2px dashed #e3dccf;
    border-radius: 16px;
    padding: 24px 18px;
    background: linear-gradient(180deg, #fdfbf6 0%, #faf6ee 100%);
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.noise-upload-area:hover,
.noise-upload-area:focus-visible,
.noise-upload-area.dragover {
    border-color: #d4af37;
    background: linear-gradient(180deg, #fffaf0 0%, #f8efda 100%);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
    outline: none;
}

.noise-upload-icon {
    font-size: 34px;
    color: #d4af37;
}

.noise-upload-text {
    font-size: 15px;
    font-weight: 700;
    color: #2d2a26;
}

.noise-upload-hint {
    font-size: 12px;
    line-height: 1.6;
    color: #7f786f;
}

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

.noise-slider-group,
.noise-option-block,
.noise-download-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.noise-slider-label,
.noise-option-label,
.noise-preview-subtitle,
.noise-summary-label,
.noise-summary-desc,
.noise-detail-row span,
.noise-preview-card-head span:last-child {
    color: #6a645c;
}

.noise-slider-label,
.noise-option-label,
.noise-summary-label,
.noise-detail-row span {
    font-size: 12px;
    font-weight: 600;
}

.noise-slider-value {
    font-size: 12px;
    font-weight: 700;
    color: #b8860b;
}

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

.noise-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.noise-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.noise-toggle-group,
.noise-preset-grid,
.noise-actions,
.noise-summary-grid,
.noise-canvas-grid,
.noise-detail-grid {
    display: grid;
    gap: 10px;
}

.noise-toggle-group,
.noise-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.noise-preset-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.noise-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.noise-canvas-grid,
.noise-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.noise-toggle-btn,
.noise-preset-btn,
.noise-btn,
.noise-download-item {
    border: 1px solid #e3dccf;
    border-radius: 12px;
    background: #faf8f4;
    color: #2d2a26;
    font: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.noise-toggle-btn,
.noise-preset-btn {
    min-height: 42px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
}

.noise-toggle-btn:hover,
.noise-preset-btn:hover,
.noise-download-item:hover {
    border-color: #d4af37;
    color: #9a7410;
    background: #fffaf0;
}

.noise-toggle-btn.is-active,
.noise-preset-btn.is-active {
    color: #fff;
    border-color: #d4af37;
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    box-shadow: 0 8px 18px rgba(212, 175, 55, 0.22);
}

.noise-inline-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 13px;
    border-radius: 12px;
    background: #faf6ea;
    font-size: 12px;
    line-height: 1.6;
    color: #6a645c;
}

.noise-inline-note span,
.noise-preview-subtitle,
.noise-stage-empty p,
.noise-disclaimer-text {
    margin: 0;
}

.noise-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 11px 14px;
    font-size: 13px;
    font-weight: 700;
}

.noise-btn-secondary {
    background: #f7f3eb;
}

.noise-btn-secondary:hover {
    border-color: #d4af37;
    color: #9a7410;
    background: #fffaf0;
}

.noise-btn-primary {
    width: 100%;
    color: #fff;
    border-color: #c38d0b;
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    box-shadow: 0 10px 24px rgba(212, 175, 55, 0.22);
}

.noise-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(212, 175, 55, 0.28);
}

.noise-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.noise-download-wrap {
    position: relative;
}

.noise-download-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 10;
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    border: 1px solid #e8e4dc;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 16px 32px rgba(45, 42, 38, 0.12);
}

.noise-download-menu.is-open {
    display: flex;
}

.noise-download-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 11px 12px;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
}

.noise-preview-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.noise-preview-subtitle {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.6;
}

.noise-preview-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    border: 1px solid #ece6da;
    border-radius: 14px;
    background: #fcfbf8;
    min-width: 0;
}

.noise-preview-card-highlight {
    background: linear-gradient(180deg, #fffcf4 0%, #f9f2e1 100%);
}

.noise-preview-card-head {
    font-size: 12px;
    font-weight: 700;
    color: #2d2a26;
}

.noise-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    overflow: hidden;
    border: 1px solid #ece6da;
    border-radius: 14px;
    background: linear-gradient(135deg, #f7f2e6 0%, #f1ece2 100%);
}

.noise-stage.is-filled {
    background: #111;
}

.noise-canvas {
    display: block;
    max-width: 100%;
    max-height: 560px;
    width: auto;
    height: auto;
}

.noise-stage-empty {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    text-align: center;
    color: #756f66;
}

.noise-stage.is-filled .noise-stage-empty {
    display: none;
}

.noise-stage-empty i {
    font-size: 28px;
    color: #d4af37;
}

.noise-summary-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    min-width: 0;
}

.noise-summary-card-highlight {
    background: linear-gradient(180deg, #fffcf4 0%, #f9f2e1 100%);
}

.noise-summary-value {
    font-size: 21px;
    line-height: 1.2;
    color: #1f1b17;
    word-break: break-word;
}

.noise-detail-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.noise-detail-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    border: 1px solid #eee7dc;
    border-radius: 12px;
    background: #fcfbf8;
    min-width: 0;
}

.noise-detail-row strong {
    color: #2d2a26;
    font-size: 14px;
    word-break: break-word;
}

.noise-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #ece4d5;
    background: #fbf8f1;
}

.noise-disclaimer-text {
    font-size: 13px;
    line-height: 1.7;
    color: #5f5a56;
}

@media (max-width: 1024px) {
    .noise-main-layout {
        grid-template-columns: minmax(0, 1fr);
    }

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

@media (max-width: 900px) {
    .noise-canvas-grid,
    .noise-summary-grid,
    .noise-detail-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 768px) {
    .noise-input-section,
    .noise-preview-section,
    .noise-detail-card {
        padding: 14px;
    }

    .noise-toggle-group,
    .noise-actions,
    .noise-preset-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .noise-stage {
        min-height: 220px;
    }

    .noise-summary-value {
        font-size: 19px;
    }
}

@media (max-width: 480px) {
    .noise-tool-lead {
        font-size: 14px;
    }

    .noise-upload-area {
        padding: 20px 14px;
    }

    .noise-stage {
        min-height: 190px;
    }

    .noise-preview-card,
    .noise-summary-card,
    .noise-detail-row {
        padding: 12px;
    }
}
