/* EX SERVER Home
   Uses the shared Premium Black & Gold system from ex-theme.css. */

.ex-page-home {
  padding-top: 42px;
}

.ex-home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  min-height: 430px;
  overflow: hidden;
  padding: 44px 32px;
  margin-bottom: 18px;
  border: 1px solid var(--ex-line-strong);
  border-radius: var(--ex-radius-lg);
  background:
    linear-gradient(135deg, rgba(216, 173, 88, 0.12), rgba(255, 226, 163, 0.025)),
    #080807;
  box-shadow: var(--ex-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.ex-home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-top: 3px solid rgba(216, 173, 88, 0.74);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.62) 43%, rgba(0, 0, 0, 0.82) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.5));
  pointer-events: none;
}

.ex-home-hero::after {
  content: "EX";
  position: absolute;
  right: 30px;
  bottom: 8px;
  z-index: 1;
  color: rgba(255, 255, 255, 0.04);
  font-size: 148px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0;
  pointer-events: none;
}

.ex-home-hero-media {
  position: absolute;
  inset: 0;
  background-image: url("../img/home/lineage-classic-hero.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.72;
  filter: saturate(0.82) contrast(1.08);
}

.ex-home-hero-content,
.ex-home-hero-card {
  position: relative;
  z-index: 2;
}

.ex-home-hero-content {
  align-self: center;
  max-width: 720px;
}

.ex-home-title {
  margin: 0;
  color: #fff8e9;
  font-size: clamp(48px, 8vw, 86px);
  line-height: 0.96;
  font-weight: 950;
  letter-spacing: 0;
  text-shadow: 0 0 28px rgba(216, 173, 88, 0.22), 0 6px 0 rgba(0, 0, 0, 0.34);
}

.ex-home-lead {
  max-width: 660px;
  margin: 18px 0 0;
  color: #e7d7bd;
  font-size: 18px;
  line-height: 1.82;
  word-break: keep-all;
}

.ex-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.ex-home-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 58px;
  margin: 0 0 18px;
}

.ex-home-logo-image {
  display: block;
  max-width: 180px;
  max-height: 72px;
  object-fit: contain;
}

.ex-home-logo-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(216, 173, 88, 0.46);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.48);
  color: #ffe2ad;
  font-size: 22px;
  font-weight: 950;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 22px rgba(0, 0, 0, 0.34);
}

.ex-home-cta-note {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--ex-muted);
  background: rgba(0, 0, 0, 0.26);
  font-size: 14px;
  font-weight: 850;
}

.ex-home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 950;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ex-home-button:hover,
.ex-home-button:focus-visible {
  transform: translateY(-2px);
}

.ex-home-button-primary {
  border: 1px solid rgba(255, 226, 163, 0.38);
  background: linear-gradient(180deg, rgba(216, 173, 88, 0.94), rgba(132, 86, 30, 0.94));
  color: #181006;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.26);
}

.ex-home-button-ghost {
  border: 1px solid rgba(216, 173, 88, 0.32);
  background: rgba(0, 0, 0, 0.34);
  color: #ffe2ad;
}

.ex-home-hero-card {
  align-self: center;
  padding: 22px;
  border: 1px solid rgba(216, 173, 88, 0.24);
  border-radius: var(--ex-radius-lg);
  background: rgba(8, 8, 7, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(4px);
}

.ex-home-card-label {
  display: block;
  margin-bottom: 8px;
  color: var(--ex-accent);
  font-size: 13px;
  font-weight: 950;
}

.ex-home-hero-card strong {
  display: block;
  color: #fff8e9;
  font-size: 22px;
  line-height: 1.35;
}

.ex-home-hero-card dl {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
}

.ex-home-hero-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ex-home-hero-card dt {
  color: var(--ex-muted);
  font-size: 14px;
  font-weight: 800;
}

.ex-home-hero-card dd {
  margin: 0;
  color: var(--ex-accent-strong);
  font-size: 15px;
  font-weight: 950;
}

.ex-home-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.ex-home-status-grid-wide {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ex-home-status-card,
.ex-home-shortcut,
.ex-home-board-item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    rgba(9, 9, 8, 0.92);
}

.ex-home-status-card {
  min-height: 96px;
  padding: 18px;
  border-radius: var(--ex-radius-md);
}

.ex-home-status-label,
.ex-home-shortcut-meta,
.ex-home-board-date {
  color: var(--ex-muted);
  font-size: 13px;
  font-weight: 850;
}

.ex-home-status-value {
  display: block;
  margin-top: 9px;
  color: var(--ex-accent-strong);
  font-size: 23px;
  line-height: 1.25;
  font-weight: 950;
}

.ex-home-section {
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid var(--ex-line);
  border-radius: var(--ex-radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.014)),
    var(--ex-surface);
  box-shadow: var(--ex-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.ex-home-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.ex-home-section-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--ex-accent);
  font-size: 12px;
  font-weight: 950;
}

.ex-home-section-title {
  margin: 0;
  color: #ffe2ad;
  font-size: 24px;
  line-height: 1.35;
  font-weight: 950;
  word-break: keep-all;
}

.ex-home-section-head p,
.ex-home-download-band p,
.ex-home-footer p {
  margin: 0;
  color: var(--ex-muted);
  font-size: 15px;
  line-height: 1.68;
  word-break: keep-all;
}

.ex-home-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.ex-home-shortcut {
  display: grid;
  min-height: 148px;
  padding: 18px;
  border-radius: var(--ex-radius-md);
  color: #eadcc5;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.ex-home-shortcut:hover,
.ex-home-shortcut:focus-visible {
  border-color: rgba(216, 173, 88, 0.42);
  background:
    linear-gradient(180deg, rgba(216, 173, 88, 0.085), rgba(255, 255, 255, 0.018)),
    rgba(10, 10, 9, 0.96);
  transform: translateY(-3px);
}

.ex-home-shortcut-title {
  margin-top: 8px;
  color: #fff8e9;
  font-size: 21px;
  font-weight: 950;
}

.ex-home-shortcut-desc {
  margin-top: 8px;
  color: var(--ex-muted);
  font-size: 14px;
  line-height: 1.62;
  word-break: keep-all;
}

.ex-home-board-grid {
  margin-bottom: 18px;
}

.ex-home-recommendations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.ex-home-recommendations .ex-home-section {
  margin-bottom: 0;
}

.ex-home-board-list {
  display: grid;
  gap: 10px;
}

.ex-home-board-item {
  display: grid;
  gap: 7px;
  padding: 15px;
  border-radius: var(--ex-radius-md);
}

.ex-home-board-title {
  color: #fff8e9;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 950;
  word-break: keep-all;
}

.ex-home-board-summary {
  color: var(--ex-muted);
  font-size: 14px;
  line-height: 1.65;
  word-break: keep-all;
}

.ex-home-download-band,
.ex-home-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--ex-line);
  border-radius: var(--ex-radius-lg);
  background: rgba(8, 8, 7, 0.86);
}

.ex-home-download-band {
  padding: 24px;
  margin-bottom: 18px;
}

.ex-home-footer {
  padding: 20px 22px;
}

.ex-home-footer strong {
  display: block;
  color: #fff8e9;
  font-size: 18px;
  font-weight: 950;
}

.ex-home-footer span {
  display: block;
  margin-top: 4px;
  color: var(--ex-accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

@media (max-width: 1040px) {
  .ex-home-hero {
    grid-template-columns: 1fr;
  }

  .ex-home-hero-card {
    max-width: 520px;
  }

  .ex-home-status-grid,
  .ex-home-status-grid-wide,
  .ex-home-shortcuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ex-home-recommendations {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .ex-page-home {
    padding-top: 28px;
  }

  .ex-home-hero {
    min-height: 0;
    padding: 30px 20px;
  }

  .ex-home-lead {
    font-size: 16px;
  }

  .ex-home-section-head,
  .ex-home-download-band,
  .ex-home-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .ex-home-status-grid,
  .ex-home-status-grid-wide,
  .ex-home-shortcuts,
  .ex-home-board-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .ex-home-actions,
  .ex-home-button {
    width: 100%;
  }

  .ex-home-hero-card dl div {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}
