/* Recipe comments — public UI (Cholent and future recipe pages) */
.rc-root {
  --rc-ink: #1c2a2e;
  --rc-muted: #5c6b70;
  --rc-line: rgba(28, 42, 46, 0.12);
  --rc-surface: rgba(255, 252, 247, 0.92);
  --rc-accent: #b85c38;
  --rc-teal: #215268;
  --rc-glow: rgba(184, 92, 56, 0.18);
  direction: rtl;
  text-align: right;
  color: var(--rc-ink);
  font-family: 'Assistant', 'Segoe UI', sans-serif;
}

.rc-stage {
  position: relative;
  overflow: hidden;
  padding: 0.25rem 0 0.5rem;
}

.rc-stage::before {
  content: '';
  position: absolute;
  inset: -10% -5% auto;
  height: 220px;
  background:
    radial-gradient(ellipse 60% 80% at 80% 0%, var(--rc-glow), transparent 70%),
    radial-gradient(ellipse 50% 70% at 10% 30%, rgba(33, 82, 104, 0.12), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.rc-intro {
  position: relative;
  z-index: 1;
  margin: 0 0 1.5rem;
  max-width: 36rem;
}

.rc-kicker {
  display: inline-block;
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rc-accent);
  font-weight: 700;
}

.rc-intro p {
  margin: 0;
  color: var(--rc-muted);
  line-height: 1.65;
  font-size: 1.02rem;
}

.rc-layout {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.rc-form-panel {
  padding: 0.95rem 0.9rem 1rem;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.95), rgba(255, 248, 240, 0.88));
  border: 1px solid var(--rc-line);
  border-radius: 2px;
  box-shadow: 0 12px 28px -24px rgba(28, 42, 46, 0.45);
  transform-origin: top center;
  animation: rc-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.rc-form-panel h3 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--rc-teal);
  letter-spacing: -0.01em;
}

.rc-form-note {
  margin: 0 0 0.55rem;
  font-size: 0.86rem;
  color: var(--rc-muted);
  line-height: 1.45;
}

.rc-auth-bar {
  margin: 0 0 0.75rem;
}

.rc-auth-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  background: rgba(33, 82, 104, 0.06);
  border-radius: 2px;
}

.rc-auth-user[hidden],
.rc-auth-anon[hidden],
#rc-email-field[hidden] {
  display: none !important;
}

.rc-auth-user-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.rc-google-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(33, 82, 104, 0.22);
  background: #fff;
  color: var(--rc-ink);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.45rem 0.75rem;
  border-radius: 2px;
  cursor: pointer;
  max-width: 100%;
}

.rc-google-btn:hover {
  border-color: var(--rc-teal);
}

.rc-text-btn {
  appearance: none;
  border: 0;
  background: none;
  color: var(--rc-accent);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0.2rem 0;
  white-space: nowrap;
}

.rc-text-btn:hover {
  text-decoration: underline;
}

.rc-field input[readonly] {
  background: rgba(33, 82, 104, 0.06);
}

.rc-field {
  margin: 0 0 0.65rem;
}

.rc-field label {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--rc-ink);
}

.rc-field .rc-optional {
  font-weight: 500;
  color: var(--rc-muted);
}

.rc-field input,
.rc-field textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(33, 82, 104, 0.22);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.85);
  padding: 0.55rem 0.7rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--rc-ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.rc-field textarea {
  min-height: 5.5rem;
  resize: vertical;
  line-height: 1.5;
}

.rc-field input:focus,
.rc-field textarea:focus {
  outline: none;
  border-color: var(--rc-accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(184, 92, 56, 0.15);
}

.rc-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.rc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: 0.75rem;
}

.rc-submit {
  appearance: none;
  border: 0;
  cursor: pointer;
  background: linear-gradient(135deg, #215268 0%, #163d4c 100%);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.6rem 1.1rem;
  border-radius: 2px;
  letter-spacing: 0.02em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  box-shadow: 0 10px 24px -14px rgba(33, 82, 104, 0.8);
}

.rc-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.rc-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.rc-status {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.rc-status[data-tone='ok'] {
  color: #1f6b45;
}

.rc-status[data-tone='err'] {
  color: #a31d2d;
}

.rc-list-panel {
  animation: rc-rise 0.75s 0.08s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.rc-list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--rc-line);
}

.rc-list-head h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--rc-teal);
}

.rc-count {
  font-size: 0.88rem;
  color: var(--rc-muted);
  font-weight: 600;
}

.rc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rc-item {
  position: relative;
  padding: 1rem 0 1.15rem;
  border-bottom: 1px solid var(--rc-line);
  animation: rc-fade 0.55s ease both;
}

.rc-item:last-child {
  border-bottom: 0;
}

.rc-item-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.45rem;
}

.rc-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #d7e0e4;
}

.rc-avatar-anon {
  display: inline-flex;
  overflow: hidden;
}

.rc-item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  margin: 0;
}

.rc-item-name {
  font-weight: 700;
  color: var(--rc-ink);
  font-size: 1.02rem;
}

.rc-item-date {
  font-size: 0.82rem;
  color: var(--rc-muted);
}

.rc-item-body {
  margin: 0;
  padding-right: 3.25rem;
  line-height: 1.65;
  color: #2a383c;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.rc-reply {
  margin: 0.75rem 0 0 0;
  margin-right: 3.25rem;
  padding: 0.7rem 0.85rem;
  background: linear-gradient(90deg, rgba(33, 82, 104, 0.08), transparent);
  border-right: 2px solid var(--rc-teal);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--rc-teal);
}

.rc-reply strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rc-empty,
.rc-loading {
  margin: 0.5rem 0 0;
  color: var(--rc-muted);
  line-height: 1.55;
}

.rc-loading {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.rc-loading[hidden] {
  display: none !important;
}

.rc-spinner {
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid rgba(33, 82, 104, 0.2);
  border-top-color: var(--rc-teal);
  border-radius: 50%;
  animation: rc-spin 0.7s linear infinite;
}

@keyframes rc-spin {
  to { transform: rotate(360deg); }
}

@keyframes rc-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes rc-fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rc-form-panel,
  .rc-list-panel,
  .rc-item,
  .rc-spinner,
  .rc-submit {
    animation: none !important;
    transition: none !important;
  }
}
