/* ===== COMMENTS.CSS — تولیدی بهروزی===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:    #C9A84C;
  --gold-lt: #E8CC7A;
  --gold-dk: #9B7D32;
  --black:   #0A0A0A;
  --dark:    #1A1A1A;
  --mid:     #2C2C2C;
  --gray:    #888;
  --border:  rgba(0,0,0,0.09);
  --light:   #F7F5F1;
  --white:   #fff;
  --ease:    cubic-bezier(0.4,0,0.2,1);
  --radius:  14px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  background: var(--light);
  color: var(--dark);
  direction: rtl;
  overflow-x: hidden;
  min-height: 100vh;
}
a { text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea { font-family: inherit; }

/* ===== HERO ===== */
.c-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--mid) 100%);
  padding: 2rem 1.5rem 1.75rem;
  text-align: center;
  position: relative; overflow: hidden;
}
.c-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(201,168,76,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.c-hero-tag {
  display: inline-block;
  font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.35);
  padding: 0.28rem 0.8rem;
  margin-bottom: 0.85rem;
}
.c-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  color: var(--white); font-weight: 700;
  margin-bottom: 0.5rem; line-height: 1.3;
}
.c-hero-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.7; max-width: 480px; margin: 0 auto;
}
.c-hero-stats {
  display: flex; justify-content: center; align-items: center;
  gap: 1.75rem; margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.c-stat { display: flex; flex-direction: column; gap: 0.15rem; }
.c-stat strong { font-size: 1.25rem; font-weight: 800; color: var(--gold); }
.c-stat span { font-size: 0.68rem; color: rgba(255,255,255,0.4); }
.c-stat-sep { width: 1px; height: 28px; background: rgba(255,255,255,0.1); }

/* ===== MAIN ===== */
.c-main {
  max-width: 860px; margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
  display: flex; flex-direction: column; gap: 2.5rem;
}

/* ===== FORM ===== */
.c-form-wrap {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.07);
  overflow: hidden;
}
.c-form {
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.c-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
}
.c-field {
  display: flex; flex-direction: column; gap: 0.4rem;
}
.c-field label {
  font-size: 0.78rem; font-weight: 600;
  color: var(--gray);
}
.c-field input,
.c-field textarea {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0.72rem 0.9rem;
  font-size: 0.875rem;
  direction: rtl; outline: none;
  background: #fafafa;
  color: var(--dark);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  width: 100%;
}
.c-field input:focus,
.c-field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
  background: var(--white);
}
.c-field textarea { resize: vertical; min-height: 90px; }

/* Stars */
.c-stars {
  display: flex; flex-direction: row-reverse;
  gap: 0.25rem;
}
.c-stars input { display: none; }
.c-stars label {
  font-size: 1.4rem; color: #ddd; cursor: pointer;
  transition: color 0.15s, transform 0.15s;
  line-height: 1;
}
.c-stars input:checked ~ label,
.c-stars label:hover,
.c-stars label:hover ~ label { color: var(--gold); }
.c-stars label:hover { transform: scale(1.15); }

/* Error */
.c-error {
  display: none;
  background: rgba(220,38,38,0.07);
  border: 1px solid rgba(220,38,38,0.25);
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  font-size: 0.8rem; color: #dc2626;
  align-items: center; gap: 0.4rem;
}
.c-error.show { display: flex; }

/* Submit */
.c-submit {
  background: var(--dark);
  color: var(--white);
  padding: 0.9rem;
  border-radius: 10px;
  font-size: 0.9rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  transition: background 0.2s, transform 0.15s;
  width: 100%;
}
.c-submit:hover { background: var(--gold); color: var(--black); }
.c-submit:active { transform: scale(0.98); }
.c-submit.loading { opacity: 0.65; pointer-events: none; }

/* Success */
.c-success {
  display: none;
  background: rgba(22,163,74,0.08);
  border: 1px solid rgba(22,163,74,0.25);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  font-size: 0.82rem; color: #15803d;
  align-items: center; gap: 0.4rem;
}
.c-success.show { display: flex; }

/* ===== COMMENTS SECTION ===== */
.c-comments-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem;
}
.c-comments-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; font-weight: 700;
}
.c-comments-badge {
  background: var(--gold);
  color: var(--black);
  font-size: 0.7rem; font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
}

/* ===== SKELETON ===== */
.c-skeleton-wrap {
  display: flex; gap: 1rem; overflow: hidden;
}
.c-skel-card {
  min-width: 240px; background: var(--white);
  border-radius: var(--radius); padding: 1.25rem; flex-shrink: 0;
}
.skel {
  height: 10px; border-radius: 5px;
  background: linear-gradient(90deg, #efefef 25%, #e0e0e0 50%, #efefef 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
.w60 { width: 60%; }
.w40 { width: 40%; }
.w80 { width: 80%; }
.w100 { width: 100%; }
.mt8 { margin-top: 8px; }
.mt16 { margin-top: 16px; }
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ===== CARDS SLIDER ===== */
.c-cards-outer { position: relative; }

.c-cards {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
}
.c-cards::-webkit-scrollbar { display: none; }

.c-card {
  min-width: 260px; max-width: 260px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem;
  scroll-snap-align: start;
  flex-shrink: 0;
  box-shadow: 0 3px 20px rgba(0,0,0,0.07);
  display: flex; flex-direction: column; gap: 0.75rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
  position: relative; overflow: hidden;
  border: 1.5px solid transparent;
}
.c-card::before {
  content: '"';
  position: absolute; top: -0.75rem; right: 0.75rem;
  font-family: 'Playfair Display', serif;
  font-size: 5rem; color: rgba(201,168,76,0.07);
  pointer-events: none; line-height: 1;
}
.c-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(0,0,0,0.11);
  border-color: rgba(201,168,76,0.2);
}

.c-card-top { display: flex; align-items: center; gap: 0.75rem; }
.c-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.95rem; color: var(--white);
  flex-shrink: 0;
}
.c-card-meta { flex: 1; min-width: 0; }
.c-card-name { font-size: 0.875rem; font-weight: 700; color: var(--dark); }
.c-card-date { font-size: 0.68rem; color: var(--gray); margin-top: 1px; }
.c-card-stars { font-size: 0.8rem; color: var(--gold); letter-spacing: 1px; flex-shrink: 0; }

.c-card-text {
  font-size: 0.82rem; line-height: 1.8;
  color: #555; flex: 1;
}

.c-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.c-verified {
  display: flex; align-items: center; gap: 0.3rem;
  font-size: 0.68rem; color: #16a34a; font-weight: 600;
}
.c-like {
  display: flex; align-items: center; gap: 0.3rem;
  font-size: 0.72rem; color: var(--gray);
  transition: color 0.2s;
}
.c-like:hover { color: #e53e3e; }
.c-like.liked { color: #e53e3e; }
.c-like.liked svg { fill: #e53e3e; }

/* NAV */
.c-nav {
  display: flex; align-items: center; justify-content: center;
  gap: 0.75rem; margin-top: 1.25rem;
}
.c-arrow {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  color: var(--dark);
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.c-arrow:hover { background: var(--gold); border-color: var(--gold); color: var(--black); }

.c-dots { display: flex; gap: 0.4rem; }
.c-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(0,0,0,0.15); padding: 0; border: none; cursor: pointer;
  transition: all 0.3s var(--ease);
}
.c-dot.active { background: var(--gold); width: 22px; border-radius: 3px; }

/* Empty */
.c-empty {
  text-align: center; padding: 2.5rem 1rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
}
.c-empty span { font-size: 2.5rem; opacity: 0.3; }
.c-empty p { font-size: 0.875rem; color: var(--gray); }

/* ===== RESPONSIVE ===== */
@media (max-width: 580px) {
  .c-form-row { grid-template-columns: 1fr; }
  .c-card { min-width: 220px; max-width: 220px; }
  .c-hero { padding: 1.5rem 1rem 1.25rem; }
  .c-hero-stats { gap: 1.1rem; }
  .c-main { padding: 1.5rem 1rem 3rem; gap: 2rem; }
}
