/* ─── Color Palette Generator — True Premium Layout ─── */

.color-palette .tool-area {
    background: #ffffff;
    border: none;
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
    position: relative;
    overflow: hidden;
}

/* Subtle accent bar at top — orange gradient for Color Palette */
.color-palette .tool-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #fbbf24, #fcd34d);
}

.color-palette .tool-header {
    margin-bottom: 32px;
}

.color-palette .tool-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.color-palette .tool-header p {
    color: #64748b;
    font-size: 1.05rem;
    font-weight: 400;
}

/* Upload area — dashed border, centered */
.color-palette .upload-area {
    background: #f8fafc;
    padding: 40px 28px;
    border-radius: 16px;
    border: 2px dashed #e2e8f0;
    text-align: center;
    margin-bottom: 24px;
    transition: all 0.25s ease;
}

.color-palette .upload-area:hover {
    border-color: #f59e0b;
    background: #fffbeb;
}

.color-palette .upload-area input[type="file"] {
    padding: 12px;
    width: 100%;
    max-width: 300px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
}

.color-palette .upload-hint {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-top: 8px;
}

/* Preview area */
.color-palette .preview-area {
    margin: 24px 0;
    text-align: center;
}

.color-palette .image-container {
    margin: 16px 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #eef2f6;
    background: #f8fafc;
}

.color-palette .image-container img {
    max-width: 100%;
    max-height: 400px;
    display: block;
    margin: 0 auto;
}

/* Primary button — full width, pill shape */
.color-palette .primary-btn {
    width: 100%;
    padding: 16px 28px;
    background: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.3px;
    font-family: 'Outfit', sans-serif;
}

.color-palette .primary-btn:hover {
    background: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
}

.color-palette .primary-btn:active {
    transform: scale(0.98);
}

/* Palette area — grid of color swatches */
.color-palette .palette-area {
    margin-top: 32px;
    padding: 28px;
    background: #f8fafc;
    border-radius: 18px;
    border: 1px solid #eef2f6;
}

.color-palette .palette-area h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 16px;
    text-align: center;
}

.color-palette .palette-container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.color-palette .color-swatch {
    width: 100px;
    height: 100px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    transition: all 0.2s ease;
    position: relative;
    padding-bottom: 10px;
}

.color-palette .color-swatch:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    z-index: 2;
}

.color-palette .color-swatch .hex-code {
    background: rgba(255, 255, 255, 0.85);
    color: #0f172a;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.3px;
    backdrop-filter: blur(4px);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

/* Copy button — full width */
.color-palette .palette-area .primary-btn {
    margin-top: 20px;
    width: 100%;
    padding: 14px 28px;
    background: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: 'Outfit', sans-serif;
}

.color-palette .palette-area .primary-btn:hover {
    background: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
}

/* SEO content — clean, airy */
.color-palette .seo-content {
    margin-top: 48px;
    padding: 36px;
    background: #fafcff;
    border-radius: 20px;
    border: 1px solid #eef2f6;
}

.color-palette .seo-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.color-palette .seo-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-top: 20px;
}

.color-palette .seo-content ul {
    margin-left: 20px;
    color: #475569;
    line-height: 1.8;
}

.color-palette .seo-content p {
    color: #475569;
    line-height: 1.8;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .color-palette .tool-area {
        padding: 24px;
    }

    .color-palette .tool-header h2 {
        font-size: 1.6rem;
    }

    .color-palette .upload-area {
        padding: 24px 16px;
    }

    .color-palette .color-swatch {
        width: 70px;
        height: 70px;
    }

    .color-palette .color-swatch .hex-code {
        font-size: 0.65rem;
        padding: 2px 8px;
    }

    .color-palette .seo-content {
        padding: 24px;
    }
}