:root {
  color-scheme: dark;
  --bg: #070707;
  --surface: #121214;
  --surface-strong: #19191d;
  --red: #e11d2f;
  --red-deep: #8f0f1f;
  --red-soft: rgba(225, 29, 47, 0.14);
  --text: #f6f2f2;
  --muted: #b8b1b1;
  --line: rgba(255, 255, 255, 0.12);
  --gold: #f4b860;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(225, 29, 47, 0.18), transparent 32rem),
    linear-gradient(180deg, #050505 0%, #111113 52%, #050505 100%);
  color: var(--text);
  font-family: "Cairo", "Inter", system-ui, sans-serif;
  line-height: 1.7;
}

body[data-language="en"] {
  font-family: "Inter", "Cairo", system-ui, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 18px 18px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 10, 11, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: lowercase;
}

.brand-mark {
  display: block;
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(225, 29, 47, 0.36));
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 3vw, 28px);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.main-nav a {
  transition: color 180ms ease;
}

.main-nav a:hover {
  color: var(--text);
}

body[data-language="ar"] .main-nav {
  font-weight: 600;
}

.language-toggle,
.primary-action,
.secondary-action {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 16px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.language-toggle {
  background: var(--surface-strong);
  color: var(--text);
  border-color: var(--line);
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: white;
  box-shadow: 0 18px 46px rgba(225, 29, 47, 0.22);
}

.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.hero-section {
  min-height: auto;
  padding: clamp(30px, 5vw, 54px) 0 34px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  max-width: 760px;
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.18;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  line-height: 1.35;
  letter-spacing: 0;
}

h4 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  line-height: 1.35;
  letter-spacing: 0;
}

.hero-text,
.section-heading p,
.split-section > div:first-child p,
.server-section p,
.wide-note p,
.info-card p,
.tip-card p,
.tool-list p,
.tool-card p {
  color: var(--muted);
}

.hero-text {
  max-width: 650px;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.info-card,
.tip-card,
.tool-list article,
.tool-card,
.wide-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

.section-block {
  padding: clamp(42px, 7vw, 72px) 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 30px;
}

#raids .section-heading {
  max-width: 100%;
}

@media (min-width: 861px) {
  [data-i18n="raidIntro"] {
    white-space: nowrap;
  }
}

.raid-visual {
  width: 100%;
  aspect-ratio: 16 / 7;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #000;
  box-shadow: 0 26px 86px rgba(0, 0, 0, 0.34);
}

.raid-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.raid-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.info-card,
.tip-card,
.tool-list article,
.tool-card,
.wide-note {
  padding: 22px;
}

.wide-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 24px;
  align-items: center;
  margin: 22px 0;
  background:
    linear-gradient(90deg, rgba(225, 29, 47, 0.18), transparent),
    rgba(18, 18, 20, 0.88);
}

.wide-note h3,
.wide-note p {
  grid-column: 1;
}

.wide-note p {
  margin-bottom: 0;
}

.inline-link {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid rgba(225, 29, 47, 0.55);
  border-radius: 8px;
  color: white;
  background: var(--red-soft);
  font-weight: 800;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.tip-card span {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--red);
  font-size: 0.84rem;
  font-weight: 800;
}

.tips-warning {
  margin: 16px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(244, 184, 96, 0.34);
  border-radius: 8px;
  background: rgba(244, 184, 96, 0.08);
  color: var(--gold);
  font-weight: 800;
}

@media (min-width: 861px) {
  .tips-warning {
    white-space: nowrap;
  }
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 1fr);
  gap: clamp(24px, 6vw, 74px);
  align-items: start;
}

.tool-list {
  display: grid;
  gap: 14px;
}

.tools-section .section-heading {
  max-width: 860px;
}

.tool-groups {
  display: grid;
  gap: clamp(30px, 5vw, 52px);
}

.tool-group-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.tool-group-heading .eyebrow {
  margin-bottom: 6px;
}

.tool-group-heading h3 {
  margin-bottom: 0;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.tool-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.tool-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  min-height: 116px;
  align-content: center;
  justify-items: center;
  gap: 12px;
  text-align: center;
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

.tool-card:hover {
  border-color: rgba(225, 29, 47, 0.68);
  background:
    linear-gradient(180deg, rgba(225, 29, 47, 0.14), rgba(255, 255, 255, 0.028)),
    var(--surface);
  transform: translateY(-3px);
}

.tool-card h4 {
  margin: 0;
}

.tool-card strong {
  display: inline-flex;
  width: fit-content;
  justify-self: center;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 8px;
  color: white;
  background: var(--red-soft);
  font-size: 0.85rem;
  white-space: nowrap;
}

.server-section {
  margin: 42px 0 28px;
  padding: clamp(28px, 5vw, 46px);
  border: 1px solid rgba(225, 29, 47, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(225, 29, 47, 0.2), transparent 56%),
    var(--surface);
}

.server-copy {
  max-width: 100%;
}

.server-section p {
  margin-bottom: 0;
}

.server-section .server-note {
  margin-top: 14px;
  color: var(--gold);
  font-size: 0.94rem;
  font-weight: 700;
}

@media (min-width: 861px) {
  .server-section .server-note {
    white-space: nowrap;
  }
}

.server-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.copy-status {
  flex-basis: 100%;
  min-height: 1.4em;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 800;
}

@media (max-width: 860px) {
  .site-header {
    position: sticky;
    flex-wrap: wrap;
  }

  .brand {
    order: 1;
  }

  .language-toggle {
    order: 2;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
    padding-top: 6px;
  }

  .split-section {
    grid-template-columns: 1fr;
  }

  .raid-notes {
    grid-template-columns: 1fr;
  }

  .hero-section {
    padding-top: 30px;
  }

  .tips-grid {
    grid-template-columns: 1fr;
  }

  .tool-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wide-note,
  .server-section {
    display: block;
  }

  .inline-link,
  .server-actions {
    margin-top: 18px;
  }

  .inline-link {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .site-shell {
    padding: 0 12px 12px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
  }

  .language-toggle {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 8px 12px;
    white-space: nowrap;
  }

  .hero-actions {
    display: grid;
  }

  .server-actions {
    display: grid;
  }

  .main-nav a {
    white-space: nowrap;
  }

  .tool-group-heading {
    display: block;
  }

  .tool-card-grid {
    grid-template-columns: 1fr;
  }

  .tool-card {
    min-height: auto;
    padding: 15px;
  }
}
