/* ============================================================
   [X]Server — Apply page
   Cinematic subpage styles (extends ../styles.css tokens)
   ============================================================ */

/* fixed cinematic backdrop: blurred duotone gameplay still */
body.page-apply::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url("backdrop.jpg") center / cover no-repeat fixed;
  pointer-events: none;
}

/* grade + vignette over the backdrop */
body.page-apply::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 11, 13, 0.72) 0%, rgba(10, 11, 13, 0.82) 55%, rgba(10, 11, 13, 0.94) 100%),
    linear-gradient(115deg, rgba(216, 179, 106, 0.05), transparent 45%),
    linear-gradient(245deg, rgba(127, 168, 160, 0.05), transparent 50%),
    radial-gradient(ellipse at center, transparent 45%, rgba(5, 6, 7, 0.5) 100%);
}

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
}

/* ---------- page hero ---------- */

.page-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 62vh;
  padding: clamp(9rem, 18vh, 12rem) 0 clamp(3rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}

.page-hero .section-num {
  position: absolute;
  bottom: clamp(2rem, 5vw, 3.5rem);
  right: 0;
  font-size: clamp(7rem, 18vw, 13rem);
  opacity: 0.6;
  line-height: 0.8;
}

.page-hero h1 {
  font-size: clamp(4.2rem, 11vw, 8.5rem);
  text-shadow: 0 10px 60px rgba(0, 0, 0, 0.55);
}

.page-hero .lead {
  margin-bottom: 0;
  max-width: 56ch;
  font-size: 1.1rem;
  color: rgba(232, 228, 220, 0.75);
}

/* ---------- section head ---------- */

.section-head {
  display: flex;
  align-items: flex-start;
  gap: clamp(1.2rem, 4vw, 3rem);
  padding-top: clamp(3.5rem, 8vw, 6rem);
}

.section-head .section-num {
  font-size: clamp(3rem, 7vw, 5.5rem);
}

.section-head h2 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
}

/* ---------- layout ---------- */

.apply-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(5rem, 9vw, 7rem);
}

/* ---------- form ---------- */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.9rem 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.form-group.wide { grid-column: 1 / -1; }

.form-group label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s ease;
}

.form-group:focus-within label { color: var(--accent); }

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.95rem 1.1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  background: rgba(232, 228, 220, 0.03);
  border: 1px solid var(--line);
  border-radius: 2px;
  outline: none;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.form-group textarea { resize: vertical; min-height: 110px; }

.form-group input::placeholder { color: rgba(143, 141, 134, 0.6); }

.form-group input:hover,
.form-group textarea:hover { border-color: var(--line-strong); }

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: rgba(216, 179, 106, 0.04);
  box-shadow: 0 0 0 3px rgba(216, 179, 106, 0.08), 0 10px 30px rgba(0, 0, 0, 0.3);
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 2.6rem;
  padding: 1rem 2.2rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #141210;
  background: var(--accent);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  box-shadow: 0 12px 34px rgba(216, 179, 106, 0.18);
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.submit-btn i { transition: transform 0.3s ease; }

.submit-btn:hover {
  transform: translateY(-2px);
  background: #e6c37e;
  box-shadow: 0 18px 44px rgba(216, 179, 106, 0.26);
}

.submit-btn:hover i { transform: translateX(4px) rotate(8deg); }

/* ---------- rules panel ---------- */

.rules-panel {
  position: sticky;
  top: 6.5rem;
  padding: 2rem;
  background: var(--panel);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: 2px;
}

.rules-panel h2 {
  font-size: 2.1rem;
  margin-bottom: 1.3rem;
}

.checklist {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: flex;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: rgba(232, 228, 220, 0.78);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  transition: color 0.25s ease, transform 0.25s ease;
}

.checklist li:last-child { border-bottom: none; padding-bottom: 0; }

.checklist li:hover {
  color: var(--text);
  transform: translateX(4px);
}

.checklist li::before {
  content: '+';
  flex: 0 0 auto;
  font-weight: 600;
  color: var(--accent);
}

.discord-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.8rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent);
  transition: color 0.25s ease;
}

.discord-link i { transition: transform 0.25s ease; }

.discord-link:hover { color: #e6c37e; }
.discord-link:hover i { transform: scale(1.15); }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .apply-layout { grid-template-columns: 1fr; }
  .rules-panel { position: static; }
  .form-grid { grid-template-columns: 1fr; }
  .page-hero { min-height: 52vh; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .checklist li,
  .submit-btn,
  .submit-btn i,
  .discord-link i,
  .form-group label,
  .form-group input,
  .form-group textarea { transition: none; }

  .checklist li:hover { transform: none; }
}
