/* ══════════════════════════════════════════════════════
   Cuponeria Community Feedback — Styles
   ══════════════════════════════════════════════════════ */

/* ── Modal: Vote Row ──────────────────────────────────── */
.ccf-feedback { margin: 10px auto; text-align: center; }
.ccf-vote-row { display: flex; align-items: center; justify-content: center; gap: 10px; }
.ccf-title { font-size: 16px; font-weight: 500; color: #333; margin: 0; }
.ccf-vote-actions { display: flex; gap: 8px; }

.ccf-vote-btn {
  font-size: 15px; font-weight: 600;
  padding: 8px 18px; border-radius: 9px;
  cursor: pointer; border: none; transition: all .15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.ccf-vote-btn:disabled { opacity: .55; cursor: not-allowed; }
.ccf-count-yes, .ccf-count-no { font-size: 13px; font-weight: 500; }

.ccf-vote-yes { color: #7ED54D; background: #F2FBED; }
.ccf-vote-yes:hover:not(:disabled) { background: #e5f5db; }
.ccf-vote-no  { color: #DD524C; background: #FCEDED; }
.ccf-vote-no:hover:not(:disabled)  { background: #f9dede; }

/* ── Modal: Forms (positive + negative) ───────────────── */
.ccf-positive-form,
.ccf-negative-form {
  background: #F6F6F6; border-radius: 12px; padding: 25px;
  margin-top: 15px; position: relative; text-align: left;
}

.ccf-form-title { font-size: 14px; font-weight: 700; color: #222; margin: 0 0 16px; text-align: left; padding-right: 70px; }

.ccf-skip-btn {
  position: absolute; top: 25px; right: 25px;
  background: none; border: none;
  color: #4CA88B; font-size: 14px; font-weight: 600;
  cursor: pointer; text-decoration: none;
}
.ccf-skip-btn:hover { color: #3a8e77; }

/* ── Persona Row ──────────────────────────────────────── */
.ccf-persona-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; margin-bottom: 10px;
  background: #fff; border: 1px solid #E5E7EC; border-radius: 8px;
  transition: opacity .15s;
}
.ccf-persona-avatar {
  width: 28px; height: 28px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; overflow: hidden;
  font-size: 16px; font-weight: 700;
}
.ccf-persona-avatar svg {
  width: 100%; height: 100%;
}
.ccf-persona-label {
  font-size: 15px; font-weight: 700; color: #222;
  flex: 1;
}
.ccf-persona-shuffle {
  font-size: 12px; color: #4CA88B; text-decoration: none;
  white-space: nowrap; cursor: pointer;
}
.ccf-persona-shuffle:hover { color: #3a8e77; text-decoration: underline; }

/* Shuffle animation */
.ccf-persona-shuffle-anim {
  opacity: 0.3;
  transition: opacity .15s;
}

.ccf-two-col { display: flex; gap: 8px; }
.ccf-two-col > * { flex: 1; }

.ccf-input {
  width: 100%; padding: 10px 12px;
  border: 1px solid #E5E7EC; border-radius: 6px;
  background: #fff; font-size: 14px; color: #333;
  box-sizing: border-box; margin-bottom: 8px;
  transition: border-color .15s;
}
.ccf-input:focus { border-color: #C1C6D1; outline: none; }
.ccf-input::placeholder { color: #6E7882; }
textarea.ccf-input { resize: vertical; min-height: 60px; }

/* ── Reason Buttons (Nu flow) ─────────────────────────── */
.ccf-reason-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }

.ccf-reason-btn {
  padding: 10px 12px; border: 1px solid #E5E7EC; border-radius: 6px;
  background: #fff; color: #6E7882; font-size: 14px; font-weight: 500;
  cursor: pointer; transition: all .15s; text-align: center;
}
.ccf-reason-btn:hover { border-color: #C1C6D1; }
.ccf-reason-btn.is-selected { border: 2px solid #4CA88B; }

/* ── Screenshot Zone ──────────────────────────────────── */
.ccf-screenshot-zone { margin-bottom: 16px; }

.ccf-screenshot-droparea {
  display: flex; align-items: center; gap: 12px;
  cursor: pointer; padding: 4px 0;
}

.ccf-screenshot-placeholder {
  width: 60px; height: 60px; flex-shrink: 0;
  background: #fff; border: 1px solid #E5E7EC; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: #6E7882; font-size: 24px;
}

.ccf-screenshot-info { display: flex; flex-direction: column; gap: 2px; }
.ccf-screenshot-trigger { color: #333; font-size: 14px; font-weight: 500; cursor: pointer; }
.ccf-screenshot-trigger .icon { color: #6E7882; margin-right: 4px; }
.ccf-screenshot-hint { color: #6E7882; font-size: 12px; }

.ccf-screenshot-preview {
  align-items: center; gap: 12px; margin-top: 8px;
  display: none;
}
.ccf-screenshot-preview.is-visible {
  display: flex;
}
.ccf-screenshot-preview img {
  max-width: 120px; max-height: 80px; border-radius: 6px; border: 1px solid #E5E7EC;
}
.ccf-remove-screenshot {
  background: none; border: none;
  color: #DD524C; font-size: 13px; font-weight: 500;
  cursor: pointer; text-decoration: underline;
}

/* ── Submit Button ────────────────────────────────────── */
.ccf-submit-btn {
  display: block; margin: 8px auto 0; padding: 12px 40px;
  border: none; border-radius: 6px;
  font-size: 15px; font-weight: 600;
  cursor: pointer; transition: all .15s;
  background: #4CA88B; color: #fff;
}
.ccf-submit-btn:hover:not(:disabled) { background: #3a8e77; }
.ccf-submit-btn:disabled { background: #ccc; color: #999; cursor: not-allowed; }

/* ── Success message inside form ─────────────────────── */
.ccf-form-success {
  text-align: center; font-size: 16px; font-weight: 600;
  color: #333;
}

/* ── Message ──────────────────────────────────────────── */
.ccf-message { text-align: center; font-size: 14px; min-height: 20px; margin-top: 8px; }
.ccf-message.is-error   { color: #b42318; }
.ccf-message.is-success { color: #027a48; }
.ccf-message:empty { display: none; }

/* ══════════════════════════════════════════════════════
   Listing: Badge Line (between article and activity)
   ══════════════════════════════════════════════════════ */
.ccf-badge-line {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px;
  font-size: 13px; font-weight: 500; color: #555;
  padding: 0;
}
.ccf-badge-item { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }

.ccf-badge-item .icon { font-size: 13px; }

/* Expiry — red icon + text */
.ccf-badge-expiry { color: #c0392b; }
.ccf-badge-expiry .icon { color: #c0392b; }
.ccf-badge-expired { opacity: 0.6; }

/* Verified — green */
.ccf-verified { color: #0d8f4f; }
.ccf-verified .icon { color: #0d8f4f; }

/* Success rate */
.ccf-badge-rate { color: #555; }
.ccf-badge-rate strong { color: #222; }
.ccf-badge-rate--up .icon { color: #0d8f4f; }
.ccf-badge-rate--down .icon { color: #c0392b; }

/* ══════════════════════════════════════════════════════
   Listing: Activity Section
   ══════════════════════════════════════════════════════ */
/* Separator between badge line and activity */
.ccf-activity-section { border-top: 1px solid #e4e7ec; padding: 15px 20px 0; margin: 15px -20px 0; }

.ccf-activity-header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ── Avatars ──────────────────────────────────────────── */
.ccf-avatars { display: flex; gap: 0; }
.ccf-avatar {
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  border: 1px solid; margin-left: -4px;
  text-transform: uppercase;
  box-sizing: border-box;
  position: relative;
}
.ccf-avatar:first-child { margin-left: 0; }
.ccf-avatar--sm { width: 24px; height: 24px; font-size: 11px; flex-shrink: 0; }

/* Avatar colors — pastel bg, darker text, tinted border */
.ccf-avatar--logged    { background: #fce8e0; color: #d4654a; border-color: #f0c4b8; } /* coral */
.ccf-avatar--nickname  { background: #e0f5f0; color: #3a9e82; border-color: #b0ddd0; } /* mint/green */
.ccf-avatar--anonymous { background: #e8e5f0; color: #6b6787; border-color: #ccc8d8; } /* lavender */
.ccf-avatar--persona { border: none; background: #fff; overflow: hidden; }
.ccf-avatar--persona svg { width: 100%; height: 100%; display: block; }
/* Timeline: both letter and persona at same size */
.ccf-avatar--sm.ccf-avatar--persona { width: 24px; height: 24px; background: #fff; overflow: hidden; }

/* ── Toggle Button ────────────────────────────────────── */
.ccf-toggle-activity {
  background: none; border: none;
  font-size: 13px; color: #555; cursor: pointer;
  display: flex; align-items: center; gap: 4px;
  padding: 4px 0;
}
.ccf-toggle-activity:hover { color: #222; }
.ccf-chevron { transition: transform .2s; }
.ccf-toggle-activity.is-open .ccf-chevron { transform: rotate(180deg); }

/* ── Stats Grid ───────────────────────────────────────── */
.ccf-section-title { font-size: 15px; font-weight: 600; color: #333; margin: 16px 0 8px; }

.ccf-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }

.ccf-stat-box {
  border: 1px solid #eee; border-radius: 9px; padding: 10px 15px;
  text-align: left; display: flex; flex-direction: column;
}
.ccf-stat-label { display: block; font-size: 12px; color: #6E7882; }
.ccf-stat-value { display: block; font-size: 24px; font-weight: 700; color: #6E7882; line-height: 1.2; letter-spacing: -1px; }
.ccf-stat-icon { margin-right: 4px; }
.ccf-stat-box--success .ccf-stat-value { color: #6E7882; }
.ccf-stat-box--success .ccf-stat-icon { color: #6E7882; }

/* ── Timeline ─────────────────────────────────────────── */
.ccf-timeline { margin-bottom: 12px; position: relative; }

.ccf-timeline-item {
  display: flex; gap: 10px; padding: 10px 0;
  position: relative;
}
.ccf-timeline-item[hidden] { display: none; }
/* Vertical connecting line */
.ccf-timeline-item::before {
  content: '';
  position: absolute;
  left: 11px; /* center of 24px avatar */
  top: 34px; /* below the avatar */
  bottom: -10px;
  width: 2px;
  background: #e8e8e8;
}
.ccf-timeline-item:last-child::before { display: none; }

.ccf-timeline-content { flex: 1; min-width: 0; }
.ccf-timeline-header { font-size: 14px; color: #333; }
.ccf-timeline-date { font-size: 13px; color: #999; }
.ccf-timeline-desc { font-size: 13px; color: #555; margin: 2px 0; line-height: 1.4; }
.ccf-timeline-comment {
  font-size: 15px; color: #444; font-style: italic; margin: 6px 0 2px;
  border: none; padding: 0; background: none;
}

.ccf-timeline-screenshot img {
  max-width: 180px; max-height: 100px;
  border-radius: 6px; border: 1px solid #eee;
  margin-top: 6px; display: block;
}

/* ── Show More ────────────────────────────────────────── */
.ccf-show-more {
  width: 100%; padding: 8px;
  background: none; border: 1px solid #ddd; border-radius: 8px;
  color: #666; font-size: 13px; cursor: pointer;
  transition: all .15s;
}
.ccf-show-more:hover { border-color: #999; color: #333; }
.ccf-more-count { color: #999; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 600px) {
  .ccf-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .ccf-reason-list { grid-template-columns: 1fr; }
  .ccf-two-col { flex-direction: column; }
  .ccf-badge-line { font-size: 12px; }
}
