/* 색상 팔레트 생성기 전용 스타일 */

.palette-generator-section {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 30px;
    padding: 30px;
}

/* 컨트롤 패널 */
.palette-controls {
    background: var(--bg-light);
    padding: 25px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.palette-controls h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

/* 탭 버튼 */
.control-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    background: var(--bg-white);
    padding: 5px;
    border-radius: var(--radius);
}

.tab-btn {
    flex: 1;
    padding: 10px 15px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: calc(var(--radius) - 2px);
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: var(--bg-light);
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
}

/* 탭 컨텐츠 */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 업로드 영역 */
.upload-area {
    border: 3px dashed var(--border-color);
    border-radius: var(--radius);
    padding: 40px 20px;
    text-align: center;
    background: var(--bg-white);
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 20px;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: var(--bg-light);
}

.upload-area.dragover {
    border-color: var(--primary-color);
    background: rgba(45, 45, 45, 0.05);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.upload-area p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

/* 컨트롤 그룹 */
.control-group {
    margin-bottom: 20px;
}

.control-group label {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

/* 팔레트 미리보기 */
.palette-preview {
    background: var(--bg-white);
    padding: 25px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.palette-preview h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.palette-display {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}

.palette-placeholder {
    color: var(--text-secondary);
    text-align: center;
}

/* 색상 카드 그리드 */
.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.color-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    cursor: pointer;
}

.color-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.color-swatch {
    width: 100%;
    height: 120px;
    position: relative;
}

.color-info {
    padding: 12px;
    text-align: center;
}

.color-hex {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.color-rgb {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.copy-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.copy-indicator.show {
    opacity: 1;
}

/* 팔레트 액션 */
.palette-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.palette-actions .btn {
    flex: 1;
    min-width: 150px;
}

/* 반응형 */
@media (max-width: 1024px) {
    .palette-generator-section {
        grid-template-columns: 1fr;
    }
    
    .palette-controls {
        order: 1;
    }
    
    .palette-preview {
        order: 2;
    }
}

@media (max-width: 768px) {
    .control-tabs {
        flex-direction: column;
    }
    
    .color-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    
    .palette-actions {
        flex-direction: column;
    }
    
    .palette-actions .btn {
        width: 100%;
    }
}

/* 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.color-card {
    animation: fadeInUp 0.3s ease-out;
}

.color-card:nth-child(1) { animation-delay: 0.05s; }
.color-card:nth-child(2) { animation-delay: 0.1s; }
.color-card:nth-child(3) { animation-delay: 0.15s; }
.color-card:nth-child(4) { animation-delay: 0.2s; }
.color-card:nth-child(5) { animation-delay: 0.25s; }
.color-card:nth-child(6) { animation-delay: 0.3s; }
.color-card:nth-child(7) { animation-delay: 0.35s; }
.color-card:nth-child(8) { animation-delay: 0.4s; }
.color-card:nth-child(9) { animation-delay: 0.45s; }
.color-card:nth-child(10) { animation-delay: 0.5s; }
