
/* Color Palette Generator Styles */

.color-palette-generator-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 팔레트 컨테이너 */
.palette-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.color-item {
    flex: 1;
    min-width: 120px;
    max-width: 200px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.color-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.color-swatch {
    height: 100px;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.color-info {
    background: white;
    padding: 12px;
    text-align: center;
    border-top: 1px solid #eee;
}

.color-value {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.color-name {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 색상 선택기 스타일 */
.form-control-color {
    width: 60px;
    height: 40px;
    border-radius: 8px;
    border: 2px solid #dee2e6;
    cursor: pointer;
}

/* 범위 슬라이더 스타일 */
.form-range {
    height: 6px;
}

.form-range::-webkit-slider-thumb {
    height: 20px;
    width: 20px;
    background: #007bff;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.form-range::-moz-range-thumb {
    height: 20px;
    width: 20px;
    background: #007bff;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* 미리 정의된 팔레트 */
.preset-palette {
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.preset-palette:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
}

.preset-palette.active {
    border-color: #007bff;
    background-color: #e3f2fd;
}

.preset-colors {
    display: flex;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.preset-color {
    flex: 1;
    border: none;
}

.preset-name {
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 복사 버튼 효과 */
.copy-success {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: white !important;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .palette-container {
        flex-direction: column;
    }
    
    .color-item {
        max-width: none;
        min-width: auto;
    }
    
    .color-swatch {
        height: 80px;
    }
    
    .preset-colors {
        height: 30px;
    }
}

/* 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.color-item {
    animation: fadeInUp 0.5s ease-out;
}

.color-item:nth-child(1) { animation-delay: 0.1s; }
.color-item:nth-child(2) { animation-delay: 0.2s; }
.color-item:nth-child(3) { animation-delay: 0.3s; }
.color-item:nth-child(4) { animation-delay: 0.4s; }
.color-item:nth-child(5) { animation-delay: 0.5s; }

/* 툴팁 스타일 */
.color-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-family: 'Courier New', monospace;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.color-swatch:hover .color-tooltip {
    opacity: 1;
}

/* 내보내기 버튼 */
.export-options {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.export-options.show {
    display: block;
    animation: fadeInUp 0.3s ease-out;
}

/* 알림 메시지 */
.alert-floating {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
