/* Image Color Harmony - Tool-specific styles */

/* Ensure proper spacing below nav */
.tool-container {
    margin-top: 60px;
}

.upload-zone {
    background: #0a0a0a;
    border: 2px dashed #374151;
    border-radius: 12px;
    padding: 48px 32px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    margin-bottom: 24px;
}

.upload-zone:hover,
.upload-zone.drag-over {
    border-color: #3b82f6;
    background: #1e3a8a20;
}

.upload-zone.has-image {
    padding: 24px;
    border-style: solid;
}

.upload-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    color: #6b7280;
}

.upload-text {
    font-size: 16px;
    color: #e5e7eb;
    margin-bottom: 8px;
}

.upload-hint {
    font-size: 14px;
    color: #6b7280;
}

.preview-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    object-fit: contain;
}

.color-count-section {
    margin-bottom: 24px;
}

.color-count-slider {
    width: 100%;
    margin-top: 8px;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}

/* Extracted Colors */
.extracted-colors {
    margin-bottom: 32px;
}

.extracted-colors h3 {
    font-size: 18px;
    font-weight: 600;
    color: #e5e7eb;
    margin-bottom: 16px;
}

.color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.color-swatch {
    width: 80px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.color-swatch:hover {
    transform: scale(1.05);
}

.swatch-color {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    border: 1px solid #374151;
    margin-bottom: 8px;
}

.swatch-hex {
    font-size: 12px;
    font-family: 'SF Mono', Monaco, monospace;
    color: #d1d5db;
    margin-bottom: 2px;
}

.swatch-rgb {
    font-size: 11px;
    color: #6b7280;
}

/* Harmony Palettes */
.harmony-section {
    margin-bottom: 32px;
}

.harmony-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #e5e7eb;
    margin-bottom: 16px;
}

.harmony-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.harmony-tab {
    padding: 10px 16px;
    background: #1a1a1a;
    border: 1px solid #374151;
    border-radius: 6px;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.harmony-tab:hover {
    background: #374151;
    color: #e5e7eb;
}

.harmony-tab.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
}

.harmony-palette {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    height: 100px;
}

.harmony-color {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 8px;
    cursor: pointer;
    transition: transform 0.15s ease;
    position: relative;
}

.harmony-color:hover {
    transform: scaleY(1.05);
    transform-origin: bottom;
}

.harmony-color-label {
    font-size: 11px;
    font-family: 'SF Mono', Monaco, monospace;
    color: inherit;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    padding: 4px 8px;
    background: rgba(0,0,0,0.3);
    border-radius: 4px;
}

/* Color Info Panel */
.color-info-panel {
    background: #141414;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.color-info-panel.hidden {
    display: none;
}

.color-info-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.color-info-preview {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    border: 1px solid #374151;
}

.color-info-values {
    flex: 1;
}

.color-info-values h4 {
    font-size: 16px;
    font-weight: 600;
    color: #e5e7eb;
    margin-bottom: 8px;
}

.color-value-row {
    display: flex;
    gap: 24px;
    font-size: 14px;
}

.color-value-row span {
    color: #9ca3af;
}

.color-value-row code {
    color: #e5e7eb;
    font-family: 'SF Mono', Monaco, monospace;
}

/* Export Actions */
.export-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.export-actions .btn-secondary,
.export-actions .btn-primary {
    flex: 1;
    min-width: 140px;
}

/* Output Section */
.output-section {
    background: #141414;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 24px;
}

.output-section.hidden {
    display: none;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: #6b7280;
}

.empty-state p {
    font-size: 15px;
}

/* Pro Badge */
.pro-badge {
    display: inline-block;
    color: #0a0a0a;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

/* Notification */
.copy-notification {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: #059669;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 1000;
}

.copy-notification.visible {
    opacity: 1;
}

/* Loading State */
.loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.loading-overlay.hidden {
    display: none;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #374151;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .color-swatches {
        justify-content: center;
    }
    
    .color-swatch {
        width: 70px;
    }
    
    .swatch-color {
        width: 70px;
        height: 70px;
    }
    
    .harmony-tabs {
        justify-content: center;
    }
    
    .export-actions {
        flex-direction: column;
    }
    
    .export-actions .btn-secondary,
    .export-actions .btn-primary {
        width: 100%;
    }
}
