/*************************
**  Our Tasmania Website
**  gear styles sheet
**  Build Notes: public gear list + detail, member gear screens, profile gear tab.
**  Self-contained (gx- / gear- prefixes) so it can load on any page.
**  See docs/GEAR-SECTION.md
**********************/

/* ═══ Stars ═══ */
.gear-stars { display: inline-flex; gap: .15rem; color: var(--amber); font-size: .8rem; vertical-align: middle; }
.gear-stars .fa-regular { color: var(--ink-4); }
.gear-stars--lg { font-size: 1.15rem; gap: .22rem; }

/* ═══ Status badges (member screens) ═══ */
.gear-status {
    display: inline-flex; align-items: center; gap: .4rem;
    font-family: var(--font-mono); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase;
    padding: .25rem .65rem; border-radius: 100px; white-space: nowrap;
}
.gear-status--pending  { color: var(--amber-lt); background: var(--amber-dim); }
.gear-status--approved { color: var(--emerald-lt); background: var(--emerald-dim); }
.gear-status--rejected { color: var(--danger-ink); background: var(--danger-dim); }

/* ═══ Grid + cards ═══ */
.gx-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.35rem; }
@media (max-width: 1199px) { .gx-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px)  { .gx-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; } }
@media (max-width: 479px)  { .gx-grid { grid-template-columns: 1fr; } }
.gx-grid--wide { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 767px)  { .gx-grid--wide { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 479px)  { .gx-grid--wide { grid-template-columns: 1fr; } }

.gx-card {
    display: flex; flex-direction: column; text-decoration: none; color: inherit;
    background: var(--bg-card); border-radius: var(--radius-lg); overflow: hidden;
    transition: transform .25s, box-shadow .25s;
}
.gx-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,.35); color: inherit; }
.gx-card__img { aspect-ratio: 4 / 3; background: var(--bg-3); overflow: hidden; position: relative; }
.gx-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.gx-card:hover .gx-card__img img { transform: scale(1.05); }
.gx-card__ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--ink-4); font-size: 2rem; }
.gx-card__flag { position: absolute; top: .65rem; left: .65rem; }
.gx-card__body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.gx-card__cat { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: var(--survey); }
.gx-card__name { font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; line-height: 1.25; color: var(--ink); margin: 0; }
.gx-card__brand { font-size: .74rem; color: var(--ink-4); }
.gx-card__sum { font-size: .8rem; color: var(--ink-2); line-height: 1.55; margin: 0; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.gx-card__foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .25rem; font-size: .74rem; color: var(--ink-3); }

/* ═══ Category filter pills ═══ */
.gx-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.gx-pill {
    font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase;
    padding: .4rem .9rem; border-radius: 100px; text-decoration: none;
    color: var(--ink-2); background: var(--bg-card); transition: background .2s, color .2s;
}
.gx-pill:hover { color: var(--ink); background: var(--bg-3); }
.gx-pill.is-active { color: #0e100f; background: var(--survey); }
.gx-pill small { opacity: .7; margin-left: .25rem; }

/* ═══ Pagination ═══ */
.gx-pager { display: flex; justify-content: center; align-items: center; gap: .5rem; margin-top: 2.25rem; flex-wrap: wrap; }
.gx-pager a, .gx-pager span {
    font-family: var(--font-mono); font-size: .7rem; min-width: 2.2rem; text-align: center;
    padding: .45rem .7rem; border-radius: var(--radius); text-decoration: none;
    color: var(--ink-2); background: var(--bg-card);
}
.gx-pager a:hover { background: var(--bg-3); color: var(--ink); }
.gx-pager .is-current { background: var(--survey); color: #0e100f; }

/* ═══ Detail page ═══ */
.gx-detail { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2.25rem; align-items: start; }
@media (max-width: 991px) { .gx-detail { grid-template-columns: 1fr; } }
.gx-detail__img { background: var(--bg-card); border-radius: var(--radius-lg); overflow: hidden; }
.gx-detail__img img { width: 100%; display: block; }
.gx-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .82rem; color: var(--ink-3); margin: .6rem 0 1rem; }
.gx-meta i { color: var(--survey); margin-right: .3rem; }
.gx-meta a { color: var(--ink-2); }
.gx-prose { color: var(--ink-2); line-height: 1.75; font-size: .95rem; }
.gx-prose p:last-child { margin-bottom: 0; }

.gx-block { background: var(--bg-card); border-radius: var(--radius-lg); padding: 1.5rem 1.6rem; margin-bottom: 1.5rem; }
.gx-block__title {
    font-family: var(--font-mono); font-size: .64rem; letter-spacing: .2em; text-transform: uppercase;
    color: var(--ink-2); margin: 0 0 1rem; display: flex; align-items: center; gap: .6rem;
}
.gx-block__title i { color: var(--survey); }

/* Owner's take */
.gx-take__head { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; margin-bottom: 1rem; }
.gx-take__score { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--ink); line-height: 1; }
.gx-take__score small { font-size: .8rem; color: var(--ink-4); font-weight: 400; }
.gx-take__by { font-size: .78rem; color: var(--ink-3); }
.gx-take__by a { color: var(--ink-2); }
.gx-verdict { color: var(--ink-2); line-height: 1.7; font-size: .92rem; margin: 0 0 1.1rem; font-style: italic; }
.gx-proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 575px) { .gx-proscons { grid-template-columns: 1fr; } }
.gx-pc { border-radius: var(--radius); padding: 1rem 1.1rem; }
.gx-pc--pro { background: var(--emerald-xdim); }
.gx-pc--con { background: var(--danger-dim); }
.gx-pc__title { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 .6rem; }
.gx-pc--pro .gx-pc__title { color: var(--emerald-lt); }
.gx-pc--con .gx-pc__title { color: var(--danger-ink); }
.gx-pc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .45rem; }
.gx-pc li { font-size: .85rem; color: var(--ink-2); line-height: 1.5; padding-left: 1.4rem; position: relative; }
.gx-pc li::before { font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Pro', 'Font Awesome 5 Free'; font-weight: 900; position: absolute; left: 0; top: .05rem; font-size: .7rem; }
.gx-pc--pro li::before { content: '\2b'; color: var(--emerald-lt); }
.gx-pc--con li::before { content: '\f068'; color: var(--danger-ink); }

/* Where to buy */
.gx-buy { display: flex; flex-wrap: wrap; gap: .75rem; }
.gx-buy a {
    display: inline-flex; align-items: center; gap: .6rem; text-decoration: none;
    font-size: .82rem; font-weight: 600; padding: .6rem 1.1rem; border-radius: var(--radius);
    background: var(--bg-3); color: var(--ink); transition: background .2s, transform .2s;
}
.gx-buy a:hover { background: var(--survey); color: #0e100f; transform: translateY(-1px); }
.gx-buy img { height: 18px; width: auto; max-width: 90px; object-fit: contain; }
.gx-disclosure { font-size: .72rem; color: var(--ink-4); line-height: 1.5; margin: .85rem 0 0; }

/* Surveys using this gear */
.gx-surveys { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.gx-surveys a {
    display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    text-decoration: none; padding: .75rem 1rem; border-radius: var(--radius);
    background: var(--bg-3); color: var(--ink);
}
.gx-surveys a:hover { background: var(--survey-dim); }
.gx-surveys small { color: var(--ink-4); font-family: var(--font-mono); font-size: .66rem; }
.gx-surveys p { margin: .25rem 0 0; font-size: .78rem; color: var(--ink-3); flex-basis: 100%; }

/* ═══ Member screens ═══ */
.gx-mine { display: flex; flex-direction: column; gap: 1rem; }
.gx-row {
    display: grid; grid-template-columns: 84px 1fr auto; gap: 1.1rem; align-items: center;
    background: var(--bg-card); border-radius: var(--radius-lg); padding: .9rem 1.1rem;
}
@media (max-width: 767px) { .gx-row { grid-template-columns: 64px 1fr; } .gx-row__actions { grid-column: 1 / -1; } }
.gx-row__img { width: 84px; height: 64px; border-radius: var(--radius); overflow: hidden; background: var(--bg-3);
    display: flex; align-items: center; justify-content: center; color: var(--ink-4); }
.gx-row__img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767px) { .gx-row__img { width: 64px; height: 52px; } }
.gx-row__name { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1rem; margin: 0 0 .25rem; }
.gx-row__name a { color: inherit; text-decoration: none; }
.gx-row__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; font-size: .76rem; color: var(--ink-3); }
.gx-row__actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.gx-reason { margin-top: .6rem; font-size: .8rem; color: var(--danger-ink); background: var(--danger-dim);
    border-left: 3px solid var(--danger); padding: .55rem .8rem; border-radius: var(--radius); }

.gx-form-card { background: var(--bg-card); border-radius: var(--radius-lg); padding: 1.6rem 1.7rem; margin-bottom: 1.5rem; }
.gx-form-card__title {
    font-family: var(--font-mono); font-size: .65rem; letter-spacing: .2em; text-transform: uppercase;
    color: var(--ink-2); margin: 0 0 1.25rem; display: flex; align-items: center; gap: .6rem;
}
.gx-form-card__title i { color: var(--emerald-lt); }

/* Star picker: radios, highest first in the DOM so the :checked ~ trick fills leftwards */
.gx-rate { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: .2rem; }
.gx-rate input { position: absolute; opacity: 0; pointer-events: none; }
.gx-rate label { font-size: 1.7rem; color: var(--ink-4); cursor: pointer; line-height: 1; transition: color .15s, transform .15s; }
.gx-rate label:hover, .gx-rate label:hover ~ label, .gx-rate input:checked ~ label { color: var(--amber); }
.gx-rate label:hover { transform: scale(1.12); }
.gx-rate input:focus-visible + label { outline: 2px solid var(--emerald-lt); outline-offset: 3px; border-radius: 4px; }
.gx-rate-clear { background: none; border: 0; color: var(--ink-4); font-size: .72rem; margin-left: .9rem; cursor: pointer; text-decoration: underline; padding: 0; }

.gx-note { display: flex; gap: .8rem; padding: 1rem 1.2rem; border-radius: var(--radius); background: var(--amber-xdim);
    border-left: 3px solid var(--amber); color: var(--ink-2); font-size: .84rem; line-height: 1.6; margin-bottom: 1.5rem; }
.gx-note i { color: var(--amber); margin-top: .2rem; }
.gx-note strong { color: var(--amber-lt); display: block; }

.gx-empty { text-align: center; padding: 3.5rem 1.5rem; background: var(--bg-card); border-radius: var(--radius-lg); color: var(--ink-3); }
.gx-empty i { font-size: 2rem; color: var(--ink-4); display: block; margin-bottom: .8rem; }
.gx-empty strong { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: .35rem; }

/* Dashboard / profile summary strip */
.gx-mini { display: flex; flex-direction: column; gap: .5rem; }
.gx-mini a { display: flex; align-items: center; justify-content: space-between; gap: .6rem; text-decoration: none;
    font-size: .8rem; color: var(--ink-2); padding: .45rem 0; border-bottom: 1px solid var(--rule); }
.gx-mini a:last-child { border-bottom: 0; }
.gx-mini a:hover { color: var(--emerald-lt); }

/* Two-column field row on the member form */
.gx-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
@media (max-width: 575px) { .gx-two { grid-template-columns: 1fr; } }

/* Links styled as .btn-submit: the global `a:hover` colour (emerald-lt) matches the button's
   own hover background, so the label vanished. Pin the label in both themes. */
a.btn-submit, a.btn-submit:hover, a.btn-submit:focus-visible { color: #0e100f; text-decoration: none; }
html[data-theme="light"] a.btn-submit,
html[data-theme="light"] a.btn-submit:hover,
html[data-theme="light"] a.btn-submit:focus-visible { color: #fff; }

/* ═══ Where to buy — same chips as the survey notice page (.sn-gear__buy-btn) ═══
   Logos arrive as white SVGs made for a dark page, so each chip carries its own
   ground: neutral ink for unbranded shops, brand colours for the two we have.
   The brand modifier is the shop name stripped to a-z0-9 (see view-gear.php). */
.gx-buy { gap: .6rem; align-items: center; }
.gx-buy a.gx-buy__btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 100px; height: 36px; padding: 0 .75rem;
    border-radius: var(--radius-sm, 6px);
    background: var(--ink); color: var(--bg);
    font-family: var(--font-mono); font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
    text-decoration: none; transform: none;
    transition: filter .15s, transform .15s;
}
.gx-buy a.gx-buy__btn:hover { filter: brightness(1.25); transform: translateY(-1px); color: var(--bg); background: var(--ink); }
.gx-buy .gx-buy__btn img { max-width: 100%; max-height: 20px; width: auto; height: auto; display: block; }
.gx-buy a.gx-buy__btn--aliexpress, .gx-buy a.gx-buy__btn--aliexpress:hover { background: #e62e04; color: #fff; }
.gx-buy a.gx-buy__btn--amazon, .gx-buy a.gx-buy__btn--amazon:hover { background: #ffd814; color: #0e100f; }
.gx-buy .gx-buy__btn--amazon img { filter: brightness(0); }
html[data-theme="light"] .gx-buy a.gx-buy__btn { box-shadow: 0 2px 8px rgba(55,45,28,.18); }
@media (prefers-reduced-motion: reduce) { .gx-buy a.gx-buy__btn { transition: none; } .gx-buy a.gx-buy__btn:hover { transform: none; } }

/* Plain text links inside gear blocks: the site's green, no default underline */
.gx-meta a, .gx-take__by a, .gx-disclosure a, .gx-prose a { color: var(--emerald-lt); text-decoration: none; }
.gx-meta a:hover, .gx-take__by a:hover, .gx-disclosure a:hover, .gx-prose a:hover { color: var(--emerald); text-decoration: underline; }
html[data-theme="light"] .gx-meta a, html[data-theme="light"] .gx-take__by a,
html[data-theme="light"] .gx-disclosure a, html[data-theme="light"] .gx-prose a { color: var(--emerald-drk); }

/* A <button class="btn-ghost"> picks up the browser's default border and line-height, which an
   <a class="btn-ghost"> does not — so Remove sat beside Edit with a white outline. Match the link. */
button.btn-ghost { border: 0; line-height: inherit; cursor: pointer; }

/* Destructive variant (Remove): red tint like .btn-warn, with a hover that keeps the label readable. */
.btn-ghost.gx-btn-danger { background: var(--danger-dim); color: var(--danger-ink); }
.btn-ghost.gx-btn-danger:hover { background: var(--danger-rule); color: #fff; }
html[data-theme="light"] .btn-ghost.gx-btn-danger { background: rgba(200,60,60,.12); color: #9b2c2c; border-color: transparent; }
html[data-theme="light"] .btn-ghost.gx-btn-danger:hover { background: #9b2c2c; color: #fff; border-color: transparent; }

/* ═══ More about this gear — admin-added links (reviews, videos, own sites) ═══ */
.gx-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.gx-links a {
    display: flex; align-items: center; gap: .8rem; text-decoration: none;
    padding: .7rem 1rem; border-radius: var(--radius); background: var(--bg-3); color: var(--ink);
    transition: background .2s, transform .15s;
}
.gx-links a:hover { background: var(--emerald-dim); color: var(--ink); transform: translateY(-1px); }
.gx-links i { color: var(--survey); width: 1.1rem; text-align: center; flex: none; }
.gx-links__title { flex: 1; font-size: .88rem; font-weight: 500; }
.gx-links small { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4); white-space: nowrap; }
html[data-theme="light"] .gx-links a:hover { color: var(--ink); }
