/* Guide Quick Phrases (docs/guide-system-design.md, mockup approved by the user 23 Nov 2026,
   claude.ai/artifact/GphGDEZydQhYAt7AX81YAc) - lets an on-duty guide send a pre-written message to
   Public Chat from a player's interaction buttons instead of retyping the same welcome/check-in/
   follow-me lines all day. Lives inside a #guide-quick-phrases-parent .flex-container, same
   fetch-fragment pattern as guide-panel.css/guidePanel.js - re-using its header/card/pill visual
   language (same blue accent) since this is the same Guide System identity, but kept in its own
   file/classes rather than folded into guide-panel.css since this interface isn't opened from the
   Guide Panel at all - it's opened per-player, from addPlayerInteractionButtons (player.js). */

.interface.guide-quick-phrases-interface {
    width: 100%;
    max-width: 420px;
    text-align: center;
    padding: 0;
    border-radius: 10px;
}

.guide-quick-phrases-interface,
.guide-quick-phrases-interface *,
.guide-quick-phrases-interface *::before,
.guide-quick-phrases-interface *::after {
    box-sizing: border-box;
}

.guide-quick-phrases-interface .close-button {
    z-index: 5;
}

.guide-quick-phrases-interface {
    --gqp-accent: #2f7de8;
    --gqp-accent-deep: #1a4fa0;
}

/* ---------------------------------------------------------------------------
   Header - same treatment as guide-panel.css's .guide-panel-header
--------------------------------------------------------------------------- */
.guide-quick-phrases-header {
    position: relative;
    padding: 26px 26px 20px;
    background: linear-gradient(135deg, var(--gqp-accent-deep) 0%, var(--gqp-accent) 100%);
    color: #fff;
    border-radius: 7px 7px 0 0;
    text-align: left;
}

.guide-quick-phrases-crest {
    width: 60px;
    height: 59px;
    border-radius: 14px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px -4px #00000070, inset 0 0 0 2px #ffffff40;
    margin-bottom: 14px;
    padding: 6px;
}

.guide-quick-phrases-crest svg {
    width: 34px;
    height: 34px;
}

.guide-quick-phrases-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #ffffffcc;
    margin: 0 0 4px;
}

.guide-quick-phrases-header h1 {
    margin: 0 0 10px;
    font-size: 25px;
    font-weight: 700;
    text-shadow: 0px 2px 1px #00000042;
}

.guide-quick-phrases-target-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff30;
    border: 1px solid #ffffff55;
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 5px 10px 5px 8px;
    border-radius: 100px;
}

.guide-quick-phrases-target-pill .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #8aff8a;
    box-shadow: 0 0 0 3px #ffffff33;
}

/* ---------------------------------------------------------------------------
   Category tabs - plain buttons (not jQuery UI tabs like guide-panel.css) since there are more
   than 2 of these and they're populated dynamically from guideQuickPhrases.js's category list.
--------------------------------------------------------------------------- */
.guide-quick-phrases-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 14px 16px 0;
}

.guide-quick-phrases-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    background: #f0f1f6;
    color: #4c4c4c;
}

.guide-quick-phrases-tab:hover {
    background: #e3e5ef;
}

/* Custom focus ring instead of the browser default (a plain blue outline that looked like a stuck
   hover/selection state sitting on top of the active-tab/sent-phrase styling below) - still visible
   for keyboard users, just drawn in the panel's own accent instead. */
.guide-quick-phrases-tab:focus-visible,
.guide-quick-phrases-row:focus-visible {
    outline: 2px solid var(--gqp-accent);
    outline-offset: 2px;
}

.guide-quick-phrases-tab:focus:not(:focus-visible),
.guide-quick-phrases-row:focus:not(:focus-visible) {
    outline: none;
}

.guide-quick-phrases-tab.active {
    background: var(--gqp-accent-deep);
    color: #fff;
}

.guide-quick-phrases-tab-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.guide-quick-phrases-tab-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* ---------------------------------------------------------------------------
   Body + card + phrase list
--------------------------------------------------------------------------- */
.guide-quick-phrases-body {
    padding: 14px 16px 16px;
    text-align: left;
}

/* Success confirmation (user's own call, 23 Nov 2026 - the per-row checkmark alone wasn't
   emphatic enough for a guide to be certain a greeting actually went through). A single reused
   element, same reasoning as reusable.js's showItemPlacedQuantityToast - clicking several phrases in
   quick succession restarts this one banner's timer instead of stacking several. Collapsible via
   max-height rather than fixed/absolute positioning, so it never needs a magic top offset that'd
   break across the responsive breakpoints below. */
.guide-quick-phrases-toast {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #0e9161;
    margin: 0;
    padding: 0 10px;
    transition: max-height .25s ease, opacity .2s ease, padding .25s ease, margin .25s ease;
}

.guide-quick-phrases-toast.visible {
    max-height: 44px;
    opacity: 1;
    padding: 9px 10px;
    margin: 0 0 10px;
    background: #e6f7ee;
    border-color: #a9e4c4;
}

.guide-quick-phrases-card {
    background: #f7f8fc;
    border: 1px solid #e7e9f2;
    border-radius: 14px;
    padding: 14px 14px 15px;
}

.guide-quick-phrases-card-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 11px;
    font-size: 13.5px;
    font-weight: 700;
    color: #14141f;
    text-transform: uppercase;
}

.guide-quick-phrases-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: min(300px, 45vh);
    overflow-y: auto;
    padding-right: 3px;
}

.guide-quick-phrases-list::-webkit-scrollbar { width: 5px; }
.guide-quick-phrases-list::-webkit-scrollbar-track { background-color: #e7e9f2; border-radius: 5px; }
.guide-quick-phrases-list::-webkit-scrollbar-thumb { background-color: #000; border-radius: 4px; }

.guide-quick-phrases-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    text-align: left;
    font-family: Arial, Helvetica, sans-serif;
    background: #fff;
    border: 1px solid #e7e9f2;
    border-radius: 10px;
    padding: 10px 11px;
    cursor: pointer;
}

.guide-quick-phrases-row:hover {
    border-color: var(--gqp-accent);
    background: #f5f8ff;
}

.guide-quick-phrases-row .text {
    font-size: 12.5px;
    line-height: 1.4;
    color: #14141f;
}

.guide-quick-phrases-row-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--gqp-accent);
}

.guide-quick-phrases-row-icon .glyph {
    display: block;
    width: 11px;
    height: 11px;
    background-color: #fff;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-image: url('../images/ui-elements/icon-arrow-right.png');
    mask-image: url('../images/ui-elements/icon-arrow-right.png');
}

.guide-quick-phrases-row-icon.sent {
    background-color: #0e9161;
}

.guide-quick-phrases-row-icon.sent .glyph {
    -webkit-mask-image: url('../images/ui-elements/icon-check.png');
    mask-image: url('../images/ui-elements/icon-check.png');
}

.guide-quick-phrases-footnote {
    font-size: 11.5px;
    color: #6d6d81;
    line-height: 1.5;
    margin: 12px 2px 0;
}

/* ---------------------------------------------------------------------------
   Responsive - same breakpoints/treatment as guide-panel.css
--------------------------------------------------------------------------- */
@media (max-width: 600px) {
    .guide-quick-phrases-header { padding: 18px 18px 10px; }
    .guide-quick-phrases-eyebrow { display: none; }
    .guide-quick-phrases-crest { float: left; margin-right: 9px; width: 48px; height: 48px; }
    .guide-quick-phrases-crest svg { width: 26px; height: 26px; }
    .guide-quick-phrases-header h1 { font-size: 18px; margin: 6px 0 4px; }
    .guide-quick-phrases-target-pill { font-size: 10px; }
}

@media (max-width: 480px) {
    .interface.guide-quick-phrases-interface { max-width: min(380px, calc(100vw - 33px)); }
    .guide-quick-phrases-tabs { gap: 5px; padding: 12px 12px 0; }
    .guide-quick-phrases-tab { font-size: 10px; padding: 7px 8px; }
    .guide-quick-phrases-body { padding: 12px 12px 14px; }
}

@media (max-width: 420px) {
    .guide-quick-phrases-row { padding: 9px 10px; }
    .guide-quick-phrases-row .text { font-size: 12px; }
}
