/* =====================================================
   appreciate.css – "Appreciate" button + client feedback modal
   Used by: index.html, case-studies.html
   ===================================================== */

/* three buttons in one card row: Visit | Appreciate | View */
.cc-body:has(.cc-appreciate){container-type:inline-size}
.cc-actions:has(.cc-appreciate){display:flex;flex-direction:row;flex-wrap:nowrap;gap:.4rem;justify-content:space-between}
.cc-actions:has(.cc-appreciate) .cc-btn{flex:1 1 auto;justify-content:center;text-align:center;font-size:.78rem;padding:.5rem .4rem;white-space:nowrap}
.cc-actions:has(.cc-appreciate) .cc-btn i{display:none}
.cc-actions:has(.cc-appreciate) .cc-appreciate i{display:inline-block}
/* narrow cards: stack all three full width (same order) */
@container (max-width:305px){
  .cc-actions:has(.cc-appreciate){flex-direction:column;align-items:stretch}
  .cc-actions:has(.cc-appreciate) .cc-btn{width:100%}
}
@supports not (container-type:inline-size){.cc-actions{flex-wrap:wrap}}
.cc-appreciate{display:inline-flex;align-items:center;gap:.3rem;
  color:var(--gold-t);background:#FFF8EA;border:1px solid rgba(192,138,46,.45);
}
.cc-appreciate:hover,.cc-appreciate:focus-visible{
  color:#fff;background:var(--gold);border-color:var(--gold);
}
.cc-appreciate i{font-size:.95em}

/* modal */
.appr-modal .modal-content{border:0;border-radius:16px;overflow:hidden;box-shadow:0 24px 60px rgba(18,33,27,.25)}
.appr-modal .modal-header{
  background:var(--green-d);color:#fff;border:0;padding:1.1rem 1.4rem;
  align-items:flex-start
}
.appr-modal .modal-header .sec-tag{color:var(--gold-l);border-color:rgba(255,255,255,.35);margin-bottom:.5rem}
.appr-modal .modal-title{color:#fff;font-size:1.25rem;margin:0}
.appr-modal .btn-close{filter:invert(1) grayscale(1);opacity:.8;margin-top:.2rem}
.appr-modal .modal-body{padding:1.25rem 1.4rem 1.4rem;background:var(--paper);max-height:65vh;overflow-y:auto}

.appr-list{display:grid;gap:14px}
.appr-card{
  position:relative;background:var(--surface);border:1px solid var(--line);
  border-radius:12px;padding:1.1rem 1.2rem 1rem 1.2rem
}
.appr-card::before{
  content:"\201C";position:absolute;top:-6px;right:14px;
  font-family:Georgia,serif;font-size:64px;line-height:1;color:rgba(192,138,46,.25)
}
.appr-text{font-size:.95rem;line-height:1.65;color:var(--ink-2);margin:0 0 .9rem;white-space:pre-line}
.appr-who{display:flex;align-items:center;gap:.7rem;border-top:1px dashed var(--line);padding-top:.8rem}
.appr-av{
  width:38px;height:38px;border-radius:50%;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
  background:var(--green);color:#fff;font-weight:700;font-size:.95rem
}
.appr-who b{display:block;font-size:.92rem;color:var(--ink)}
.appr-who small{display:block;font-size:.8rem;color:var(--slate)}

.appr-empty{text-align:center;padding:1.6rem 1rem}
.appr-empty .appr-ic{display:flex;align-items:center;justify-content:center;margin:0 auto .8rem;width:52px;height:52px;border-radius:12px;font-size:24px;background:#FFF8EA;color:var(--gold-t)}
.appr-empty p{margin:0;color:var(--slate)}
