/* ============================================================
   questions.css  —  Reader's Questions page styles
   ============================================================ */

/* ---------- Admin Bar ---------- */
.admin-bar {
  position: fixed;
  top: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 1rem;
  background: rgba(10,8,6,0.82);
  backdrop-filter: blur(8px);
  border-bottom-left-radius: 8px;
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.admin-bar-status {
  color: #c9a84c;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
}

.admin-bar-btn {
  background: none;
  border: 1px solid rgba(201,168,76,0.45);
  color: #c9a84c;
  padding: 0.28rem 0.85rem;
  border-radius: 3px;
  cursor: pointer;
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  transition: background 0.2s, color 0.2s;
}
.admin-bar-btn:hover {
  background: rgba(201,168,76,0.12);
  color: #e8c96a;
}

/* ---------- Login Modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.modal-box {
  position: relative;
  background: #13100c;
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 6px;
  padding: 2.2rem 2.5rem 2rem;
  width: min(420px, 92vw);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  animation: slideUp 0.25s ease;
}

.modal-close {
  position: absolute;
  top: 0.8rem; right: 1rem;
  background: none;
  border: none;
  color: #8a7a5a;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
.modal-close:hover { color: #c9a84c; }

.modal-title {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: 0.12em;
  margin: 0 0 0.3rem;
}

.modal-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  color: #FFFFFF;
  margin: 0 0 1.2rem;
}

.modal-input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 4px;
  padding: 0.65rem 0.9rem;
  color: #e8dcc8;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.modal-input:focus { border-color: rgba(201,168,76,0.6); }

.modal-error {
  min-height: 1.2rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: #F00;
  margin: 0.5rem 0 0.4rem;
  font-style: italic;
}

.modal-submit {
  margin-top: 0.6rem;
  width: 100%;
  background: linear-gradient(135deg, #c9a84c, #a07830);
  border: none;
  border-radius: 4px;
  color: #0d0b08;
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.7rem;
  cursor: pointer;
  transition: opacity 0.2s;
}
.modal-submit:hover { opacity: 0.88; }

/* ---------- Question Submit Form ---------- */
.question-form-wrap {
  margin-bottom: 2.5rem;
}

.form-heading {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 600;
  color: #c9a84c;
  letter-spacing: 0.14em;
  margin: 0 0 0.3rem;
  text-transform: uppercase;
}

.form-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: #8a7a5a;
  font-style: italic;
  margin: 0 0 1.2rem;
}

.q-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background: rgba(255,255,255);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  padding: 0.65rem 0.9rem;
  font-size: 1rem;
  outline: none;
  margin-bottom: 0.75rem;
  transition: border-color 0.2s, background 0.2s;
  resize: none;
}

.q-textarea { min-height: 110px; }

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* .q-submit {
  background: linear-gradient(135deg, #c9a84c, #a07830);
  border: none;
  border-radius: 4px;
  color: #0d0b08;
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.6rem 1.5rem;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
} */
.q-submit:hover { opacity: 0.85; }
.q-submit:disabled { opacity: 0.5; cursor: default; }

.form-msg {
  margin-top: 0.6rem;
  font-style: italic;
  min-height: 1.2rem;
}
.form-msg.ok  { color: #000000; }
.form-msg.err { color: #ff3f0f; }

/* ---------- Section Rule ---------- */
.section-rule { margin: 0.5rem 0 2rem; }

/* ---------- Questions List ---------- */
.no-questions {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: #5a4e3a;
  text-align: center;
  padding: 2rem 0;
  font-size: 1rem;
}

.q-card {
  border-bottom: 1px solid rgba(201,168,76,0.12);
  padding: 1.6rem 0;
  animation: fadeIn 0.4s ease both;
}
.q-card:first-child { padding-top: 0; }
.q-card:last-child  { border-bottom: none; }

.q-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.q-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.q-author {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
}

.q-date {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.82rem;
  font-style: italic;
}

.q-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.08rem;
  color: #d4c8ae;
  line-height: 1.65;
  margin: 0;
}

/* ---------- Reply Block ---------- */
.q-reply {
  margin-top: 1.1rem;
  border-left: 2px solid rgba(201,168,76,0.4);
  padding: 0.9rem 1.1rem 0.8rem;
  background: rgba(201,168,76,0.04);
  border-radius: 0 4px 4px 0;
}

.reply-label {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.reply-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  line-height: 1.2;
  margin: 0 0 0.45rem;
}

.reply-date {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: #5a4e3a;
  font-style: italic;
}

/* ---------- Admin Action Buttons ---------- */
.admin-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}
.btn-custom{
  background: linear-gradient(135deg, #c9a84c, #a07830);
  border: none;
  border-radius: 4px;
  color: #0d0b08;
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.6rem 1.5rem;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.btn-custom:hover { opacity: 0.85; }
.btn-custom:disabled { opacity: 0.5; cursor: default; }
/* ---------- Reply Editor ---------- */
.reply-editor {
  margin-top: 0.9rem;
  animation: fadeIn 0.2s ease;
}
.reply-textarea { min-height: 90px; margin-bottom: 0.5rem; }
.editor-actions { display: flex; gap: 0.5rem; }

/* ---------- Keyframes ---------- */
@keyframes fadeIn  { from { opacity: 0; }                    to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fadeDown{ from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .q-card-header { flex-direction: column; gap: 0.6rem; }
  .admin-actions  { gap: 0.4rem; }
  .modal-box      { padding: 1.6rem 1.4rem 1.4rem; }
  .form-footer    { flex-direction: column; align-items: flex-end; }
}
