/* =============================================
   PROOF POSTS PAGE STYLES
   ============================================= */

.proof-posts-dashboard {
  max-width: 680px;
  margin: 0 auto;
  padding: 16px 16px 120px;
}

/* ---- Page Header ---- */
.pp-back-row { margin-bottom: 18px; }

.pp-back-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #a08060;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}
.pp-back-link:hover { color: #BB5D4C; }

.pp-page-header { margin-bottom: 24px; }

.pp-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #BB5D4C;
  margin-bottom: 5px;
}

.pp-title {
  font-size: 26px;
  font-weight: 700;
  color: #2c1f17;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.pp-subtitle {
  font-size: 14px;
  color: #7a6855;
  line-height: 1.6;
  margin: 0;
}

/* ---- Insight Card ---- */
.pp-insight-card {
  background: #f5efe6;
  border: 1px solid #d4c5b0;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 24px;
}

.pp-insight-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #BB5D4C;
  margin-bottom: 10px;
}

.pp-insight-text {
  font-size: 13px;
  color: #4a3728;
  line-height: 1.65;
}

.pp-insight-meta {
  font-size: 11px;
  color: #a08060;
  margin-top: 10px;
}

/* ---- Sections ---- */
.pp-section {
  margin-bottom: 28px;
}

.pp-section--dud {
  margin-bottom: 32px;
}

.pp-section-header {
  margin-bottom: 12px;
}

.pp-section-title {
  font-size: 16px;
  font-weight: 700;
  color: #2c1f17;
  margin-bottom: 3px;
}

.pp-section-header--banger .pp-section-title { color: #2c1f17; }
.pp-section-header--dud    .pp-section-title { color: #7a6855; }

.pp-section-sub {
  font-size: 12px;
  color: #a08060;
}

/* ---- Upload Zones ---- */
.pp-upload-zone {
  border: 2px dashed #d4c5b0;
  border-radius: 12px;
  background: #faf6f1;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: 14px;
}

.pp-upload-zone:hover,
.pp-upload-zone.drag-over {
  border-color: #BB5D4C;
  background: #f8f0e8;
}

.pp-upload-zone--dud {
  border-color: #ccc4ba;
  background: #f7f4f0;
}

.pp-upload-zone--dud:hover,
.pp-upload-zone--dud.drag-over {
  border-color: #9a8878;
  background: #f0ece6;
}

.pp-upload-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px 16px;
  color: #a08060;
  text-align: center;
  pointer-events: none;
}

.pp-upload-text {
  font-size: 13px;
  font-weight: 600;
  color: #7a6855;
}

.pp-upload-hint {
  font-size: 11px;
  color: #b5a090;
}

.pp-upload-zone--dud .pp-upload-text { color: #9a8878; }
.pp-upload-zone--dud .pp-upload-hint { color: #c0b4a8; }

/* ---- Gallery header ---- */
.pp-gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.pp-gallery-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pp-gallery-label {
  font-size: 11px;
  font-weight: 600;
  color: #7a6855;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pp-dl-all-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 1px solid #c4b5a0;
  border-radius: 6px;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 500;
  color: #7a6855;
  cursor: pointer;
  line-height: 1;
}
.pp-dl-all-btn:hover { background: #e8ddd0; color: #4a3728; border-color: #a08060; }

.pp-gallery-legend {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #a08060;
}

.pp-legend-active { font-weight: 600; color: #4a3728; }
.pp-legend-divider { color: #c4b5a0; }

/* ---- Gallery Grid ---- */
.pp-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 6px;
}

@media (max-width: 400px) {
  .pp-gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Thumbnails ---- */
.pp-thumb {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  cursor: pointer;
  background: #e8ddd0;
  animation: ppFadeIn 0.22s ease both;
}

.pp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pp-thumb.is-active  { opacity: 1; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.pp-thumb.is-inactive { opacity: 0.3; animation: none; }
.pp-thumb.is-inactive:hover { opacity: 0.52; }

/* X button */
.pp-thumb-remove {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 20px;
  height: 20px;
  background: rgba(170, 35, 25, 0.85);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-family: inherit;
  transition: background 0.15s, transform 0.12s;
  opacity: 0;
}

.pp-thumb:hover .pp-thumb-remove { opacity: 1; }
@media (hover: none) {
  .pp-thumb .pp-thumb-remove { opacity: 1; }
}
.pp-thumb-remove:hover { background: rgba(170,35,25,1); transform: scale(1.1); }

/* ---- Hover overlay (split left/right) ---- */
.pp-thumb-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  opacity: 0;
  transition: opacity 0.18s;
  border-radius: 8px;
  overflow: hidden;
  pointer-events: none;
}

.pp-thumb:hover .pp-thumb-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* On touch devices, always show overlay so zones are discoverable */
@media (hover: none) {
  .pp-thumb-overlay {
    opacity: 0.82;
    pointer-events: auto;
  }
}

.pp-thumb-half {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #fff;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.38);
  transition: background 0.15s;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  user-select: none;
}

.pp-thumb-half:hover {
  background: rgba(0, 0, 0, 0.62);
}

.pp-thumb-half:active {
  background: rgba(0, 0, 0, 0.75);
}

.pp-thumb-half--left {
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

/* ---- Lightbox ---- */
.pp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pp-lightbox.hidden { display: none; }

.pp-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 12, 8, 0.88);
  cursor: pointer;
}

.pp-lightbox-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 1;
  max-width: 90vw;
  max-height: 88vh;
}

.pp-lightbox-img {
  max-width: 90vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 16px 60px rgba(0,0,0,0.55);
  cursor: pointer;
  display: block;
  transition: opacity 0.15s;
}

.pp-lightbox-img:active { opacity: 0.88; }

/* ---- Undo toast ---- */
.pp-undo-toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: #2c1f17;
  border-radius: 12px;
  padding: 12px 18px;
  box-shadow: 0 6px 28px rgba(0,0,0,0.35);
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  white-space: nowrap;
}

.pp-undo-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.pp-undo-toast.hidden { display: none; }

.pp-undo-toast-msg {
  font-size: 13px;
  color: #d4c5b0;
}

.pp-undo-btn {
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  color: #BB5D4C;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  letter-spacing: 0.03em;
  transition: color 0.15s;
}

.pp-undo-btn:hover { color: #d4705e; }

/* ---- Empty states ---- */
.pp-empty-state--small {
  font-size: 12px;
  color: #b5a090;
  font-style: italic;
  padding: 4px 0 2px;
  display: none;
}

/* ---- Calibrate Section ---- */
.pp-calibrate-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid #e8ddd0;
  margin-top: 4px;
}

.pp-calibrate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 360px;
  padding: 15px 24px;
  background: #2c1f17;
  color: #f0e6db;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s, transform 0.12s, box-shadow 0.2s;
  box-shadow: 0 4px 18px rgba(44,31,23,0.28);
  position: relative;
  overflow: hidden;
}

.pp-calibrate-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(187,93,76,0.25) 0%, transparent 70%);
  pointer-events: none;
}

.pp-calibrate-btn:hover:not(:disabled) {
  background: #3d2b1f;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(44,31,23,0.35);
}
.pp-calibrate-btn:active:not(:disabled) { transform: translateY(0); }
.pp-calibrate-btn:disabled { opacity: 0.42; cursor: not-allowed; transform: none; box-shadow: none; }
.pp-calibrate-btn.loading .pp-calibrate-icon    { display: none; }
.pp-calibrate-btn.loading .pp-calibrate-spinner { display: block !important; }

.pp-calibrate-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(240,230,219,0.35);
  border-top-color: #f0e6db;
  border-radius: 50%;
  animation: ppSpin 0.7s linear infinite;
  flex-shrink: 0;
}

.pp-calibrate-sub {
  font-size: 12px;
  color: #a08060;
  text-align: center;
  max-width: 300px;
  line-height: 1.5;
}

.pp-last-calibrated {
  font-size: 11px;
  color: #b5a090;
  text-align: center;
}

/* ---- Paste toast ---- */
.pp-paste-toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: #2c1f17;
  border-radius: 16px;
  padding: 16px 20px 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}

.pp-paste-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.pp-paste-toast-title {
  font-size: 15px;
  font-weight: 700;
  color: #f0e6db;
  letter-spacing: 0.01em;
  text-align: center;
}

.pp-paste-toast-btns {
  display: flex;
  gap: 10px;
}

.pp-paste-choice {
  padding: 8px 22px;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: transform 0.12s, opacity 0.12s;
}
.pp-paste-choice:hover { transform: scale(1.04); }
.pp-paste-choice:active { transform: scale(0.97); }

.pp-paste-choice--banger {
  background: #BB5D4C;
  color: #fff;
}

.pp-paste-choice--dud {
  background: #5a4f47;
  color: #e0d4c8;
}

.pp-paste-dismiss {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  color: #6a5848;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
  font-family: inherit;
}
.pp-paste-dismiss:hover { color: #a08060; }

/* ---- Upload loading overlay ---- */
.pp-uploading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,253,249,0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  color: #7a6855;
}

.pp-uploading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e8ddd0;
  border-top-color: #BB5D4C;
  border-radius: 50%;
  animation: ppSpin 0.7s linear infinite;
}

/* ---- Animations ---- */
@keyframes ppFadeIn {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes ppSpin {
  to { transform: rotate(360deg); }
}
