/* =========================================================================
   Nursery Color Palette — ncp- prefix
   ========================================================================= */

/* --- Tag filter bar --- */
.ncp-tag-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 24px;
    margin: 16px auto 0;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}
.ncp-tag-bar::-webkit-scrollbar {
    display: none;
}
.ncp-tag-bar {
    scrollbar-width: none;
}

.ncp-tag {
    border: 1.5px solid rgba(139, 123, 184, 0.2);
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 14px;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    color: var(--text, #3D2F50);
    flex-shrink: 0;
}
.ncp-tag:hover {
    border-color: var(--primary, #8B7BB8);
    color: var(--primary, #8B7BB8);
}
.ncp-tag-active {
    background: var(--primary, #8B7BB8);
    color: #fff;
    border-color: var(--primary, #8B7BB8);
}
.ncp-tag-active:hover {
    color: #fff;
}

/* --- Palette grid --- */
.ncp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 24px auto;
    padding: 0 24px;
}

/* --- Palette card --- */
.ncp-palette-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(61, 47, 80, 0.10);
    padding: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ncp-palette-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(61, 47, 80, 0.15);
}

.ncp-hidden {
    display: none;
}

/* --- Card header --- */
.ncp-palette-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.ncp-palette-emoji {
    font-size: 36px;
    line-height: 1;
}
.ncp-palette-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text, #3D2F50);
    margin: 0;
}

/* --- Mood description --- */
.ncp-palette-mood {
    font-size: 14px;
    color: var(--text-muted, #695A80);
    margin: 0 0 16px;
    line-height: 1.5;
}

/* --- Swatch row --- */
.ncp-swatch-row {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* --- Individual swatch --- */
.ncp-swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    position: relative;
    flex: 1;
    min-width: 0;
}
.ncp-swatch-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ncp-swatch:hover .ncp-swatch-circle {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.ncp-swatch-name {
    font-size: 11px;
    font-weight: 700;
    margin-top: 6px;
    color: var(--text, #3D2F50);
    text-align: center;
    line-height: 1.3;
}
.ncp-swatch-hex {
    font-size: 10px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    color: var(--text-muted, #695A80);
}
.ncp-swatch-role {
    font-size: 10px;
    color: var(--text-muted, #695A80);
    font-style: italic;
    text-align: center;
    line-height: 1.3;
}

/* --- Copy toast --- */
.ncp-copy-toast {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    background: var(--accent, #7BC8B8);
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    white-space: nowrap;
    z-index: 5;
}
.ncp-copy-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-8px);
}

/* --- Card footer --- */
.ncp-card-footer {
    text-align: center;
    margin-top: 12px;
}
.ncp-copy-all {
    color: var(--primary, #8B7BB8);
    border: 1px solid var(--primary, #8B7BB8);
    background: transparent;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.ncp-copy-all:hover {
    background: var(--primary, #8B7BB8);
    color: #fff;
}

/* --- Tags row at bottom of card --- */
.ncp-tags-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 12px;
}
.ncp-palette-tag {
    font-size: 11px;
    color: var(--text-muted, #695A80);
    background: rgba(139, 123, 184, 0.08);
    border-radius: 10px;
    padding: 2px 10px;
    font-weight: 600;
}

/* --- Full-width content sections --- */
.calc-section-card {
    max-width: none;
}

/* =========================================================================
   Mobile
   ========================================================================= */
@media (max-width: 600px) {
    .ncp-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 16px;
    }
    .ncp-tag-bar {
        padding: 0 16px;
    }
    .ncp-palette-card {
        padding: 20px 16px;
    }
    .ncp-swatch-circle {
        width: 36px;
        height: 36px;
    }
    .ncp-swatch-row {
        gap: 8px;
    }
    .ncp-palette-emoji {
        font-size: 28px;
    }
    .ncp-palette-name {
        font-size: 16px;
    }
    .ncp-swatch-name {
        font-size: 10px;
    }
    .ncp-swatch-hex {
        font-size: 9px;
    }
    .ncp-swatch-role {
        font-size: 9px;
    }
}
