/* Project Hoof — /requests/ page. Parchment wizard + listing.
   Re-uses .leave-modal* for edit/contribution dialogs. */

.requests-main {
  position: relative; z-index: 2;
  padding: 88px 24px 64px;
  max-width: 1180px; margin: 0 auto;
}

/* ============= Parchment wizard ============= */
.req-shell {
  max-width: 760px; margin: 0 auto 36px;
}
.req-parchment {
  position: relative;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(255,230,170,.08), transparent 60%),
    radial-gradient(ellipse at 80% 90%, rgba(120,80,30,.12), transparent 60%),
    linear-gradient(180deg, #f0e3bd 0%, #e7d4a0 100%);
  color: #2a1f0d;
  border-radius: 16px;
  padding: clamp(28px, 4vw, 48px);
  box-shadow:
    0 30px 80px -20px rgba(0,0,0,.6),
    0 0 0 1px rgba(201,162,74,.35),
    inset 0 0 60px rgba(140, 95, 30, .12);
  font-family: 'EB Garamond', 'Spectral', serif;
  overflow: hidden;
}
.req-parchment::before {
  content: ''; position: absolute; inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 60%, rgba(60,30,5,.18) 100%);
  border-radius: inherit;
}

.req-step { border: 0; padding: 0; margin: 0; position: relative; }
.req-step-kicker {
  display: inline-block;
  font-family: 'IM Fell English SC', serif;
  font-size: .82rem; letter-spacing: .22em;
  color: #8a5d1a; margin-bottom: 6px;
}
.req-step-title {
  margin: 0 0 8px;
  font-family: 'Cinzel Decorative', serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  line-height: 1.15;
  color: #2a1f0d;
}
.req-step-lead {
  margin: 0 0 22px;
  font-style: italic; color: #5b4622;
  font-size: 1.05rem; line-height: 1.5;
  max-width: 56ch;
}

/* Flow picker (step 0) — two big cards */
.req-step-flow { text-align: center; }
.req-step-flow .req-step-lead { margin-left: auto; margin-right: auto; }
.req-flow-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 18px; margin-top: 22px;
}
@media (max-width: 640px) { .req-flow-grid { grid-template-columns: 1fr; } }

.req-flow-card {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  gap: 10px;
  padding: 26px 22px;
  background: rgba(255,250,235,.55);
  border: 1px solid rgba(90,60,20,.32);
  border-radius: 12px;
  color: #2a1f0d;
  font-family: 'EB Garamond', serif;
  cursor: pointer;
  text-align: center;
  transition: all .18s;
}
.req-flow-card:hover {
  border-color: #8a5d1a;
  background: rgba(255,253,242,.85);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}
.req-flow-card.is-soon { opacity: .68; }
.req-flow-card.is-soon:hover { opacity: .9; }
.req-flow-soon-badge {
  position: absolute; top: 10px; right: 10px;
  font-family: 'IM Fell English SC', serif;
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(60,30,5,.85);
  color: #f2cc6a;
  padding: 3px 9px;
  border-radius: 999px;
}
.req-flow-rune {
  font-size: 2.2rem;
  line-height: 1;
}
.req-flow-title {
  font-family: 'Cinzel Decorative', serif;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.2;
}
.req-flow-sub {
  font-style: italic;
  font-size: .95rem;
  color: #5b4622;
  line-height: 1.4;
  max-width: 32ch;
}

/* Inline pickers (resource / buff type tiles) */
.req-pick-grid {
  display: grid; gap: 10px;
  margin: 8px 0 20px;
}
.req-pick-grid-4 { grid-template-columns: repeat(4, 1fr); }
.req-pick-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) {
  .req-pick-grid-4, .req-pick-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
.req-pick-card {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px;
  padding: 14px 8px;
  background: rgba(255,250,235,.45);
  border: 1px solid rgba(90,60,20,.25);
  border-radius: 10px;
  color: #2a1f0d;
  font-family: 'EB Garamond', serif;
  font-size: .95rem;
  cursor: pointer;
  transition: all .15s;
  text-align: center;
}
.req-pick-card:hover {
  border-color: #8a5d1a;
  background: rgba(255,253,242,.8);
}
.req-pick-card.is-picked {
  border-color: #c9a24a;
  background: rgba(242,204,106,.35);
  box-shadow: 0 0 0 2px rgba(201,162,74,.4);
  font-weight: 600;
}
.req-pick-icon {
  font-size: 1.5rem;
  line-height: 1;
}
.req-pick-text {
  font-family: 'IM Fell English SC', serif;
  font-size: .82rem; letter-spacing: .1em;
  color: #5b4622;
}
.req-pick-card.is-picked .req-pick-text { color: #2a1f0d; }

/* Fields (within parchment) */
.req-field { display: block; margin-bottom: 18px; }
.req-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px; margin-bottom: 18px;
}
.req-row .req-field { margin-bottom: 0; }
@media (max-width: 540px) { .req-row { grid-template-columns: 1fr; } }

.req-label {
  display: block;
  font-family: 'IM Fell English SC', serif;
  font-size: .92rem; letter-spacing: .12em;
  color: #5b4622; margin-bottom: 6px;
}
.req-step input[type="number"],
.req-step input[type="date"],
.req-step input[type="datetime-local"],
.req-step textarea {
  width: 100%; box-sizing: border-box;
  background: rgba(255,253,242,.8);
  border: 1px solid rgba(90,60,20,.35);
  color: #2a1f0d;
  padding: 10px 12px;
  border-radius: 8px;
  font-family: 'EB Garamond', serif;
  font-size: 1rem;
  outline: 0;
}
.req-step input[type="number"]:focus,
.req-step input[type="date"]:focus,
.req-step input[type="datetime-local"]:focus,
.req-step textarea:focus {
  border-color: #8a5d1a;
  box-shadow: 0 0 0 3px rgba(140,95,30,.15);
}
.req-step textarea { resize: vertical; min-height: 60px; }

.req-form-error {
  background: rgba(196,72,60,.12);
  border: 1px solid rgba(196,72,60,.4);
  color: #6b1b1b;
  padding: 9px 12px;
  border-radius: 7px;
  font-family: 'Manrope', sans-serif;
  font-size: .9rem;
  margin-bottom: 14px;
}

.req-actions {
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.req-actions-center { justify-content: center; }
.btn-ghost-light {
  background: transparent;
  border: 1px solid rgba(90,60,20,.4);
  color: #5b4622;
  font-family: 'IM Fell English SC', serif;
  font-size: .82rem; letter-spacing: .14em;
  text-transform: uppercase;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
}
.btn-ghost-light:hover { background: rgba(90,60,20,.08); }
.btn-parchment {
  background: linear-gradient(180deg, #f2cc6a, #c9a24a);
  color: #2a1f0d;
  border: 1px solid #8a5d1a;
  font-family: 'Cinzel', serif; font-weight: 700;
  font-size: .9rem; letter-spacing: .12em; text-transform: uppercase;
  padding: 11px 22px;
  border-radius: 999px;
  cursor: pointer;
}
.btn-parchment:hover { filter: brightness(1.06); }

.req-step-done { text-align: center; }
.req-step-done .req-step-title { color: #1f4a1f; }

/* ============= Listing below the wizard ============= */
.req-listing {
  margin-top: 28px;
}
.req-listing-h {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.5rem; letter-spacing: .04em;
  color: #f2cc6a;
  margin: 0 0 18px;
  text-align: center;
}
.req-listing-sub {
  font-family: 'IM Fell English SC', serif;
  font-size: .95rem; letter-spacing: .2em;
  color: #c9a24a;
  text-transform: uppercase;
  margin: 24px 0 12px;
}

/* Tabs */
.req-tabs {
  display: flex; gap: 6px; justify-content: center;
  border-bottom: 1px solid rgba(201,162,74,.2);
  margin-bottom: 28px;
}
.req-tabs button {
  background: transparent;
  border: 0;
  font-family: 'IM Fell English SC', serif;
  font-size: .95rem; letter-spacing: .18em;
  text-transform: uppercase;
  color: #888173;
  padding: 12px 24px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s, border-color .15s;
}
.req-tabs button:hover { color: #c9a24a; }
.req-tabs button[aria-selected="true"] {
  color: #f2cc6a;
  border-bottom-color: #f2cc6a;
}

.req-tab-head {
  display: flex; justify-content: flex-end;
  margin-bottom: 20px;
}
.req-new-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Cinzel', serif; font-weight: 700;
  font-size: .85rem; letter-spacing: .12em; text-transform: uppercase;
  padding: 10px 18px; border-radius: 999px;
  background: linear-gradient(180deg, #f2cc6a, #c9a24a);
  color: #2a1f0d; border: 1px solid #8a5d1a;
  cursor: pointer;
}
.req-new-btn:hover { filter: brightness(1.08); }

.req-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.req-empty {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  color: #888173;
  text-align: center;
  padding: 40px 16px;
}

/* Cards (common) */
.req-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(201,162,74,.22);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.req-card.is-fulfilled,
.req-card.is-granted   { border-color: rgba(140,200,120,.45); }
.req-card.is-cancelled,
.req-card.is-closed    { opacity: .55; }
.req-card.is-mine      { box-shadow: 0 0 0 1px rgba(242,204,106,.35); }

.req-card-head {
  display: flex; align-items: center; gap: 10px;
}
.req-card-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #1d2a44;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Cinzel', serif; font-weight: 700;
  color: #f2cc6a;
  border: 1px solid rgba(201,162,74,.4);
  overflow: hidden;
  flex: 0 0 32px;
}
.req-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.req-card-author {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  color: #e8e2d2;
  font-size: .98rem;
}
.req-card-meta {
  font-family: 'Manrope', sans-serif;
  font-size: .78rem;
  color: #888173;
}
.req-card-status {
  margin-left: auto;
  font-family: 'IM Fell English SC', serif;
  font-size: .68rem; letter-spacing: .16em;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  flex: 0 0 auto;
}
.req-card-status[data-status="open"]      { color: #f2cc6a; border: 1px solid rgba(242,204,106,.45); background: rgba(242,204,106,.08); }
.req-card-status[data-status="fulfilled"],
.req-card-status[data-status="granted"]   { color: #a3d39c; border: 1px solid rgba(140,200,120,.45); background: rgba(140,200,120,.10); }
.req-card-status[data-status="done"]      { color: #9bbedf; border: 1px solid rgba(140,180,220,.45); background: rgba(140,180,220,.10); }
.req-card-status[data-status="closed"],
.req-card-status[data-status="cancelled"] { color: #b3a98b; border: 1px solid rgba(180,170,140,.35); background: rgba(180,170,140,.06); }

/* RSS card specifics */
.req-card-rss-main {
  display: flex; align-items: baseline; gap: 10px;
  font-family: 'Cinzel Decorative', serif;
}
.req-rss-icon {
  font-size: 1.4rem;
  flex: 0 0 auto;
}
.req-rss-amount {
  font-size: 1.4rem;
  color: #f2cc6a;
  font-weight: 700;
}
.req-rss-amount small {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: .95rem;
  color: #888173;
  font-weight: 400;
}
.req-rss-name {
  font-family: 'EB Garamond', serif;
  color: #d6c590;
  font-style: italic;
  font-size: 1.05rem;
}

.req-progress-track {
  position: relative;
  height: 6px;
  background: rgba(255,255,255,.06);
  border-radius: 999px;
  overflow: hidden;
}
.req-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #c9a24a, #f2cc6a);
  border-radius: 999px;
  transition: width .25s ease;
}
.req-progress-label {
  font-family: 'Manrope', sans-serif;
  font-size: .8rem;
  color: #b3a98b;
  display: flex; justify-content: space-between;
}
.req-progress-label .req-progress-pct { color: #f2cc6a; }

.req-card-note {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  color: #b3a98b;
  font-size: .95rem;
  border-left: 2px solid rgba(201,162,74,.35);
  padding-left: 10px;
}

.req-contributions {
  font-family: 'Manrope', sans-serif;
  font-size: .78rem;
  color: #888173;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.req-contrib-pill {
  background: rgba(140,200,120,.08);
  color: #a3d39c;
  border: 1px solid rgba(140,200,120,.25);
  border-radius: 999px;
  padding: 2px 9px;
}

.req-card-actions {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 4px;
}
.req-action-btn {
  background: transparent;
  border: 1px solid rgba(201,162,74,.3);
  color: #c9a24a;
  font-family: 'Manrope', sans-serif;
  font-size: .82rem;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.req-action-btn:hover { background: rgba(201,162,74,.12); border-color: #c9a24a; }
.req-action-btn.req-action-primary {
  background: linear-gradient(180deg, #f2cc6a, #c9a24a);
  color: #2a1f0d; border-color: #8a5d1a;
}
.req-action-btn.req-action-danger { color: #e8a585; border-color: rgba(196,72,60,.45); }
.req-action-btn.req-action-danger:hover { background: rgba(196,72,60,.15); }

/* Title-request card specifics */
.req-card-title-main {
  display: flex; align-items: baseline; gap: 10px;
  font-family: 'Cinzel Decorative', serif;
}
.req-buff-icon { font-size: 1.4rem; flex: 0 0 auto; }
.req-buff-name {
  font-size: 1.15rem;
  color: #f2cc6a;
  font-weight: 700;
}
.req-buff-dur {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  color: #b3a98b;
  font-size: .95rem;
}
.req-grant-info {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  color: #a3d39c;
  font-size: .85rem;
}

/* Lightly re-skin a few leave-modal bits for our resource <select> */
#rss-modal select,
#title-modal select {
  background: rgba(0,0,0,.3);
  border: 1px solid rgba(201,162,74,.3);
  color: #e8e2d2;
  padding: 9px 12px;
  border-radius: 7px;
  font-family: 'EB Garamond', serif;
  font-size: 1rem;
  width: 100%;
  color-scheme: dark;
}
#rss-modal select:focus,
#title-modal select:focus {
  outline: 0; border-color: #c9a24a;
  box-shadow: 0 0 0 3px rgba(201,162,74,.15);
}
#rss-modal label > span,
#title-modal label > span {
  display: block;
  font-family: 'IM Fell English SC', serif;
  font-size: .78rem; letter-spacing: .16em;
  color: #c9a24a;
  margin-bottom: 4px;
}
#rss-modal input[type="date"],
#rss-modal input[type="number"],
#title-modal input[type="number"],
#title-modal input[type="datetime-local"] {
  background: rgba(0,0,0,.3);
  border: 1px solid rgba(201,162,74,.3);
  color: #e8e2d2;
  padding: 9px 12px;
  border-radius: 7px;
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
  color-scheme: dark;
}
#contrib-modal input[type="number"] {
  background: rgba(0,0,0,.3);
  border: 1px solid rgba(201,162,74,.3);
  color: #e8e2d2;
  padding: 9px 12px;
  border-radius: 7px;
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
}
