/*
/css/text.css - 2026-06-13 - Post 'N Gone Owner
Latest changes:
- Text wall and reply detail classes normalized to text-prefixed kebab-case.
- Removed unused legacy text note selectors.
- Inlined note card margins so text.css no longer depends on removed core variables.
- Added compact mobile sizing for text notes and reply actions.
- Re-locked front-page note cards, action images, and footer positions to the old 350px note geometry.
*/

/*
Text wall notes
*/

.text-note-grid { display: flex; width: 100%; flex-wrap: wrap; gap: 7px; justify-content: center; }
.text-form-status { width: min(100%, 440px); min-height: 24px; box-sizing: border-box; margin: 0 auto 8px; padding: 5px 10px; border: 1px solid transparent; border-radius: 5px; background: rgba(255, 255, 255, 0.06); color: var(--postngone-accent); font-size: 13px; font-weight: 700; line-height: 1.25; text-align: center; }
.text-form-status.is-ready { color: var(--postngone-accent); border-color: rgba(255, 240, 114, 0.45); background: rgba(255, 240, 114, 0.1); }
.text-form-status.is-uploading { color: #fff; border-color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.12); }
.text-form-status.is-complete { color: #9be79b; border-color: rgba(155, 231, 155, 0.5); background: rgba(155, 231, 155, 0.12); }
.text-form-status.is-error { color: #ff8f8f; border-color: rgba(255, 143, 143, 0.65); background: rgba(136, 8, 8, 0.22); }
.text-note-vote-error { clear: both; margin: 4px 8px 0; padding: 4px 6px; border: 1px solid #8d160a; border-radius: 4px; background: #fff0ea; color: #8d160a; font-size: 13px; font-weight: 700; line-height: 1.3; text-align: right; }
.text-note-vote-error:empty { display: none; }
.text-filter { display: flex; justify-content: center; align-items: center; width: min(330px, calc(100% - 24px)); margin: 0 auto 18px; }
.text-filter-select { width: 100%; min-height: 42px; box-sizing: border-box; margin: 0; padding: 10px 16px; border: 1px solid #000; background: rgba(255, 255, 255, .5); color: #111; font: inherit; cursor: pointer; }
.text-filter-select:focus-visible { outline: 3px solid var(--postngone-accent); outline-offset: 2px; }
.text-page-link { color: rgb(85, 72, 72); text-decoration: underline; cursor: pointer; }
.text-page-link:hover { color: red; }
.text-note-card { flex: 0 0 350px; margin: 12px 25px; position: relative; max-width: 350px; width: 350px; height: 332px; box-sizing: border-box; background-color: #FFFA90; overflow: hidden; }
.text-note-card:before { content: ''; position: absolute; top: -8px; left: 50%; margin-left: -8px; border-width: 8px 8px 0; }
.text-note-content { overflow-y: auto; overflow-x: hidden; position: absolute; top: 2px; left: 2px; bottom: 9%; right: 1px; padding-right: 2px; color: #000; }
.text-note-header { display: block; text-align: right; background-color: #FFF072; height: 55px; width: 100%; box-sizing: border-box; float: left; padding-top: 1px; margin: 0px !important; border: 2px; border-color: #fff; }
.text-note-title { width: calc(100% - 170px); max-height: 51px; margin: 0 !important; font-size: 16px; line-height: 16px; cursor: pointer; color: #000; box-sizing: border-box; float: left; align-items: flex-start; text-align: left; padding-left: 5px; padding-top: 5px; padding-right: 4px; vertical-align: middle; overflow: hidden; overflow-wrap: break-word; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.text-note-message { margin: 0 !important; word-wrap: break-word; overflow-wrap: break-word; float: left; width: 96%; box-sizing: border-box; text-align: left; padding: 10px; }
.text-note-footer { height: 20px; width: 100%; box-sizing: border-box; float: left; padding-top: 5px; margin: 0px !important; position: absolute; bottom: 3px; margin-left: -5% !important; padding: 0px !important; align-items: flex-end; display: flex; border-top: 1px solid #d3d3d3; }
.text-note-poster { font-size: 12px; position: absolute; bottom: 5%; color: #888; float: left; text-align: left; width: 100%; left: 6%; }
.text-note-days { font-size: 12px; bottom: 5%; color: #888; float: right; text-align: right; width: 100%; }
.text-note-action-bar { display: flex; float: right; align-items: flex-start; gap: 1px; margin-right: 1px; height: 55px; overflow: visible; white-space: nowrap; }
.text-note-action-bar a, .text-note-reply-link { display: block; flex: 0 0 52px; width: 52px; height: 52px; color: inherit; text-decoration: none; }
.text-note-action-button { flex: 0 0 52px; width: 52px; height: 52px; box-sizing: border-box; margin-right: 0; border: 1px solid transparent; border-radius: 7px; transform: none; }
.text-note-action-button:nth-of-type(2) { transform: none; }
.text-note-like-button, .text-note-dislike-button, .text-note-reply-button { position: relative; display: block; width: 100%; height: 100%; box-sizing: border-box; border: 0; padding: 0; border-radius: 6px; background-position: center; background-repeat: no-repeat; color: #111; cursor: pointer; outline: none; text-align: center; font: inherit; }
.text-note-like-button:focus-visible, .text-note-dislike-button:focus-visible, .text-note-reply-link:focus-visible { outline: 3px solid #111; outline-offset: 2px; }
.text-note-like-button { background-color: #66cb68; background-image: url("/media/text/ui/action-happy.png") !important; background-position: center 4px; background-size: 42px 42px; }
.text-note-dislike-button { background-color: #ff6a55; background-image: url("/media/text/ui/action-angry.png") !important; background-position: center 4px; background-size: 42px 42px; }
.text-note-like-button:hover { background-color: #89dc8a; box-shadow: inset 0 0 0 2px #168216; }
.text-note-dislike-button:hover { background-color: #ff8978; box-shadow: inset 0 0 0 2px #bb1c1c; }
.text-note-reply-button { width: 57px; height: 54px; background-image: url(/media/text/ui/action-reply.png) !important; background-size: 54px 54px; transform: rotate(9deg); }
.text-note-reply-button:hover { filter: saturate(1.12) contrast(1.04); }
.text-note-vote-count, .text-note-reply-count { position: absolute; right: 22px; bottom: 2px; display: flex; justify-content: center; align-items: center; min-width: 22px; height: 22px; box-sizing: border-box; padding: 0 5px; border: 1px solid rgba(0, 0, 0, .66); border-radius: 999px; background: #fff; color: #111; font-size: 13px; font-weight: 800; line-height: 1; box-shadow: 0 1px 2px rgba(0, 0, 0, .28); pointer-events: none; }
.text-note-like-button .text-note-vote-count { border-color: #168216; background: #eaffea; color: #075a07; }
.text-note-dislike-button .text-note-vote-count { border-color: #bb1c1c; background: #fff0ea; color: #8d160a; }
.text-note-reply-count { right: 16px; top: 10px; bottom: auto; width: 30px; min-width: 30px; height: 30px; padding: 0; border-color: #6f98d8; border-radius: 50%; background: #d7e9ff; color: #06134a; transform: rotate(-9deg); }
.text-note-vote-count:empty, .text-note-reply-count:empty { display: none; }
.text-note-liked { border-color: #168216; box-shadow: 0 0 0 1px #168216; }
.text-note-disliked { border-color: #bb1c1c; box-shadow: 0 0 0 1px #bb1c1c; }
.text-note-like-button:disabled, .text-note-dislike-button:disabled { cursor: not-allowed; }

/*
Text spam response
*/

.text-spam-warning { width: min(100%, 440px); box-sizing: border-box; margin: 0 auto 12px; padding: 8px; border: 1px solid var(--postngone-accent); border-radius: 6px; background: #fff; }
.text-spam-warning-image { display: block; width: min(100%, 300px); height: auto; margin: 0 auto; }
.text-spam-page { min-height: 100vh; background: #000; }
.text-spam-response { width: min(760px, calc(100% - 32px)); box-sizing: border-box; margin: clamp(28px, 8vw, 84px) auto; padding: clamp(18px, 4vw, 34px); border: 2px solid var(--postngone-accent); border-radius: 9px; background: #0d0d0d; color: #fff; text-align: center; }
.text-spam-title { margin: 0 0 8px; color: var(--postngone-accent); font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1; }
.text-spam-copy { margin: 0 0 18px; color: #fff; font-size: 17px; line-height: 1.4; }
.text-spam-response-image { display: block; width: min(100%, 640px); height: auto; margin: 0 auto 20px; border: 1px solid var(--postngone-accent); }
.text-spam-return-link { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; box-sizing: border-box; padding: 9px 16px; border: 2px solid var(--postngone-accent); border-radius: 6px; background: #111; color: var(--postngone-accent); font-weight: 800; text-decoration: none; }
.text-spam-return-link:hover, .text-spam-return-link:focus-visible { background: var(--postngone-accent); color: #111; }
.text-spam-return-link:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/*
Text reply detail page
*/

.text-reply-page { background: #000; }
.text-reply-detail { width: min(920px, calc(100% - 32px)); margin: 18px auto 24px; display: grid; gap: 28px; }
.text-reply-overview, .text-reply-missing { width: min(760px, 100%); margin: 0 auto; text-align: center; }
.text-reply-kicker { margin: 12px 0 6px; color: var(--postngone-accent); font-size: 14px; font-weight: 800; letter-spacing: 0; text-transform: uppercase; }
.text-reply-page-title { margin: 0 0 8px; color: #fff; font-size: clamp(2.15rem, 4.8vw, 3.45rem); line-height: 1.02; }
.text-reply-page-copy { margin: 0 auto 14px; color: #fff; font-size: 17px; line-height: 1.4; }
.text-reply-toolbar { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 8px; }
.text-reply-action-link, .text-reply-copy-button { min-height: 38px; padding: 9px 13px; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; border: 1px solid rgba(255, 240, 114, 0.7); border-radius: 6px; background: rgba(255, 240, 114, 0.1); color: var(--postngone-accent); font-size: 14px; font-weight: 800; text-decoration: none; cursor: pointer; }
.text-reply-action-link:hover, .text-reply-copy-button:hover { background: var(--postngone-accent); color: #111; text-decoration: none; }
.text-reply-copy-status { min-height: 18px; margin: 0 0 8px; color: var(--postngone-accent); font-size: 13px; font-weight: 700; text-align: center; }
.text-reply-copy-status:empty { display: none; }
.text-reply-original-note, .text-reply-response-note { position: relative; width: min(760px, 100%); margin: 0 auto; box-sizing: border-box; color: #111; background: #fffa90; box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35); }
.text-reply-original-note { padding: clamp(24px, 4vw, 42px); border: 1px solid rgba(80, 70, 0, 0.34); transform: rotate(-0.5deg); }
.text-reply-note-pin { position: absolute; top: -25px; left: 50%; width: 72px; height: 72px; object-fit: contain; transform: translateX(-50%); pointer-events: none; }
.text-reply-note-head { padding-bottom: 14px; border-bottom: 2px solid rgba(0, 0, 0, 0.24); }
.text-reply-note-eyebrow { margin: 0 0 6px; color: rgba(0, 0, 0, 0.68); font-size: 13px; font-weight: 800; text-transform: uppercase; text-align: left; }
.text-reply-note-title { margin: 0; color: #111; font-size: clamp(1.7rem, 4vw, 2.65rem); line-height: 1.08; text-align: left; overflow-wrap: anywhere; }
.text-reply-note-body { margin: 18px 0 0; color: #111; font-size: clamp(1.08rem, 2.2vw, 1.32rem); font-weight: 700; line-height: 1.55; text-align: left; overflow-wrap: anywhere; }
.text-reply-note-footer { margin-top: 24px; padding-top: 12px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-top: 1px solid rgba(0, 0, 0, 0.2); color: rgba(0, 0, 0, 0.62); font-size: 13px; }
.text-reply-vote-bar { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; }
.text-reply-like-button, .text-reply-dislike-button { width: 92px; height: 82px; padding: 0; position: relative; border: 2px solid rgba(0, 0, 0, 0.62); border-radius: 9px; background-position: center 6px; background-repeat: no-repeat; background-size: 72px 72px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.28), 0 4px 8px rgba(0, 0, 0, 0.22); cursor: pointer; transition: background-color 0.16s ease, box-shadow 0.16s ease; }
.text-reply-like-button { background-color: #66cb68; background-image: url("/media/text/ui/action-happy.png"); }
.text-reply-dislike-button { background-color: #ff6a55; background-image: url("/media/text/ui/action-angry.png"); }
.text-reply-like-button:hover, .text-reply-like-button.is-selected { border-color: #168216; background-color: #89dc8a; box-shadow: inset 0 0 0 3px rgba(22, 130, 22, 0.45), 0 5px 10px rgba(0, 0, 0, 0.28); }
.text-reply-dislike-button:hover, .text-reply-dislike-button.is-selected { border-color: #bb1c1c; background-color: #ff8978; box-shadow: inset 0 0 0 3px rgba(187, 28, 28, 0.45), 0 5px 10px rgba(0, 0, 0, 0.28); }
.text-reply-vote-count { position: absolute; right: -6px; bottom: -7px; display: flex; justify-content: center; align-items: center; min-width: 30px; height: 30px; box-sizing: border-box; padding: 0 7px; border: 1px solid rgba(0, 0, 0, 0.7); border-radius: 999px; background: #111; color: var(--postngone-accent); font-size: 14px; font-weight: 900; line-height: 1; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.32); }
.text-reply-vote-count:empty { display: none; }
.text-reply-vote-error { flex: 0 0 100%; margin: 0; padding: 5px 7px; border: 1px solid #8d160a; border-radius: 4px; background: #fff0ea; color: #8d160a; font-size: 13px; font-weight: 800; line-height: 1.3; text-align: center; }
.text-reply-vote-error:empty { display: none; }
.text-reply-like-button:disabled, .text-reply-dislike-button:disabled { cursor: not-allowed; }
.text-reply-thread { width: min(760px, 100%); margin: 8px auto 0; display: grid; gap: 14px; scroll-margin-top: 20px; }
.text-reply-thread-head { text-align: center; }
.text-reply-section-title { margin: 0; color: #fff; font-size: clamp(1.7rem, 4vw, 2.3rem); line-height: 1.1; }
.text-reply-empty { margin: 0; padding: 18px; border: 1px solid rgba(255, 240, 114, 0.5); border-radius: 7px; color: var(--postngone-accent); background: rgba(255, 240, 114, 0.08); text-align: center; }
.text-reply-response-note { padding: 18px 20px; background: #fff7a6; transform: rotate(0.25deg); }
.text-reply-response-note:nth-of-type(even) { transform: rotate(-0.2deg); }
.text-reply-response-head, .text-reply-response-footer { display: flex; justify-content: space-between; gap: 12px; color: rgba(0, 0, 0, 0.62); font-size: 13px; font-weight: 800; }
.text-reply-number { color: rgba(0, 0, 0, 0.72); }
.text-reply-date { color: rgba(0, 0, 0, 0.54); }
.text-reply-response-title { margin: 10px 0 0; color: #111; font-size: 1.35rem; line-height: 1.15; text-align: left; overflow-wrap: anywhere; }
.text-reply-response-footer { margin-top: 16px; padding-top: 10px; border-top: 1px solid rgba(0, 0, 0, 0.16); }
@media (max-width: 700px) {
    .text-reply-page { margin-top: 6.75rem; }
    .text-reply-detail { width: min(100% - 24px, 760px); margin-top: 12px; gap: 20px; }
    .text-reply-page-title { font-size: clamp(2rem, 9vw, 2.65rem); }
    .text-reply-original-note, .text-reply-response-note { transform: none; }
    .text-reply-note-footer, .text-reply-response-head, .text-reply-response-footer { flex-direction: column; align-items: flex-start; }
    .text-reply-vote-bar { justify-content: center; }
}
@media (max-width: 520px) {
    .text-note-card { flex: 0 0 min(350px, calc(100vw - 24px)); width: min(350px, calc(100vw - 24px)); max-width: calc(100vw - 24px); margin: 12px auto; }
    .text-reply-toolbar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .text-reply-action-link, .text-reply-copy-button { width: auto; min-height: 42px; padding: 8px 10px; }
    .text-reply-like-button, .text-reply-dislike-button { width: 84px; height: 76px; background-size: 66px 66px; }
}
