:root {
  --bg: #121214;
  --surface: #1f1d2b;
  --surface-strong: #2d2a3d;
  --text: #f7f2f5;
  --muted: #b8b0c2;
  --gold: #cfa731;
  --purple: #7d5ec7;
  --grey: #8c8a96;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background:
    radial-gradient(circle at top, rgba(131, 88, 206, 0.18), transparent 28%),
    linear-gradient(
      180deg,
      rgba(15, 14, 20, 0.7) 0%,
      rgba(17, 16, 24, 0.8) 100%
    );
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  color: var(--text);
}

.page-home {
  background-image:
    url(images/Home.png),
    radial-gradient(circle at top, rgba(131, 88, 206, 0.18), transparent 28%),
    linear-gradient(
      180deg,
      rgba(15, 14, 20, 0.7) 0%,
      rgba(17, 16, 24, 0.8) 100%
    );
}

.page-progress {
  background-image:
    url(images/Progress.jpg),
    radial-gradient(circle at top, rgba(131, 88, 206, 0.18), transparent 28%),
    linear-gradient(
      180deg,
      rgba(15, 14, 20, 0.7) 0%,
      rgba(17, 16, 24, 0.8) 100%
    );
}

.page-about {
  background-image:
    url(images/About_Us.jpg),
    radial-gradient(circle at top, rgba(131, 88, 206, 0.18), transparent 28%),
    linear-gradient(
      180deg,
      rgba(15, 14, 20, 0.7) 0%,
      rgba(17, 16, 24, 0.8) 100%
    );
}

img {
  max-width: 100%;
  display: block;
}

button,
a {
  font: inherit;
}

/* .site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(16, 14, 23, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-spacer {
  flex: 1;
  min-width: 120px;
}

.brand-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
} */

.guild-badge-large,
.guild-logo-large {
  width: 160px;
  height: 160px;
  margin: 0 auto 2rem;
  overflow: hidden;
  border-radius: 50%;
  border: 3px solid var(--gold);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.guild-badge-large img,
.guild-logo-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-title-large {
  font-size: 2.5rem;
  letter-spacing: 0.16em;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 700;
}

.about-icon {
  width: 100px;
  height: 100px;
  overflow: hidden;
  border-radius: 50%; /* Optional: make it circular */
}

.about-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;

  display: flex;
  align-items: center;
  justify-content: flex-end;

  padding: 1rem 2rem;

  background: rgba(16, 14, 23, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);

  min-height: 80px;
}

.header-left {
  width: 48px;
}

.brand-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  align-items: center;
  justify-content: center;
}

.site-title-large {
  font-size: 2.5rem;
  letter-spacing: 0.16em;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 700;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.main-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.hamburger-button {
  display: none;

  background: transparent;
  border: none;

  color: var(--text);
  font-size: 2rem;

  cursor: pointer;
}

/* .main-nav {
  display: flex;
  flex: 1;
  justify-content: flex-end;
  gap: 1.5rem;
}

.main-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
} */

.site-footer {
  display: flex;
  justify-content: center;
  padding: 1.5rem 2rem;
  color: var(--grey);
  font-size: 0.95rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 2rem;
}

main {
  padding: 2rem 2rem 4rem;
  max-width: 1080px;
  margin: 0 auto;
}

.hero-section {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  align-items: center;
  justify-content: center;
  /* padding: 2.5rem 0 3rem; */
  padding: 2rem 2rem 4rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
}

.hero-copy {
  background: rgba(31, 29, 45, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin: 1.5rem 0 1rem;
  padding: 0.75rem 0;
}

.primary-button,
.secondary-button {
  border: none;
  border-radius: 999px;

  padding: 0.95rem 1.6rem;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 220px;
  text-align: center;
}

.primary-button {
  background: linear-gradient(135deg, var(--gold), #f5e286);
  color: #1d132b;
  font-weight: 700;
}

.secondary-button {
  background: rgba(125, 94, 199, 0.12);
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.discord-button {
  background: #5865f2;
  color: #ffffff;
}

.primary-button:hover,
.secondary-button:hover,
.discord-button:hover {
  transform: translateY(-1px);
}

.discord-note {
  color: var(--grey);
  max-width: 44rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-card {
  background: rgba(31, 29, 45, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.hero-card-title {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  color: var(--gold);
}

.content-section {
  margin-top: 2rem;
}

.section-heading {
  background: rgba(31, 29, 45, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  text-align: center;
  margin-bottom: 1.8rem;
}

.section-heading span {
  color: var(--gold);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
}

.section-heading h2 {
  margin: 0;
  font-size: 2rem;
}

.section-heading .secondary-button {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
  margin: 1rem auto 0;
  border: 2px solid var(--gold);
  border-radius: 999px;
  padding: 0.95rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(125, 94, 199, 0.12);
  width: fit-content;
}

.section-heading .secondary-button::before {
  content: "▶";
  margin-right: 0.5rem;
  font-size: 1.2em;
}

.section-heading .secondary-button:hover {
  color: var(--text);
}

.timeline {
  display: grid;
  gap: 1.5rem;
  background: rgba(31, 29, 45, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 24px;
  background: rgba(31, 29, 45, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.timeline-item.alternate {
  background: rgba(31, 29, 45, 0.85);
  backdrop-filter: blur(10px);
}

.timeline-meta {
  font-weight: 700;
  color: var(--gold);
}

.timeline-card {
  display: grid;
  gap: 1rem;
}

.timeline-card p {
  margin: 0;
  color: var(--muted);
}

.about-section {
  margin-top: 2rem;
}

.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.guild-logo-large {
  width: 150px;
  height: 150px;
  overflow: hidden;
  border-radius: 50%;
  border: 3px solid var(--gold);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.guild-logo-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text {
  max-width: 800px;
  background: rgba(31, 29, 45, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  text-align: center;
}

.about-text h2 {
  margin-top: 0;
  color: var(--gold);
  font-size: 2.5rem;
}

.about-text p {
  margin: 1.5rem 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.1rem;
}

.modal {
  position: fixed;
  inset: 0;

  display: flex;
  justify-content: center;
  align-items: flex-start;

  overflow-y: auto;

  background: rgba(0, 0, 0, 0.75);

  padding: 1.5rem;
  padding-top: 4rem;
  padding-bottom: 4rem;

  z-index: 100;
}

.modal-panel {
  width: min(560px, 100%);
  max-height: none;

  margin: auto 0;
}

.modal.hidden {
  display: none;
}

.modal-panel {
  width: min(560px, 100%);
  background: #161421;
  border-radius: 28px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.42);
  position: relative;
  margin-top: 2rem;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  color: var(--text);
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

form {
  display: grid;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.35rem;
  color: var(--text);
  font-weight: 600;
}

.role-options {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  margin: 0;
}

.radio-label {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-right: 1rem;
  font-weight: 500;
}

input,
textarea {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0.95rem 1rem;
}

textarea {
  min-height: 80px;
  resize: vertical;
}

.status-panel {
  text-align: center;
  max-width: 420px;
}

#statusTitle {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--gold);
}

#statusMessage {
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.status-panel {
  text-align: center;
  max-width: 420px;

  border: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.status-panel.success {
  border-color: #4ade80;
  box-shadow: 0 0 30px rgba(74, 222, 128, 0.18);
}

.status-panel.error {
  border-color: #f87171;
  box-shadow: 0 0 30px rgba(248, 113, 113, 0.18);
}

.status-panel.success #statusTitle {
  color: #4ade80;
}

.status-panel.error #statusTitle {
  color: #f87171;
}

#statusTitle {
  margin-top: 0;
  margin-bottom: 1rem;
}

#statusMessage {
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.raid-progress-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;

  margin-bottom: 1.25rem;
}

.raid-progress {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.raid-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  font-weight: 600;
  color: var(--text);

  font-size: 0.95rem;
}

.progress-bar {
  width: 100%;
  height: 16px;

  background: rgba(255, 255, 255, 0.08);

  border-radius: 999px;
  overflow: hidden;

  border: 1px solid rgba(255, 255, 255, 0.08);
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  box-sizing: border-box;

  transition: width 0.4s ease;
}

.normal-fill {
  background: linear-gradient(90deg, #22c55e, #4ade80);

  border: 2px solid rgba(255, 215, 120, 0.9);
}

.heroic-fill {
  background: linear-gradient(90deg, #3b82f6, #60a5fa);

  border: 2px solid rgba(255, 215, 120, 0.9);
}

.mythic-fill {
  position: relative;
  overflow: hidden;

  background: linear-gradient(90deg, #9333ea, #c084fc);
}

.mythic-fill::after {
  content: "";

  position: absolute;
  top: 0;
  left: -40%;

  width: 40%;
  height: 100%;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );

  animation: mythicShimmer 2.2s infinite;
}

@keyframes mythicShimmer {
  0% {
    left: -40%;
  }

  100% {
    left: 140%;
  }
}

@media (max-width: 860px) {
  .site-header {
    justify-content: flex-end;
    padding: 1rem;
  }

  .site-title-large {
    font-size: 1.8rem;
  }

  .hamburger-button {
    display: block;
    z-index: 30;
  }

  .main-nav {
    position: fixed;

    top: 0;
    right: -100%;

    width: 260px;
    height: 100vh;

    background: rgba(16, 14, 23, 0.98);
    backdrop-filter: blur(14px);

    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;

    padding: 6rem 2rem 2rem;

    transition: right 0.3s ease;

    border-left: 1px solid rgba(255, 255, 255, 0.08);
  }

  .main-nav.open {
    right: 0;
  }

  .main-nav a {
    font-size: 1.1rem;
    width: 100%;
    padding: 0.75rem 0;
  }
}

@media (min-width: 861px) {
  body {
    background-attachment: fixed;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 1rem;
  }

  main {
    padding: 1rem 1rem 3rem;
  }

  .hero-card {
    min-height: auto;
  }

  .about-panel {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-icon {
    justify-self: center;
  }

  .button-row {
    flex-direction: column;
    align-items: center;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
    max-width: 320px;
  }

  .modal {
    padding: 1rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .modal-panel {
    padding: 1.5rem;
    border-radius: 20px;
  }
}
