/* Color-bar hero inspired by Coolors top animation */
.pp-hero {
    position: relative;
    margin: 0 auto 15px;
    max-width: 1100px;
    border-radius: 18px;
    overflow: hidden;
    padding: 0;
    isolation: isolate;
}
.pp-hero-image img {
    border-radius: 15px;
}
.pp-hero-bars {
    position: relative;
    height: 220px;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent 0%, black 12%, black 88%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 12%, black 88%, transparent 100%);
}
.pp-hero-row {
    position: absolute;
    left: 0;
    right: 0;
    display: flex;
    gap: 12px;
    height: 64px;
    will-change: transform;
    animation: pp-slide 22s linear infinite;
}
.pp-hero-row:nth-child(1) { top: 0; }
.pp-hero-row:nth-child(2) { top: 76px; animation-delay: -4s; }
.pp-hero-row:nth-child(3) { top: 152px; animation-delay: -8s; }
.pp-chip {
    flex: 0 0 180px;
    border-radius: 15px;
    height: 100%;
    position: relative;
    overflow: hidden;
    padding: 0px;
}
.pp-chip span {
    font-size: 13px;
    color: rgba(0, 0, 0, 0.6);
}
.pp-chip .pp-swatches {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0px;
}
.pp-chip .pp-swatch {
    height: 64px;
}
@keyframes pp-slide {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@media (max-width: 768px) {
    .pp-hero { margin-top: 20px; }
    .pp-hero-bars { height: 190px; }
    .pp-hero-row { height: 56px; }
    .pp-hero-row:nth-child(2) { top: 66px; }
    .pp-hero-row:nth-child(3) { top: 132px; }
    .pp-chip { flex-basis: 150px; }
}

/* Palette Generator Tool */
.ppg-header {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}
.ppg-header-inline {
    justify-content: space-between;
}
.ppg-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}
.ppg-file,
.ppg-number {
    border: 1px solid #dcdde6;
    border-radius: 8px;
    padding: 8px 10px;
    width: 100%;
    font-size: 14px;
}
.ppg-upload {
    min-width: 180px;
    flex: 1 1 180px;
}
.ppg-count {
    width: 100%;
    padding: 0;
}
.ppg-vibrance {
    min-width: 220px;
    flex: 1 1 100%;
    display: block;
}
.ppg-range {
    width: 100%;
}
.ppg-range#ppg-hue {
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(
        to right,
        #ff0000 0%,
        #ffff00 17%,
        #00ff00 33%,
        #00ffff 50%,
        #0000ff 67%,
        #ff00ff 83%,
        #ff0000 100%
    );
    border-radius: 8px;
    height: 10px;
    padding: 0;
    border: none;
    margin-top: 10px;
    margin-bottom: 20px;
}
.ppg-range#ppg-temperature {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    border-radius: 8px;
    height: 10px;
    padding: 0;
    border: none;
    margin-top: 10px;
    margin-bottom: 20px;
}
.ppg-range#ppg-hue::-webkit-slider-runnable-track { background: inherit; height: 10px; border-radius: 8px; }
.ppg-range#ppg-hue::-moz-range-track { background: inherit; height: 10px; border-radius: 8px; }
.ppg-range#ppg-hue::-ms-track { background: inherit; height: 10px; border-radius: 8px; border-color: transparent; }
.ppg-range#ppg-temperature::-webkit-slider-runnable-track {
    background: linear-gradient(
        to right,
        #2b6bff 0%,
        #ffffff 50%,
        #ffd54f 100%
    );
    height: 10px;
    border-radius: 8px;
}
.ppg-range#ppg-temperature::-moz-range-track {
    background: linear-gradient(
        to right,
        #2b6bff 0%,
        #ffffff 50%,
        #ffd54f 100%
    );
    height: 10px;
    border-radius: 8px;
}
.ppg-range#ppg-temperature::-ms-track {
    background: linear-gradient(
        to right,
        #2b6bff 0%,
        #ffffff 50%,
        #ffd54f 100%
    );
    height: 10px;
    border-radius: 8px;
    border-color: transparent;
    color: transparent;
}
.ppg-range#ppg-hue::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #6c6c6c;
    cursor: pointer;
    margin-top: -4px;
}
.ppg-range#ppg-hue::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #6c6c6c;
    cursor: pointer;
}
.ppg-range#ppg-temperature::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #6c6c6c;
    cursor: pointer;
    margin-top: -4px;
}
.ppg-range#ppg-temperature::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #6c6c6c;
    cursor: pointer;
}
.ppg-range#ppg-temperature::-ms-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #6c6c6c;
    cursor: pointer;
}
.ppg-range#ppg-hue::-ms-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #6c6c6c;
    cursor: pointer;
}
.ppg-vibrance + .ppg-vibrance {
    margin-top: 8px;
}
.ppg-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.ppg-harmony {
    width: 100%;
    padding: 0;
}
.ppg-harmony-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.ppg-harmony-field {
    flex: 1 1 180px;
    min-width: 180px;
}
.ppg-color-input,
.ppg-select {
    border: 1px solid #dcdde6;
    border-radius: 8px;
    padding: 8px 10px;
    width: 100%;
    font-size: 14px;
    height: 40px;
    background: #fff;
}
.ppg-color-input {
    padding: 4px;
}
.ppg-harmony-hint {
    font-size: 13px;
    margin-top: 4px;
}
.ppg-image-shell {
    position: relative;
    min-height: 260px;
    border: 1px dashed #dcdde6;
    border-radius: 15px;
    overflow: hidden;
    background: #f8f9fc;
    padding: 12px;
    display: flex;
    flex-direction: column;
    text-align: left;
}
.ppg-image-placeholder {
    height: 100%;
    max-height: 500px;
    display: grid;
    place-items: center;
    color: #9aa0b5;
    font-weight: 600;
}
.ppg-image-placeholder img {
    max-width: 100%;
    height: auto;
    display: block;
    max-height: 500px;
    border-radius: 15px;
}
.ppg-title {
    font-weight: 700;
    font-size: 18px;
}
.ppg-status {
    font-size: 13px;
    color: #7a8094;
    white-space: nowrap;
}
.ppg-card {
    padding: 12px;
    border: 1px dashed #dcdde6;
    border-radius: 15px;
    background: #f8f9fc;
}
.ppg-colors {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    border-radius: 15px;
}
.ppg-colors.is-hidden {
    display: none;
}
.ppg-toggle-row {
    margin-top: 10px;
}
.ppg-hue-circle-block {
    margin-top: 12px;
}
.ppg-hue-circle {
    display: flex;
    justify-content: center;
    align-items: center;
}
.ppg-hue-circle canvas {
    max-width: 100%;
    height: auto;
    display: block;
}
.ppg-colors-strip {
    display: flex;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 10px;
    min-height: 86px;
}
.ppg-colors-strip .ppg-strip-swatch {
    flex: 1 1 0;
    min-height: 64px;
    position: relative;
}
.ppg-strip-actions {
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.15s ease;
    pointer-events: none;
}
.ppg-strip-swatch:hover .ppg-strip-actions {
    opacity: 1;
    pointer-events: auto;
}
.ppg-strip-actions button {
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ppg-strip-actions img {
    display: block;
}
.ppg-color-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 5px 10px;
    width: auto;
}
.ppg-color-item input[type="color"] {
    width: 30px;
    height: 30px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}
.ppg-color-hex {
    flex: 1 1 auto;
    min-width: 120px;
    border: 1px solid #dcdde6;
    border-radius: 8px;
    padding: 8px 10px;
    font-family: monospace;
    font-size: 14px;
}
.ppg-color-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}
.ppg-copy,
.ppg-remove {
    border: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .ppg-actions { width: 100%; justify-content: flex-start; }
    .ppg-color-hex { width: 100%; }
    .ppg-status { white-space: normal; }
    .ppg-vibrance { width: 100%; }
}

.btn-color-palette {
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid #dcdde6;
    background: #f1f4ff;
    color: #1f2d56;
    cursor: pointer;
}
.btn-color-palette:hover {
    background: #dbe1ff;
}
.btn-color-palette.green {
    background: #e6f9eb;
    color: #008000;
}
.btn-color-palette.green:hover {
    background: #d0f2d9;
}
.btn-color-palette.red {
    background: #ffe6e6;
    color: #ff0000;
}
.btn-color-palette.red:hover {
    background: #ffd1d1;
}
#ppg-card-generated-palette {
    min-height: 723px;
}
button.ppg-info {
    border: none;
}
.ppg-info-row {
    display: flex;
    flex-direction: row;
    gap: 10px;
    padding: 0 5px 10px 0;
}
.ppg-info-row span {
    font-size: 16px;
    color: #1f2d56;
    background: #f0f2f6;
    padding: 5px;
    border-radius: 8px;
    display: inline-block;
}
.ppg-info-row strong {
    font-size: 16px;
    color: #1f2d56;
    display: flex;
    align-items: center;
    justify-content: start;
}
.ppg-info-popup.is-open {
    padding: 0;  
}
.ppg-info-popup.is-open .ppg-info-header {
    display: flex;
    align-items: start;
    justify-content: start;
    padding: 50px 30px 10px;
    margin-bottom: 20px;
}
.ppg-info-body-content {
    padding: 0 30px 30px;
}
.ppg-download-note {
    font-size: 16px;
    line-height: 20px;
}
.ppg-download-note .text-danger {
    font-size: 20px;
    line-height: 20px;
}
.tools-section.section-blue h3.h4 {
    font-size: 18px;
    font-weight: bold;
    color: #2a47c1;
}
.tools-section ol,
.tools-section ul {
    list-style-position: outside;
    margin-left: 20px;
}
.color-guide-info-section,
.unmix-color-to-primary-secondary-text,
.create-pbn-block,
#export-section .export-section-block,
#artists-section .artists-section-block {
    padding: 20px;
    border-radius: 15px;
    background: #ffffff;
}
.h4 {
    font-size: 16px;
}
#contrast-section .contrast-section-block {
    background: #fff4f8;
    padding: 20px;
    border-radius: 15px;
}
#color-guide-section {
    background: url(../images/bg-section.webp) no-repeat center center;
    background-size: 100% 100%;
    font-size: 16px;
    line-height: 24px;
}
.mixing-mix-block,
#color-guide-section .color-guide-section-block {
    background: #F3F3FF;
    padding: 20px;
    border-radius: 15px;
}
button.btn-copy-template {
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    padding: 0;
    margin: 0;
    margin-left: 10px;
    background: #f0f2f6;
    border-radius: 20%;
    width: 25px;
    height: 25px;
}
.ppg-ready-palette {
    text-align: center;
}