/* ══════════════════════════════════════════
   PetPaws Tag Preview — tag-preview.css (v2.0)
══════════════════════════════════════════ */

.pptv-wrap {
    font-family: 'Nunito', 'Segoe UI', sans-serif;
    max-width: 520px;
    margin: 0 auto;
    padding: 0;
    color: #3D2008;
}

.pptv-title {
    font-size: 1.18rem;
    font-weight: 800;
    color: #5C3317;
    text-align: center;
    margin: 0 0 4px;
}
.pptv-subtitle {
    font-size: .82rem;
    color: #9A7A5A;
    text-align: center;
    margin: 0 0 16px;
    font-weight: 600;
}

/* ── Category tabs ── */
.pptv-tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.pptv-tab {
    background: #FDF8F2;
    border: 2px solid transparent;
    color: #5C3317;
    border-radius: 50px;
    padding: 8px 18px;
    font-size: .85rem;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s, border-color .15s, transform .12s;
}
.pptv-tab:hover { background: #FFF3E8; transform: translateY(-1px); }
.pptv-tab.pptv-tab-active {
    background: #C87941;
    color: #fff;
    border-color: #C87941;
}

/* ── Search ── */
.pptv-search-row {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}
.pptv-search {
    width: 100%;
    max-width: 320px;
    padding: 9px 16px;
    border: 1.5px solid #E0C9A0;
    border-radius: 50px;
    background: #FFFCF7;
    font-family: inherit;
    font-size: .9rem;
    color: #5C3317;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.pptv-search:focus {
    border-color: #C87941;
    box-shadow: 0 0 0 3px rgba(200,121,65,.18);
}

/* ── Breed grid ── */
.pptv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 10px;
    margin-bottom: 22px;
    max-height: 320px;
    overflow-y: auto;
    padding: 4px;
    border-radius: 14px;
    background: #FFFCF7;
}

.pptv-empty {
    text-align: center;
    color: #9A7A5A;
    font-size: .85rem;
    font-weight: 700;
    padding: 22px 0;
}

.pptv-card {
    background: #fff;
    border: 2px solid #F0E4D4;
    border-radius: 12px;
    padding: 8px 6px 6px;
    cursor: pointer;
    font-family: inherit;
    transition: border-color .15s, transform .12s, box-shadow .15s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.pptv-card:hover {
    border-color: #E8952A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200,121,65,.12);
}
.pptv-card.pptv-card-active {
    border-color: #C87941;
    background: #FFF3E8;
    box-shadow: 0 0 0 2px rgba(200,121,65,.22);
}

.pptv-card-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #FAF3E8;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2a2a2a;
}
.pptv-card-thumb svg { width: 70%; height: 70%; }

.pptv-card-name {
    font-size: .68rem;
    font-weight: 700;
    color: #5C3317;
    text-align: center;
    line-height: 1.15;
    word-break: break-word;
    padding: 0 2px;
}

/* ── Preview wrap ── */
.pptv-preview-wrap {
    text-align: center;
    margin-top: 12px;
}

.pptv-canvas {
    display: block;
    margin: 0 auto 18px;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* ── Colour selector ── */
.pptv-colour-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.pptv-colour-label {
    font-size: .82rem;
    font-weight: 800;
    color: #9A7A5A;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.pptv-colours { display: flex; gap: 8px; }

.pptv-col-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2.5px solid transparent;
    cursor: pointer;
    padding: 0;
    transition: transform .15s, border-color .15s;
    box-shadow: 0 2px 6px rgba(0,0,0,.22);
}
.pptv-col-btn:hover { transform: scale(1.12); }
.pptv-col-btn.pptv-col-active {
    border-color: #C87941;
    transform: scale(1.15);
    box-shadow: 0 0 0 3px rgba(200,121,65,.25);
}

/* ── Actions ── */
.pptv-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.pptv-btn-dl {
    background: #C87941;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 10px 22px;
    font-size: .88rem;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    transition: background .14s, transform .12s;
}
.pptv-btn-dl:hover { background: #E8952A; transform: scale(1.02); }

/* ── Note ── */
.pptv-note {
    font-size: .76rem;
    color: #9A7A5A;
    font-weight: 600;
    text-align: center;
    line-height: 1.5;
    max-width: 380px;
    margin: 0 auto 8px;
}

.pptv-credit {
    font-size: .65rem;
    color: #B8A284;
    text-align: center;
    margin: 4px auto 0;
    max-width: 380px;
    line-height: 1.4;
}
.pptv-credit a { color: inherit; text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 480px) {
    .pptv-grid    { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
    .pptv-title   { font-size: 1rem; }
    .pptv-tab     { padding: 7px 14px; font-size: .78rem; }
}
