/* Tag chips (copyright / character / general) and the admin + tag popup.
   Used by the comic series page and gallery posts. */

/* Tags */
.info-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.info-tag {
    font-family: "jf_dot_ayu";
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 2px;
    border: 1px solid;
    text-decoration: none;
    transition: opacity 0.15s;
}

.info-tag:hover { opacity: 0.7; }

.info-tag-copyright {
    color: #f0d060;
    border-color: rgba(240, 208, 96, 0.3);
    background-color: rgba(240, 208, 96, 0.08);
}

.info-tag-character {
    color: #80c89a;
    border-color: rgba(128, 200, 154, 0.3);
    background-color: rgba(128, 200, 154, 0.08);
}

.info-tag-general {
    color: #80aad0;
    border-color: rgba(128, 170, 208, 0.3);
    background-color: rgba(128, 170, 208, 0.08);
}

/* ── Admin tag editing (series page + gallery posts) ── */
.info-tag-wrap { display: inline-flex; align-items: stretch; }
.info-tag-wrap .info-tag + .info-tag-remove { border-left: none; }
.info-tag-remove {
    font-family: "jf_dot_ayu";
    font-size: 12px;
    line-height: 1;
    padding: 0 6px;
    background: transparent;
    color: #888;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0 2px 2px 0;
    cursor: pointer;
}
.info-tag-remove:hover { color: #ff8a80; border-color: rgba(255, 138, 128, 0.6); }
.info-tag-wrap .info-tag { border-radius: 2px 0 0 2px; }
.info-tag-wrap:has(.info-tag-remove) .info-tag { border-right-width: 1px; }
.info-tags > .info-tag-wrap:not(:has(.info-tag-remove)) .info-tag { border-radius: 2px; }
.info-tag-add {
    font-family: "jf_dot_ayu";
    font-size: 14px;
    line-height: 1;
    min-width: 26px;
    padding: 3px 8px;
    background: transparent;
    color: aquamarine;
    border: 1px dashed rgba(127, 255, 212, 0.5);
    border-radius: 2px;
    cursor: pointer;
}
.info-tag-add:hover, .info-tag-add:focus-visible { background-color: rgba(127, 255, 212, 0.1); border-style: solid; }

.tag-modal-content { width: 460px !important; text-align: left !important; }
.tag-modal-content h2 { text-align: center; }
.tag-modal-current { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; min-height: 24px; }
.tag-modal-label { display: block; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: #999; margin-bottom: 6px; font-family: "jf_dot_ayu"; }
.tag-modal-input {
    width: 100%;
    box-sizing: border-box;
    font-family: "jf_dot_ayu";
    font-size: 14px;
    padding: 8px 10px;
    background: #0e0f0f;
    color: #eee;
    border: 1px solid rgba(127, 255, 212, 0.3);
    outline: none;
}
.tag-modal-input:focus { border-color: aquamarine; }
.tag-modal-cats { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0; }
.tag-modal-cats-label { font-size: 11px; color: #999; font-family: "jf_dot_ayu"; }
.tag-cat-btn { font-family: "jf_dot_ayu"; font-size: 11px; padding: 3px 8px; cursor: pointer; opacity: 0.55; border: 1px solid; border-radius: 2px; }
.tag-cat-btn.selected { opacity: 1; box-shadow: 0 0 0 1px currentColor; }
.tag-modal-suggestions { display: flex; flex-direction: column; gap: 2px; max-height: 240px; overflow-y: auto; }
.tag-sug {
    display: flex; align-items: center; gap: 6px;
    text-align: left;
    background: transparent;
    border: 1px solid transparent;
    padding: 4px 6px;
    cursor: pointer;
    font-family: "jf_dot_ayu";
    font-size: 13px;
    color: #ddd;
}
.tag-sug:hover, .tag-sug:focus-visible, .tag-sug:first-child { border-color: rgba(127, 255, 212, 0.25); background: rgba(127, 255, 212, 0.05); }
.tag-sug .info-tag { pointer-events: none; }
.tag-sug-meta { color: #888; font-size: 11px; }
.tag-sug-create { color: aquamarine; }
.tag-modal-status { font-size: 12px; color: #7CFC9A; min-height: 16px; margin: 8px 0 0; }

