/* Poster-wall theme for personal.html#quotes -- active only while
   body.theme-quotes is set by assets/personal-quotes.js. */

html[data-ak-sky] body.theme-quotes,
body.theme-quotes { background: #0b0b0d !important; }
body.theme-quotes .ak-sky { display: none !important; }
body.theme-quotes .hero-title,
body.theme-quotes .hero-sub,
body.theme-quotes #categoryViewTitle,
body.theme-quotes .category-view-header .view-toggle,
body.theme-quotes .category-view-header select,
body.theme-quotes .gallery-section[data-category="quotes"],
body.theme-quotes .gallery-wrap > .pcms-admin-only[onclick="openDraftModal()"] { display: none !important; }

#quotesView { display: none; }
body.theme-quotes #quotesView { display: block; }

.qp-head { margin: 8px 0 28px; }
.qp-kicker { color: #9a9aa6; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.qp-title { font-family: var(--font-head, 'Outfit', 'Sarabun', sans-serif); font-weight: 800; font-size: clamp(2rem, 6vw, 3.6rem); line-height: 1.05; margin: 6px 0 8px; color: #fff; letter-spacing: -0.02em; }
.qp-sub { margin: 0; color: #9a9aa6; font-size: .95rem; }
.qp-empty { color: #9a9aa6; }

/* Masonry-ish wall: CSS columns keep posters their natural heights. */
.qp-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; align-items: start; }
.qp-card {
    perspective: 1400px; outline: none;
    display: block;
}
.qp-card[data-has-note="1"] { cursor: pointer; }
.qp-inner {
    position: relative; transition: transform .6s cubic-bezier(.2,.7,.2,1); transform-style: preserve-3d;
    min-height: 380px;
}
.qp-card.is-l .qp-inner { min-height: 420px; }
.qp-card.is-m .qp-inner, .qp-card.is-s .qp-inner { min-height: 460px; }
.qp-card.is-flipped .qp-inner { transform: rotateY(180deg); }
.qp-face {
    position: absolute; inset: 0; border-radius: 14px; overflow: hidden;
    backface-visibility: hidden; -webkit-backface-visibility: hidden;
    display: flex; flex-direction: column; justify-content: flex-end;
    box-shadow: 0 18px 40px rgba(0,0,0,0.45);
}
.qp-front { background: #16161a; padding: 26px 24px 22px; }
.qp-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(.8); transition: filter .4s ease, transform .6s ease; }
.qp-card:hover .qp-photo, .qp-card:focus-visible .qp-photo { filter: grayscale(.2) contrast(1.05) brightness(.8); transform: scale(1.03); }
.qp-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,11,13,0.15) 0%, rgba(11,11,13,0.55) 45%, rgba(11,11,13,0.96) 100%); }
.qp-mark {
    position: absolute; top: 6px; left: 18px; font-family: Georgia, 'Times New Roman', serif; font-size: 7rem; line-height: 1;
    color: var(--qp-accent); opacity: .9;
}
.qp-quote {
    position: relative; margin: 0 0 16px; color: #fff; font-family: var(--font-head, 'Outfit', 'Sarabun', sans-serif); font-weight: 700;
    line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance;
}
.qp-card.is-xl .qp-quote { font-size: 2.1rem; }
.qp-card.is-l .qp-quote { font-size: 1.7rem; }
.qp-card.is-m .qp-quote { font-size: 1.35rem; }
.qp-card.is-s .qp-quote { font-size: 1.1rem; line-height: 1.25; }
.qp-who { position: relative; display: flex; align-items: center; gap: 10px; color: #e8e8ee; font-weight: 700; font-size: .95rem; }
.qp-bar { width: 26px; height: 3px; border-radius: 2px; background: var(--qp-accent); }
.qp-flip-hint { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.12); color: #fff; font-size: 1rem; }

.qp-back {
    transform: rotateY(180deg); background: #16161a; border-top: 4px solid var(--qp-accent);
    padding: 24px; justify-content: flex-start; overflow-y: auto;
}
.qp-back-who { color: var(--qp-accent); font-weight: 800; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.qp-note { color: #d6d6de; font-size: .95rem; line-height: 1.65; flex: 1; }
.qp-note p { margin: 0 0 .8em; }
.qp-note img { max-width: 100%; border-radius: 8px; }
.qp-back-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.qp-btn {
    background: linear-gradient(135deg, #684812 0%, #3b2708 100%);
    color: #f8fafc;
    border: 1.5px solid rgba(229, 197, 134, 0.78);
    border-radius: 500px; padding: 7px 16px;
    font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.qp-btn:hover { transform: translateY(-1px); border-color: #f0d8a2; box-shadow: 0 6px 16px rgba(229, 197, 134, 0.22); }
.qp-flip-back { color: #9a9aa6; font-size: .8rem; }
.qp-card:focus-visible .qp-face, .qp-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
    .qp-inner { transition: none; }
    .qp-photo { transition: none; }
}
@media (max-width: 720px) {
    .qp-wall { grid-template-columns: 1fr; }
    .qp-inner, .qp-card.is-l .qp-inner, .qp-card.is-m .qp-inner, .qp-card.is-s .qp-inner { min-height: 360px; }
    .qp-card.is-xl .qp-quote { font-size: 1.8rem; }
    .qp-card.is-l .qp-quote { font-size: 1.5rem; }
}

/* v2: rating stars on each poster + sort control */
.qp-sort { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; color: #e2dacb; font-size: .88rem; font-weight: 700; }
.qp-sort select { background: linear-gradient(180deg, #fffdf9 0%, #f4ead8 100%); color: #1b2436; border: 1.5px solid #d4b27c; border-radius: 500px; padding: 7px 14px; font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.28); color-scheme: light; }
.qp-sort select:focus-visible { outline: 2px solid #e5c586; outline-offset: 2px; }
.qp-stars {
    position: absolute; top: 18px; right: 18px; z-index: 1; display: inline-flex; gap: 1px;
    padding: 4px 9px; border-radius: 500px; background: rgba(11,11,13,0.6); backdrop-filter: blur(4px);
    font-size: .8rem; line-height: 1;
}
.qp-stars i { font-style: normal; color: rgba(255,255,255,0.25); }
.qp-stars i.on { color: #f5c542; }
.qp-stars.is-top { box-shadow: 0 0 0 1px rgba(245,197,66,0.6), 0 0 16px rgba(245,197,66,0.3); }

/* Themed add button (admin) */
.qp-add { display: inline-flex; align-items: center; gap: 6px; margin: 12px 12px 0 0; padding: 10px 22px; border-radius: 2px; border: 0; background: #f6f1e6; color: #111; cursor: pointer;
    font-family: var(--font-head, 'Outfit', 'Sarabun', sans-serif); font-size: 1.15rem; font-weight: 700; letter-spacing: .04em; box-shadow: 5px 5px 0 #e0b24a; transition: transform .15s ease, box-shadow .15s ease; }
.qp-add:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 #e0b24a; }
.qp-add:focus-visible { outline: 2px solid #c79a2e; outline-offset: 3px; }
/* === AUDIFLIX Semantic Jewel-Tone Multi-Tab & Filter Pill System (Audi 2026-10-22) === */
:is(.qp-cats button, .qp-tabs button) {
  color: #f8fafc !important;
  font-family: 'Plus Jakarta Sans', 'Sarabun', sans-serif !important;
  font-weight: 700 !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, filter 0.18s ease !important;
  
}
:is(.qp-cats button, .qp-tabs button) :is(b, strong) {
  color: #ffffff !important;
}
:is(.qp-cats button, .qp-tabs button) small {
  color: rgba(255, 255, 255, 0.86) !important;
}
:is(.qp-cats button, .qp-tabs button):nth-child(6n+1) {
  background: linear-gradient(135deg, #4f3812 0%, #2d1f09 100%) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.72) !important;
  color: #fef3c7 !important;
}
:is(.qp-cats button, .qp-tabs button):nth-child(6n+2) {
  background: linear-gradient(135deg, #571d40 0%, #331025 100%) !important;
  border: 1.5px solid rgba(244, 114, 182, 0.72) !important;
  color: #fce7f3 !important;
}
:is(.qp-cats button, .qp-tabs button):nth-child(6n+3) {
  background: linear-gradient(135deg, #164e3e 0%, #0d3126 100%) !important;
  border: 1.5px solid rgba(16, 185, 129, 0.72) !important;
  color: #d1fae5 !important;
}
:is(.qp-cats button, .qp-tabs button):nth-child(6n+4) {
  background: linear-gradient(135deg, #4c2263 0%, #2d123b 100%) !important;
  border: 1.5px solid rgba(168, 85, 247, 0.72) !important;
  color: #f3e8ff !important;
}
:is(.qp-cats button, .qp-tabs button):nth-child(6n+5) {
  background: linear-gradient(135deg, #542912 0%, #301608 100%) !important;
  border: 1.5px solid rgba(249, 115, 22, 0.76) !important;
  color: #ffedd5 !important;
}
:is(.qp-cats button, .qp-tabs button):nth-child(6n+6) {
  background: linear-gradient(135deg, #541c29 0%, #310f17 100%) !important;
  border: 1.5px solid rgba(244, 63, 94, 0.72) !important;
  color: #ffe4e6 !important;
}
:is(.qp-cats button, .qp-tabs button):nth-child(6n+1):is(:hover, :focus-visible, .active, .is-active, .is-on, .on, [aria-selected="true"], [aria-pressed="true"]) {
  background: linear-gradient(135deg, #684812 0%, #3b2708 100%) !important;
  border-color: #fde68a !important;
  color: #fffbeb !important;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.42), 0 8px 20px rgba(0, 0, 0, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
  transform: translateY(-1.5px);
}
:is(.qp-cats button, .qp-tabs button):nth-child(6n+2):is(:hover, :focus-visible, .active, .is-active, .is-on, .on, [aria-selected="true"], [aria-pressed="true"]) {
  background: linear-gradient(135deg, #6b214d 0%, #3d122c 100%) !important;
  border-color: #f9a8d4 !important;
  color: #fdf2f8 !important;
  box-shadow: 0 0 18px rgba(236, 72, 153, 0.42), 0 8px 20px rgba(0, 0, 0, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
  transform: translateY(-1.5px);
}
:is(.qp-cats button, .qp-tabs button):nth-child(6n+3):is(:hover, :focus-visible, .active, .is-active, .is-on, .on, [aria-selected="true"], [aria-pressed="true"]) {
  background: linear-gradient(135deg, #17594c 0%, #0d352d 100%) !important;
  border-color: #a7f3d0 !important;
  color: #ecfdf5 !important;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.38), 0 8px 20px rgba(0, 0, 0, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
  transform: translateY(-1.5px);
}
:is(.qp-cats button, .qp-tabs button):nth-child(6n+4):is(:hover, :focus-visible, .active, .is-active, .is-on, .on, [aria-selected="true"], [aria-pressed="true"]) {
  background: linear-gradient(135deg, #682e87 0%, #3e1952 100%) !important;
  border-color: #e9d5ff !important;
  color: #faf5ff !important;
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.42), 0 8px 20px rgba(0, 0, 0, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
  transform: translateY(-1.5px);
}
:is(.qp-cats button, .qp-tabs button):nth-child(6n+5):is(:hover, :focus-visible, .active, .is-active, .is-on, .on, [aria-selected="true"], [aria-pressed="true"]) {
  background: linear-gradient(135deg, #753918 0%, #45200b 100%) !important;
  border-color: #fdba74 !important;
  color: #fff7ed !important;
  box-shadow: 0 0 18px rgba(249, 115, 22, 0.42), 0 8px 20px rgba(0, 0, 0, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
  transform: translateY(-1.5px);
}
:is(.qp-cats button, .qp-tabs button):nth-child(6n+6):is(:hover, :focus-visible, .active, .is-active, .is-on, .on, [aria-selected="true"], [aria-pressed="true"]) {
  background: linear-gradient(135deg, #682132 0%, #3d121d 100%) !important;
  border-color: #fecdd3 !important;
  color: #fff1f2 !important;
  box-shadow: 0 0 18px rgba(244, 63, 94, 0.38), 0 8px 20px rgba(0, 0, 0, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
  transform: translateY(-1.5px);
}
