/* ==================== FACTIONS PAGE STYLES ==================== */
/* Animus dark theme — Red (Templar) vs Cyan (Assassin) accents */

/* ---- Hero Split Screen ---- */
.factions-hero {
  position: relative;
  width: 100%;
  min-height: 88vh;
  display: flex;
  overflow: hidden;
}

.faction-side {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4rem 3rem;
  overflow: hidden;
  cursor: url("../Media/Unavailable.cur"), pointer;
  transition: flex 0.6s ease;
}

.factions-hero:hover .faction-side {
  flex: 0.85;
}

.factions-hero .faction-side:hover {
  flex: 1.3;
}

/* Assassins side */
.faction-assassins {
  background: #030608;
}

.faction-assassins-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 30% 50%,
    rgba(0, 210, 255, 0.06) 0%,
    transparent 70%
  );
  z-index: 0;
}

/* Templars side */
.faction-templars {
  background: #080303;
}

.faction-templars-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 70% 50%,
    rgba(255, 51, 51, 0.08) 0%,
    transparent 70%
  );
  z-index: 0;
}

/* Divider */
.factions-divider {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 30;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: var(--bg-black);
  border: 2px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

.factions-divider-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 20%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.08) 80%,
    transparent 100%
  );
  transform: translateX(-50%);
  z-index: 20;
  pointer-events: none;
}

/* Faction content */
.faction-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 400px;
}

.faction-icon {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  display: block;
  transition:
    transform 0.3s ease,
    text-shadow 0.3s ease;
}

.faction-assassins .faction-icon {
  color: rgba(0, 210, 255, 0.5);
}

.faction-side:hover .faction-icon {
  transform: scale(1.15);
}

.faction-assassins:hover .faction-icon {
  color: var(--animus-blue);
  text-shadow: 0 0 20px var(--animus-glow);
}

.faction-templars .faction-icon {
  color: rgba(255, 51, 51, 0.5);
}

.faction-templars:hover .faction-icon {
  color: var(--primary-red);
  text-shadow: 0 0 20px var(--templar-glow);
}

.faction-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-white);
  line-height: 0.95;
  margin-bottom: 1rem;
  animation: none;
  text-shadow: none;
}

.faction-assassins .faction-title span {
  color: var(--animus-blue);
}
.faction-templars .faction-title span {
  color: var(--primary-red);
}

.faction-creed {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 2rem;
  line-height: 1.5;
  font-family: "Inter", sans-serif;
}

.btn-faction {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.8rem;
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: url("../Media/Unavailable.cur"), pointer;
}

.btn-assassins {
  border: 1px solid rgba(0, 210, 255, 0.4);
  color: var(--animus-blue);
  background: rgba(0, 210, 255, 0.05);
}

.btn-assassins:hover {
  background: rgba(0, 210, 255, 0.15);
  box-shadow: 0 0 15px var(--animus-glow);
}

.btn-templars {
  border: 1px solid rgba(255, 51, 51, 0.4);
  color: var(--primary-red);
  background: rgba(255, 51, 51, 0.05);
}

.btn-templars:hover {
  background: rgba(255, 51, 51, 0.15);
  box-shadow: 0 0 15px var(--templar-glow);
}

/* "More" / Explore button at bottom of each tenet column */
.tenet-more-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  width: 100%;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 2px;
  padding: 0.7rem 1.5rem;
}

/* ---- Tenets Comparison Section ---- */
.factions-section {
  padding: 5rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.factions-section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.factions-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--animus-blue);
  margin-bottom: 1rem;
}

.factions-label::before,
.factions-label::after {
  content: "";
  display: inline-block;
  width: 2rem;
  height: 1px;
  background: var(--animus-blue);
}

.factions-section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--text-white);
  text-transform: uppercase;
  letter-spacing: 3px;
  animation: none;
  text-shadow: none;
}

/* Tenets grid */
.tenets-grid {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 0;
  align-items: start;
}

.tenets-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tenet-entry {
  background: rgba(10, 14, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  padding: 1.2rem 1.5rem;
  transition: all 0.3s ease;
  position: relative;
}

.tenet-entry:hover {
  transform: translateY(-2px);
}

.tenets-assassins .tenet-entry {
  border-left: 3px solid rgba(0, 210, 255, 0.4);
}

.tenets-assassins .tenet-entry:hover {
  border-left-color: var(--animus-blue);
  box-shadow: -4px 0 15px rgba(0, 210, 255, 0.1);
}

.tenets-templars .tenet-entry {
  border-right: 3px solid rgba(255, 51, 51, 0.4);
}

.tenets-templars .tenet-entry:hover {
  border-right-color: var(--primary-red);
  box-shadow: 4px 0 15px rgba(255, 51, 51, 0.1);
}

.tenet-num {
  font-size: 0.65rem;
  font-family: monospace;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.tenets-assassins .tenet-num {
  color: var(--animus-blue);
}
.tenets-templars .tenet-num {
  color: var(--primary-red);
}

.tenet-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--text-white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
  animation: none;
  text-shadow: none;
}

.tenet-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  font-family: "Inter", sans-serif;
  margin: 0;
}

.tenets-vs {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 1.5rem;
  gap: 3rem;
}

.vs-badge {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 700;
}

/* ---- Notable Figures ---- */
.figures-section {
  background: rgba(5, 5, 5, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 5rem 1.5rem;
  position: relative;
}

.figures-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--animus-blue),
    var(--primary-red),
    transparent
  );
}

.figures-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.figures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.figure-card {
  background: rgba(10, 14, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 3px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.figure-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  opacity: 0;
  transition: opacity 0.3s;
}

.figure-card:hover {
  transform: translateY(-4px);
}

.figure-card.ac .figure-card::before,
.figure-card.ac:hover::before {
  background: linear-gradient(
    90deg,
    transparent,
    var(--animus-blue),
    transparent
  );
  opacity: 1;
}

.figure-card.ac {
  border-bottom: 1px solid rgba(0, 210, 255, 0.15);
}

.figure-card.ac:hover {
  border-color: rgba(0, 210, 255, 0.3);
  box-shadow: 0 8px 25px rgba(0, 210, 255, 0.08);
}

.figure-card.tm {
  border-bottom: 1px solid rgba(255, 51, 51, 0.15);
}

.figure-card.tm:hover {
  border-color: rgba(255, 51, 51, 0.3);
  box-shadow: 0 8px 25px rgba(255, 51, 51, 0.08);
}

.figure-icon-wrap {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.ac .figure-icon-wrap {
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.2);
  color: var(--animus-blue);
}

.tm .figure-icon-wrap {
  background: rgba(255, 51, 51, 0.08);
  border: 1px solid rgba(255, 51, 51, 0.2);
  color: var(--primary-red);
}

.figure-name {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text-white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.3rem;
  animation: none;
  text-shadow: none;
}

.figure-era {
  font-size: 0.7rem;
  font-family: monospace;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.ac .figure-era {
  color: var(--animus-blue);
}
.tm .figure-era {
  color: var(--primary-red);
}

.figure-desc {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.4;
  font-family: "Inter", sans-serif;
  margin: 0;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .factions-hero {
    flex-direction: column;
    min-height: auto;
  }

  .faction-side {
    min-height: 50vh;
    padding: 3rem 1.5rem;
  }

  .factions-divider {
    display: none;
  }
  .factions-divider-line {
    display: none;
  }

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

  .tenets-vs {
    display: none;
  }

  .factions-hero:hover .faction-side,
  .factions-hero .faction-side:hover {
    flex: 1;
  }
}
