/* =========================================================
   RAMERIAN EMPIRE — COMMUNITY SECTION
   Imperial / Royal Theme
========================================================= */

:root {
  --black: #07030d;
  --deep-purple: #100519;
  --purple: #2a103d;
  --royal-purple: #4d176b;
  --gold: #d4af37;
  --gold-light: #f0d778;
  --gold-dark: #8f7020;
  --cream: #eee7d8;
  --muted: #aaa1af;
  --border: rgba(212, 175, 55, .25);
  --panel: rgba(17, 7, 27, .82);
}


/* =========================================================
   RESET
========================================================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(
      ellipse at 50% 0%,
      rgba(76, 23, 107, .25),
      transparent 48%
    ),
    var(--black);

  color: var(--cream);

  font-family: Inter, Arial, sans-serif;

  overflow-x: hidden;
}

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


/* =========================================================
   AMBIENT LIGHT
========================================================= */

.community-page::before {
  content: "";

  position: fixed;

  width: 700px;
  height: 700px;

  top: -250px;
  left: 50%;

  transform: translateX(-50%);

  border-radius: 50%;

  background: rgba(86, 27, 120, .18);

  filter: blur(130px);

  pointer-events: none;

  z-index: -3;
}


/* =========================================================
   HEADER
========================================================= */

.community-navbar {
  position: fixed;

  top: 0;
  left: 0;

  width: 100%;

  z-index: 1000;

  background:
    linear-gradient(
      180deg,
      rgba(5, 2, 10, .98),
      rgba(5, 2, 10, .86)
    );

  backdrop-filter: blur(18px);

  border-bottom:
    1px solid rgba(212, 175, 55, .3);

  box-shadow:
    0 8px 35px rgba(0, 0, 0, .45);
}

.community-nav-shell {
  max-width: 1500px;

  height: 105px;

  margin: auto;

  padding: 0 45px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 35px;
}


/* =========================================================
   BRAND
========================================================= */

.community-brand {
  display: flex;

  align-items: center;

  gap: 15px;

  min-width: 280px;
}

.community-brand img {
  width: 62px;
  height: 62px;

  object-fit: contain;

  filter:
    drop-shadow(
      0 0 8px rgba(212, 175, 55, .3)
    );
}

.community-brand-text {
  display: flex;

  flex-direction: column;
}

.community-brand-text strong {
  color: var(--gold);

  font-family: Cinzel, Georgia, serif;

  font-size: 22px;

  letter-spacing: 3px;
}

.community-brand-text span {
  color: #8d8393;

  font-size: 9px;

  letter-spacing: 3px;

  text-transform: uppercase;

  margin-top: 4px;
}


/* =========================================================
   NAVIGATION
========================================================= */

.community-nav {
  display: flex;

  align-items: center;

  gap: 38px;
}

.community-nav > a,
.community-dropdown > button {
  position: relative;

  border: 0;

  background: none;

  color: #d7d1dc;

  font-family: Inter, Arial, sans-serif;

  font-size: 13px;

  font-weight: 600;

  letter-spacing: 2px;

  text-transform: uppercase;

  cursor: pointer;

  padding: 12px 0;
}

.community-nav > a::after,
.community-dropdown > button::after {
  content: "";

  position: absolute;

  bottom: 1px;
  left: 0;

  width: 100%;
  height: 2px;

  background: var(--gold);

  transform: scaleX(0);

  transition: transform .3s ease;
}

.community-nav > a:hover,
.community-nav > a.active,
.community-dropdown > button:hover {
  color: var(--gold);
}

.community-nav > a:hover::after,
.community-nav > a.active::after,
.community-dropdown:hover > button::after {
  transform: scaleX(1);
}


/* =========================================================
   DROPDOWN
========================================================= */

.community-dropdown {
  position: relative;
}

.community-dropdown > button {
  display: flex;

  align-items: center;

  gap: 9px;
}

.dropdown-arrow {
  font-size: 9px;

  transition: transform .3s ease;
}

.community-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;

  top: calc(100% + 20px);

  left: 50%;

  transform:
    translateX(-50%)
    translateY(-8px);

  width: 265px;

  padding: 10px;

  background:
    linear-gradient(
      145deg,
      rgba(29, 11, 43, .98),
      rgba(7, 3, 13, .98)
    );

  border:
    1px solid rgba(212, 175, 55, .4);

  box-shadow:
    0 20px 50px rgba(0, 0, 0, .55),
    0 0 30px rgba(212, 175, 55, .06);

  opacity: 0;

  visibility: hidden;

  transition:
    opacity .25s ease,
    transform .25s ease,
    visibility .25s ease;
}

.community-dropdown:hover .dropdown-menu {
  opacity: 1;

  visibility: visible;

  transform:
    translateX(-50%)
    translateY(0);
}

.dropdown-menu::before {
  content: "";

  position: absolute;

  top: -6px;
  left: 50%;

  width: 10px;
  height: 10px;

  background: #1d0b2b;

  border-left:
    1px solid rgba(212,175,55,.4);

  border-top:
    1px solid rgba(212,175,55,.4);

  transform: translateX(-50%) rotate(45deg);
}

.dropdown-menu a {
  display: block;

  padding: 16px 17px;

  color: #c9c1ce;

  font-family: Cinzel, Georgia, serif;

  font-size: 13px;

  letter-spacing: 1.5px;

  border-bottom:
    1px solid rgba(212,175,55,.1);

  transition:
    background .25s ease,
    color .25s ease,
    padding-left .25s ease;
}

.dropdown-menu a:last-child {
  border-bottom: 0;
}

.dropdown-menu a:hover {
  background:
    rgba(212,175,55,.07);

  color: var(--gold-light);

  padding-left: 23px;
}

.dropdown-icon {
  color: var(--gold);

  margin-right: 8px;
}


/* =========================================================
   HEADER DISCORD BUTTON
========================================================= */

.community-join {
  min-width: 170px;

  padding: 14px 20px;

  text-align: center;

  color: #08030e;

  background: var(--gold);

  border: 1px solid var(--gold);

  font-family: Cinzel, Georgia, serif;

  font-size: 11px;

  font-weight: 700;

  letter-spacing: 1.5px;

  transition: .3s ease;
}

.community-join:hover {
  color: var(--gold);

  background: transparent;

  box-shadow:
    0 0 28px rgba(212,175,55,.2);
}


/* =========================================================
   HERO
========================================================= */

.imperial-hero {
  min-height: 620px;

  position: relative;

  display: flex;

  align-items: center;

  justify-content: center;

  text-align: center;

  padding:
    170px 25px
    100px;

  overflow: hidden;

  background:
    linear-gradient(
      180deg,
      rgba(5,2,10,.7),
      rgba(5,2,10,.25),
      #08030e
    );
}

.imperial-hero-image {
  position: absolute;

  inset: 0;

  background-image:
    url("../assets/images/roman-ruins.png");

  background-size: cover;

  background-position: center;

  opacity: .22;

  filter:
    grayscale(30%)
    brightness(.55)
    contrast(.95);

  transform: scale(1.03);

  pointer-events: none;
}

.imperial-hero-overlay {
  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(5,2,10,.9),
      transparent 35%,
      transparent 65%,
      rgba(5,2,10,.9)
    ),
    linear-gradient(
      180deg,
      rgba(5,2,10,.7),
      transparent 40%,
      #08030e 100%
    );
}

.imperial-hero-content {
  position: relative;

  z-index: 2;

  max-width: 1000px;
}

.imperial-kicker {
  color: var(--gold);

  font-size: 12px;

  font-weight: 600;

  letter-spacing: 6px;

  text-transform: uppercase;

  margin-bottom: 22px;
}

.imperial-hero h1 {
  font-family: Cinzel, Georgia, serif;

  font-size:
    clamp(48px, 7vw, 92px);

  line-height: 1;

  letter-spacing: 5px;

  text-shadow:
    0 4px 35px rgba(0,0,0,.8);
}

.imperial-hero h1 span {
  display: block;

  color: var(--gold);

  margin-top: 10px;
}

.imperial-subtitle {
  max-width: 700px;

  margin:
    28px auto 0;

  color: #c3bbc8;

  font-size: 16px;

  line-height: 1.9;

  letter-spacing: .4px;
}


/* =========================================================
   ORNAMENT
========================================================= */

.ornament {
  display: flex;

  align-items: center;

  justify-content: center;

  gap: 15px;

  margin: 28px auto;
}

.ornament::before,
.ornament::after {
  content: "";

  width: 130px;

  height: 1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      var(--gold)
    );
}

.ornament::after {
  background:
    linear-gradient(
      90deg,
      var(--gold),
      transparent
    );
}

.ornament-symbol {
  color: var(--gold);

  font-size: 13px;
}


/* =========================================================
   PAGE CONTENT
========================================================= */

.imperial-content {
  position: relative;

  max-width: 1200px;

  margin: auto;

  padding:
    90px 30px
    130px;
}


/* =========================================================
   SECTION
========================================================= */

.imperial-section {
  position: relative;

  margin-bottom: 95px;
}

.section-number {
  color: rgba(212,175,55,.38);

  font-family: Cinzel, Georgia, serif;

  font-size: 11px;

  letter-spacing: 4px;

  margin-bottom: 12px;
}

.imperial-section h2 {
  color: var(--gold);

  font-family: Cinzel, Georgia, serif;

  font-size:
    clamp(30px, 4vw, 48px);

  letter-spacing: 2px;

  margin-bottom: 25px;
}

.imperial-section h3 {
  color: var(--gold-light);

  font-family: Cinzel, Georgia, serif;

  font-size: 21px;

  letter-spacing: 1.5px;

  margin-bottom: 12px;
}

.imperial-section p {
  max-width: 850px;

  color: #b7afba;

  font-size: 15px;

  line-height: 1.95;

  margin-bottom: 18px;
}


/* =========================================================
   IMPERIAL PANEL
========================================================= */

.imperial-panel {
  position: relative;

  padding: 42px;

  background:
    linear-gradient(
      145deg,
      rgba(40,15,56,.7),
      rgba(10,4,17,.85)
    );

  border:
    1px solid var(--border);

  box-shadow:
    0 20px 60px rgba(0,0,0,.3);

  margin: 35px 0;
}

.imperial-panel::before {
  content: "";

  position: absolute;

  top: 10px;
  left: 10px;

  width: 35px;
  height: 35px;

  border-top:
    1px solid var(--gold);

  border-left:
    1px solid var(--gold);

  opacity: .55;
}

.imperial-panel::after {
  content: "";

  position: absolute;

  right: 10px;
  bottom: 10px;

  width: 35px;
  height: 35px;

  border-right:
    1px solid var(--gold);

  border-bottom:
    1px solid var(--gold);

  opacity: .55;
}


/* =========================================================
   FOUR PILLARS
========================================================= */

.pillars {
  display: grid;

  grid-template-columns:
    repeat(4, 1fr);

  gap: 18px;

  margin-top: 45px;
}

.pillar {
  min-height: 250px;

  padding: 30px 25px;

  text-align: center;

  background:
    linear-gradient(
      160deg,
      rgba(47,17,65,.75),
      rgba(10,4,17,.9)
    );

  border:
    1px solid rgba(212,175,55,.2);

  transition:
    transform .3s ease,
    border-color .3s ease,
    box-shadow .3s ease;
}

.pillar:hover {
  transform: translateY(-7px);

  border-color:
    rgba(212,175,55,.65);

  box-shadow:
    0 18px 45px rgba(0,0,0,.35);
}

.pillar-icon {
  color: var(--gold);

  font-size: 34px;

  margin-bottom: 20px;
}

.pillar h3 {
  font-size: 18px;

  margin-bottom: 13px;
}

.pillar p {
  font-size: 12px;

  line-height: 1.8;

  color: #99919f;
}


/* =========================================================
   INSTITUTIONS
========================================================= */

.institutions {
  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap: 18px;

  margin-top: 35px;
}

.institution {
  padding: 28px;

  background:
    rgba(255,255,255,.025);

  border-left:
    2px solid var(--gold);
}

.institution h3 {
  margin-bottom: 8px;
}

.institution p {
  margin: 0;

  font-size: 13px;
}


/* =========================================================
   MOTTO
========================================================= */

.imperial-motto {
  position: relative;

  text-align: center;

  padding:
    90px 30px;

  margin:
    70px 0 0;

  background:
    radial-gradient(
      ellipse at center,
      rgba(74,22,101,.4),
      transparent 65%
    );

  border-top:
    1px solid rgba(212,175,55,.18);

  border-bottom:
    1px solid rgba(212,175,55,.18);
}

.motto-laurel {
  width: 170px;

  max-width: 45vw;

  opacity: .72;

  object-fit: contain;

  filter:
    drop-shadow(
      0 0 8px rgba(212,175,55,.25)
    );

  margin-bottom: 20px;
}

.imperial-motto h2 {
  color: var(--gold);

  font-family: Cinzel, Georgia, serif;

  font-size:
    clamp(28px, 4vw, 52px);

  letter-spacing: 3px;

  margin-bottom: 18px;
}

.imperial-motto p {
  color: #a49aa9;

  font-size: 13px;

  line-height: 1.9;

  max-width: 650px;

  margin: auto;
}


/* =========================================================
   LAWS PAGE
========================================================= */

.laws-grid {
  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap: 20px;
}

.law-card {
  position: relative;

  padding: 35px;

  min-height: 240px;

  background:
    linear-gradient(
      145deg,
      rgba(37,14,53,.8),
      rgba(9,4,15,.9)
    );

  border:
    1px solid rgba(212,175,55,.2);

  transition:
    transform .3s ease,
    border-color .3s ease;
}

.law-card:hover {
  transform: translateY(-5px);

  border-color:
    rgba(212,175,55,.6);
}

.law-number {
  color: rgba(212,175,55,.4);

  font-family: Cinzel, Georgia, serif;

  font-size: 12px;

  letter-spacing: 3px;

  margin-bottom: 10px;
}

.law-card h2 {
  color: var(--gold);

  font-family: Cinzel, Georgia, serif;

  font-size: 21px;

  letter-spacing: 1.5px;

  margin-bottom: 17px;
}

.law-card p {
  color: #aaa1ae;

  font-size: 13px;

  line-height: 1.85;

  margin-bottom: 7px;
}


/* =========================================================
   PUNISHMENT
========================================================= */

.punishment {
  margin-top: 55px;

  padding: 45px;

  background:
    linear-gradient(
      145deg,
      rgba(55,17,24,.5),
      rgba(12,4,15,.9)
    );

  border:
    1px solid rgba(180,55,55,.35);
}

.punishment h2 {
  color: #e0b7b7;

  font-family: Cinzel, Georgia, serif;

  font-size: 26px;

  margin-bottom: 30px;
}

.punishment-list {
  display: grid;

  grid-template-columns:
    repeat(4, 1fr);

  gap: 15px;

  margin-bottom: 30px;
}

.punishment-item {
  padding: 22px;

  text-align: center;

  border:
    1px solid rgba(180,55,55,.2);

  background:
    rgba(0,0,0,.2);
}

.punishment-item strong {
  display: block;

  color: #e1d5d5;

  font-family: Cinzel, Georgia, serif;

  font-size: 13px;

  margin-top: 8px;
}

.punishment-item span {
  font-size: 25px;
}

.punishment-note {
  color: #958b95;

  font-size: 12px;

  line-height: 1.8;
}


/* =========================================================
   RANKS
========================================================= */

.rank-section {
  margin-bottom: 60px;
}

.rank-section-header {
  display: flex;

  align-items: center;

  gap: 18px;

  padding-bottom: 15px;

  margin-bottom: 18px;

  border-bottom:
    1px solid rgba(212,175,55,.2);
}

.rank-section-icon {
  font-size: 31px;
}

.rank-section-header h2 {
  color: var(--gold);

  font-family: Cinzel, Georgia, serif;

  font-size: 25px;

  letter-spacing: 2px;
}

.rank-list {
  display: flex;

  flex-direction: column;

  gap: 10px;
}

.rank-card {
  display: grid;

  grid-template-columns: 95px 1fr;

  align-items: center;

  padding: 23px 28px;

  background:
    linear-gradient(
      90deg,
      rgba(39,15,53,.7),
      rgba(12,4,18,.85)
    );

  border:
    1px solid rgba(212,175,55,.14);

  transition:
    border-color .3s ease,
    transform .3s ease;
}

.rank-card:hover {
  transform: translateX(6px);

  border-color:
    rgba(212,175,55,.55);
}

.rank-order {
  color: rgba(212,175,55,.4);

  font-family: Cinzel, Georgia, serif;

  font-size: 12px;

  letter-spacing: 2px;
}

.rank-name {
  color: #eee7d8;

  font-family: Cinzel, Georgia, serif;

  font-size: 18px;

  letter-spacing: 1.5px;

  margin-bottom: 5px;
}

.rank-feminine {
  color: var(--gold);

  font-size: 11px;

  margin-left: 5px;
}

.rank-description {
  color: #99909f;

  font-size: 12px;

  line-height: 1.7;
}

.rank-card.supreme {
  border:
    1px solid rgba(212,175,55,.65);

  background:
    linear-gradient(
      90deg,
      rgba(74,22,101,.55),
      rgba(29,10,40,.9)
    );

  box-shadow:
    0 0 35px rgba(212,175,55,.07);
}

.rank-card.supreme .rank-name {
  color: var(--gold-light);

  font-size: 22px;
}


/* =========================================================
   FULL RANK ORDER
========================================================= */

.rank-order-panel {
  text-align: center;

  margin-top: 70px;

  padding: 50px 35px;

  background:
    radial-gradient(
      ellipse at center,
      rgba(70,20,98,.35),
      transparent 70%
    );

  border:
    1px solid rgba(212,175,55,.22);
}

.rank-order-panel h2 {
  color: var(--gold);

  font-family: Cinzel, Georgia, serif;

  font-size: 27px;

  letter-spacing: 2px;

  margin-bottom: 28px;
}

.full-rank-order {
  color: #c8c0cc;

  font-family: Cinzel, Georgia, serif;

  font-size: 13px;

  line-height: 2.3;

  letter-spacing: 1px;
}


/* =========================================================
   FOOTER
========================================================= */

.community-footer {
  text-align: center;

  padding:
    70px 20px
    40px;

  background: #050209;

  border-top:
    1px solid rgba(212,175,55,.2);
}

.community-footer h2 {
  color: var(--gold);

  font-family: Cinzel, Georgia, serif;

  font-size: 23px;

  letter-spacing: 3px;
}

.community-footer p {
  color: #77717d;

  font-size: 10px;

  letter-spacing: 3px;

  margin-top: 8px;
}

.footer-rule {
  width: 90px;

  height: 1px;

  background: var(--gold);

  margin: 25px auto;
}

.community-footer small {
  color: #555;

  font-size: 10px;
}


/* =========================================================
   MOBILE NAV
========================================================= */

.mobile-menu-button {
  display: none;

  border: 0;

  background: none;

  color: var(--gold);

  font-size: 28px;

  cursor: pointer;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {

  .community-nav-shell {
    padding: 0 25px;
  }

  .community-nav {
    gap: 22px;
  }

  .community-brand-text strong {
    font-size: 18px;
  }

  .community-join {
    min-width: 140px;
  }

  .pillars {
    grid-template-columns:
      repeat(2, 1fr);
  }

  .punishment-list {
    grid-template-columns:
      repeat(2, 1fr);
  }
}


@media (max-width: 850px) {

  .community-nav-shell {
    height: 85px;
  }

  .community-nav {
    display: none;
  }

  .mobile-menu-button {
    display: block;
  }

  .community-join {
    display: none;
  }

  .community-brand {
    min-width: 0;
  }

  .community-brand img {
    width: 50px;
    height: 50px;
  }

  .community-brand-text strong {
    font-size: 17px;
  }

  .community-brand-text span {
    font-size: 7px;
  }

  .imperial-hero {
    min-height: 550px;

    padding:
      140px 20px
      80px;
  }

  .imperial-content {
    padding:
      70px 20px
      90px;
  }

  .laws-grid,
  .institutions {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 600px) {

  .community-nav-shell {
    padding: 0 18px;
  }

  .community-brand-text span {
    display: none;
  }

  .community-brand-text strong {
    font-size: 15px;

    letter-spacing: 1.5px;
  }

  .imperial-kicker {
    font-size: 9px;

    letter-spacing: 4px;
  }

  .imperial-hero h1 {
    font-size: 43px;

    letter-spacing: 2px;
  }

  .imperial-subtitle {
    font-size: 13px;
  }

  .ornament::before,
  .ornament::after {
    width: 65px;
  }

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

  .imperial-panel {
    padding: 28px 22px;
  }

  .laws-grid {
    gap: 13px;
  }

  .law-card {
    padding: 28px 22px;
  }

  .punishment {
    padding: 28px 20px;
  }

  .punishment-list {
    grid-template-columns: 1fr;
  }

  .rank-card {
    grid-template-columns: 65px 1fr;

    padding:
      20px 17px;
  }

  .rank-name {
    font-size: 15px;
  }

  .rank-feminine {
    display: block;

    margin-left: 0;

    margin-top: 3px;
  }

  .full-rank-order {
    font-size: 11px;
  }
}
