/* Palette Extractor Styles */

main.container {
    padding-top: 120px;
    padding-bottom: 80px;
}

.tool-header {
    text-align: center;
    margin-bottom: 3rem;
}

.tool-icon-large {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    text-shadow: 0 0 20px var(--primary-glow);
}

.tool-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.tool-workspace {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Drop Zone */
.drop-zone {
    padding: 4rem 2rem;
    text-align: center;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.drop-zone.dragover {
    border-color: var(--primary);
    background: rgba(234, 88, 12, 0.05);
    transform: scale(1.02);
}

.drop-icon {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

.drop-zone:hover .drop-icon {
    color: var(--primary);
}

.drop-content h3 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.drop-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Results Section */
.results-container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.preview-wrapper {
    position: relative;
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    background: var(--bg-card);
}

#image-preview {
    max-width: 100%;
    max-height: 500px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    object-fit: contain;
}

.processing-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 1.2rem;
    gap: 1rem;
    z-index: 10;
}

.processing-overlay i {
    font-size: 2.5rem;
    color: var(--primary);
}

/* Palette Display */
.palette-wrapper {
    text-align: center;
}

.palette-wrapper h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.palette-wrapper .subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.palette-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
}

/* Color Card */
.color-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.color-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

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

.color-swatch::after {
    content: 'COPY';
    position: absolute;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.2s ease;
    pointer-events: none;
}

.color-card:hover .color-swatch::after {
    opacity: 1;
    transform: scale(1);
}

.color-card.copied .color-swatch::after {
    content: 'COPIED!';
    background: var(--primary);
    opacity: 1;
    transform: scale(1);
}

.color-info {
    background: var(--bg-card);
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.color-hex {
    display: block;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.color-rgb {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
