/*
 * Legacy layout compatibility for the original Aughen theme when using Bootstrap 5.
 * This preserves the old site structure and spacing while keeping the BS5 asset set.
 */

:root {
  color-scheme: light;
}

body {
  font-family: 'Source Sans Pro', sans-serif;
  background: #050505;
  color: #c9c9c9;
}

html,
body {
  overflow-x: hidden;
}

a {
  color: inherit;
}

a:hover,
a:focus {
  color: inherit;
}

.container,
.container-fluid {
  width: 100%;
  max-width: 1170px;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.row > * {
  box-sizing: border-box;
}

.nav-container,
nav,
.nav-inner,
.navbar {
  background: #050505;
}

body.server-page {
  background: #050505;
  color: #f4f1e8;
}

body.server-page .animated {
  -webkit-animation-duration: 0.35s;
  animation-duration: 0.35s;
}

body.server-page .wow {
  visibility: visible !important;
}

body.server-page #single-project {
  background: #0a0a0a;
  padding: 40px 0 80px;
}

body.server-page #single-project > .container {
  max-width: 1500px;
}

body.server-page #header .server-header-content {
  text-align: center;
}

.server-filter {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 28px;
}


.server-filter-btn:hover,
.server-filter-btn:focus,
.server-filter-btn.active {
  background: #304b32;
  color: #ffffff;
}

body.server-page #single-project .server-grid > .server-tile.is-hidden {
  display: none;
}

body.server-page #single-project .row > .col-md-6,
body.server-page #single-project .row > .col-sm-6,
body.server-page #single-project .server-grid > .col-md-6,
body.server-page #single-project .server-grid > .col-sm-6 {
  background: rgba(18, 18, 18, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  margin-bottom: 24px;
  padding: 24px 22px;
}

body.server-page #single-project .server-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-right: 0;
  margin-left: 0;
}

body.server-page #single-project .server-grid > .col-md-6,
body.server-page #single-project .server-grid > .col-sm-6 {
  width: auto;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
  display: flex;
  flex-direction: column;
  min-height: 760px;
  position: relative;
  padding-bottom: 190px;
}

body.server-page #single-project .server-grid > .server-tile {
  border-radius: 0;
}

body.server-page #single-project .server-grid > .col-md-6 > p,
body.server-page #single-project .server-grid > .col-sm-6 > p {
  display: flex;
  flex: 1;
  flex-direction: column;
  margin-bottom: 0;
}

@media (max-width: 767px) {
  body.server-page #single-project .server-grid {
    grid-template-columns: 1fr;
  }

  body.server-page #single-project .server-grid > .col-md-6,
  body.server-page #single-project .server-grid > .col-sm-6 {
    min-height: 0;
    padding-bottom: 24px;
    position: static;
  }

  .server-card-footer {
    position: static;
  }
}

.server-section-title {
  color: #f4f1e8;
  font-size: 2rem;
  margin-bottom: 18px;
}

.server-card-image {
  display: block;
  width: 100%;
  max-width: 290px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  border-radius: 0;
  margin-bottom: 16px;
}

body.server-page #single-project .server-card-image {
  max-width: 100%;
}

.server-card-list {
  color: #d6d0c6;
  margin-top: 18px;
  padding-left: 18px;
}

.server-card-list li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.server-status-box {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0;
  background: rgba(255,255,255,0.02);
}

.server-card-footer {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
}

.server-status-text,
.server-offline {
  color: #f9d6d6;
  margin: 0 0 8px;
}

.server-offline {
  font-weight: 700;
}


.server-page .server-control-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.server-page .server-action-btn {
  appearance: none;
  border: 1px solid rgba(139, 185, 126, 0.8);
  background: linear-gradient(180deg, rgba(30, 45, 31, 0.96), rgba(15, 22, 17, 0.98));
  color: #edf7e8;
  min-width: 84px;
  padding: 13px 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  border-radius: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.server-page .server-action-btn:hover,
.server-page .server-action-btn:focus {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.server-page .server-action-btn.stop {
  border-color: rgba(202, 102, 102, 0.9);
  background: linear-gradient(180deg, rgba(59, 28, 28, 0.96), rgba(28, 14, 14, 0.98));
  color: #ffe7e7;
}

.server-page .server-action-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

#single-project .btn-secondary {
  display: inline-block;
  margin-top: 6px;
  margin-bottom: 12px;
  padding: 11px 18px;
  border: 1px solid rgba(200, 170, 89, 0.5);
  background: rgba(12, 12, 12, 0.95);
  color: #f4f1e8;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  text-decoration: none;
}

.server-map-link {
  margin: 20px 0 22px;
}

.server-map-link .btn-secondary {
  margin: 0;
  padding: 10px 16px;
  border-color: rgba(139, 185, 126, 0.78);
  background: linear-gradient(180deg, #304b32, #182719);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.28), 0 5px 0 rgba(0, 0, 0, 0.25);
  color: #edf7e8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12rem;
  border-radius: 0;
}

.server-map-link .btn-secondary:hover,
.server-map-link .btn-secondary:focus {
  background: linear-gradient(180deg, #3d6040, #203522);
  color: #ffffff;
  transform: translateY(-1px);
}

#single-project .btn-secondary:hover,
#single-project .btn-secondary:focus {
  background: rgba(26, 26, 26, 0.95);
  color: #ffffff;
}

.discord-widget {
  display: inline-block;
  max-width: 500px;
  margin-bottom: 18px;
}

.discord-widget img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.server-support-title {
  color: #f4f1e8;
  font-size: 2rem;
  margin-bottom: 18px;
}

body.server-auth-page {
  background: #050505;
  color: #f4f1e8;
  font-family: 'Source Sans Pro', sans-serif;
}

.server-auth-hero {
  min-height: 360px;
  padding-top: 100px;
  padding-bottom: 50px;
}

.server-auth-hero .header-thumb {
  max-width: 760px;
}

.server-auth-shell {
  padding: 30px 0 80px;
}

.server-auth-panel {
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
}

.panel-label {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.03);
  color: #e0dbcd;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18rem;
  text-transform: uppercase;
}

.auth-panel h2 {
  margin-top: 0;
  margin-bottom: 18px;
}

.server-login-form {
  margin-top: 24px;
}

.server-login-form .field-group {
  margin-bottom: 18px;
}

.server-login-form label {
  display: block;
  margin-bottom: 8px;
  color: #e6dcc7;
  font-size: 13px;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
}

.server-login-form input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(14, 14, 14, 0.9);
  color: #f4f1e8;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.server-login-form input:focus {
  border-color: rgba(214, 178, 90, 0.8);
  box-shadow: 0 0 0 3px rgba(214, 178, 90, 0.14);
}

.auth-error {
  margin: 0 0 18px;
  padding: 12px 14px;
  background: rgba(155, 34, 34, 0.18);
  border: 1px solid rgba(220, 98, 98, 0.48);
  color: #ffd9d9;
  font-weight: 600;
}

.auth-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.auth-help {
  margin-top: 18px;
  margin-bottom: 0;
  color: #c3cad5;
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 767px) {
  .server-auth-shell {
    padding-top: 12px;
  }

  .auth-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .server-auth-panel {
    padding: 16px 10px;
  }
}

.nav-inner {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar .container {
  max-width: none;
  padding-left: 28px;
  padding-right: 28px;
}

.navbar .row {
  margin-left: 0;
  margin-right: 0;
}

@media (max-width: 767px) {
  .navbar .container {
    padding-left: 14px;
    padding-right: 14px;
  }
}

.brand a {
  color: #f4f1e8;
  letter-spacing: 0.26rem;
}

.brand img {
  width: 22px;
  height: 22px;
  margin-right: 10px;
  vertical-align: middle;
}

.brand .brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #f4f1e8;
  letter-spacing: 0;
  text-decoration: none;
}

.brand a.brand-logo::before {
  display: none;
}

.brand-logo:hover,
.brand-logo:focus {
  color: #ffffff;
}

.brand-emblem {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid currentColor;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08rem;
  line-height: 1;
}

.brand .brand-icon {
  width: 38px;
  height: 38px;
  margin: 0;
  object-fit: cover;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-copy strong {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.18rem;
}

.brand-copy small {
  margin-top: 6px;
  color: #a9a39a;
  font-size: 9px;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
}

.brand-logo-main .brand-emblem {
  color: #e8e2d6;
}

.brand-logo-brewery .brand-emblem {
  color: #e8e2d6;
  border-radius: 0;
}

.brand-logo-brewery .brand-copy strong {
  color: #f4f1e8;
}

.brand-logo-minecraft .brand-emblem {
  background: #1b3541;
  border-color: #76b6ad;
  color: #b9e5d8;
  box-shadow: inset 0 0 0 2px rgba(8, 17, 22, 0.72);
}

.brand-logo-minecraft .brand-copy strong {
  color: #d4eee7;
}

.circle {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.menu-container .circle.dark.inline {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  width: auto;
  height: auto;
  padding: 0;
}

.menu-container .circle.dark.inline i {
  color: #ffffff;
}

.circle i,
.list-menu .ion-close-round {
  color: #f4f1e8;
}

.list-menu {
  background: rgba(6, 6, 6, 0.94);
}

#header.minecraft-hero {
  position: relative;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: #050505;
  min-height: 540px;
  padding-top: 92px;
  padding-bottom: 72px;
}

#header.minecraft-hero .header-thumb {
  background: rgba(10, 10, 10, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  color: #f4f1e8;
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 24px 26px;
}

#header.minecraft-hero .hero-badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: #e0dbcd;
  font-size: 12px;
  letter-spacing: 0.24rem;
  text-transform: uppercase;
}

#header.minecraft-hero h1 {
  color: #f5f2ea;
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: 0.2rem;
  margin: 0 0 14px;
}

#header.minecraft-hero h3 {
  color: #d9d2bf;
  font-size: 13px;
  line-height: 1.55;
  letter-spacing: 0.06rem;
  text-transform: none;
  max-width: 38rem;
  margin: 0 auto;
}

#header.minecraft-hero .hero-actions {
  margin-top: 20px;
}

#header.minecraft-hero .minecraft-btn {
  display: inline-block;
  margin: 8px 6px 0;
  padding: 12px 18px;
  min-width: 186px;
  border: 1px solid rgba(180, 202, 223, 0.62);
  background: rgba(10, 14, 22, 0.95);
  color: #f8f5ec;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16rem;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

#header.minecraft-hero .minecraft-btn:hover,
#header.minecraft-hero .minecraft-btn:focus {
  transform: translateY(-1px);
  background: rgba(20, 20, 20, 0.95);
  border-color: rgba(214, 178, 90, 0.7);
  color: #f3f0e7;
}

#header.minecraft-hero .minecraft-btn.primary {
  border-color: rgba(181, 200, 220, 0.75);
}

.section-heading {
  text-align: center;
  padding: 0;
}

#portfolio .section-heading {
  padding: 28px 15px 16px;
}

.section-tag {
  color: #c79c4c;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.42rem;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-heading h2 {
  color: #f4f1e8;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  letter-spacing: 0.3rem;
  margin: 0;
}

.page-section {
  background: #090d14;
  padding-top: 24px;
  padding-bottom: 44px;
}

.minecraft-panel {
  background: linear-gradient(180deg, rgba(24, 24, 24, 0.92), rgba(24, 24, 24, 0.92));
  border: 1px solid rgba(71, 71, 81, 0.72);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
  padding: 20px 18px 18px;
}

.minecraft-panel h2 {
  color: #f4f1e8;
  font-size: 1.7rem;
  letter-spacing: 0.14rem;
  line-height: 1.2;
  margin: 0 0 14px;
}

.minecraft-panel p {
  color: #c3cad5;
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: 0.02rem;
  margin-bottom: 10px;
}

.minecraft-feature-list {
  list-style: none;
  margin: 0;
  padding: 2px 0 0;
}

.minecraft-feature-list li {
  color: #d6dde8;
  font-size: 14px;
  letter-spacing: 0.01rem;
  line-height: 1.65;
  padding: 7px 0;
  border-bottom: 1px solid rgba(94, 120, 151, 0.36);
}

.minecraft-feature-list li:last-child {
  border-bottom: 0;
}

.minecraft-feature-list strong {
  color: #f2f5fa;
  font-weight: 700;
  margin-right: 4px;
}

.page-section .minecraft-btn {
  display: inline-block;
  margin: 8px 6px 0;
  padding: 12px 18px;
  min-width: 186px;
  border: 1px solid rgba(180, 202, 223, 0.62);
  background: rgba(10, 14, 22, 0.95);
  color: #f8f5ec;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16rem;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.page-section .minecraft-btn:hover,
.page-section .minecraft-btn:focus {
  transform: translateY(-1px);
  background: rgba(20, 20, 20, 0.95);
  border-color: rgba(214, 178, 90, 0.7);
  color: #f3f0e7;
}

.page-section .minecraft-btn.primary {
  border-color: rgba(181, 200, 220, 0.75);
}

.minecraft-image {
  width: 100%;
  margin-top: 10px;
  border: 1px solid rgba(96, 128, 163, 0.72);
  border-radius: 6px;
  display: block;
}

.page-section .stat-row {
  margin-top: 14px;
}

.discord-panel {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(96, 128, 163, 0.36);
  text-align: left;
}

.discord-widget {
  display: inline-block;
  width: 100%;
  margin-top: 4px;
}

.discord-widget img {
  display: block;
  width: 100%;
  height: auto;
}

.minecraft-stat {
  text-align: center;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 24px;
}

.minecraft-stat h3 {
  color: #f4f1e8;
  font-size: 1rem;
  letter-spacing: 0.24rem;
  margin: 0 0 12px;
}

.minecraft-stat p {
  color: #d0c9ad;
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 0 auto;
  max-width: 26ch;
}

#portfolio {
  background: #050505;
  padding-top: 40px;
  padding-bottom: 80px;
}

.filter-wrapper {
  text-align: center;
  margin: 0 0 32px;
}

.filter-wrapper li a {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #d8d2c5;
}

.filter-wrapper li a:hover,
.filter-wrapper li a:focus,
.filter-wrapper li a.selected,
.filter-wrapper li a.active {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #f4f1e8;
}

.iso-box-wrapper {
  margin-top: 0;
}

#portfolio .portfolio-thumb {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #111;
}

#portfolio .portfolio-thumb img {
  width: 100%;
  height: auto;
  object-fit: initial;
  display: block;
}

#portfolio .portfolio-thumb .portfolio-overlay {
  background: rgba(0, 0, 0, 0.55) !important;
}

#portfolio .portfolio-thumb:hover .portfolio-overlay {
  opacity: 1 !important;
}

#portfolio .portfolio-item h2 {
  color: #f4f1e8;
  margin-top: 16px;
  font-size: 1rem;
  letter-spacing: 0.28rem;
}

footer {
  background: #050505;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #c9c9c9;
}

.social-icon li a {
  color: #d4cdbd;
}

@media (max-width: 768px) {
  #portfolio .section-heading {
    padding-top: 22px;
    padding-bottom: 12px;
  }

  #header.minecraft-hero {
    min-height: 420px;
    padding-top: 80px;
    padding-bottom: 42px;
  }

  #header.minecraft-hero .header-thumb {
    padding: 22px 14px 20px;
  }

  #header.minecraft-hero .minecraft-btn {
    min-width: 0;
    width: 100%;
    max-width: 310px;
  }

  #portfolio .portfolio-thumb img {
    height: 220px;
  }

  .minecraft-panel {
    padding: 16px 14px;
    margin-bottom: 14px;
  }

  .minecraft-panel h2 {
    font-size: 1.24rem;
    letter-spacing: 0.08rem;
  }

  .minecraft-panel p,
  .minecraft-feature-list li {
    font-size: 15px;
  }

  .page-section .stat-row {
    margin-top: 10px;
  }

  .minecraft-stat {
    min-height: 0;
    padding: 22px 16px;
  }

  .minecraft-stat h3 {
    font-size: 0.9rem;
    letter-spacing: 0.16rem;
  }

  .minecraft-stat p {
    font-size: 0.98rem;
    max-width: none;
  }
}

.img-responsive {
  display: block;
  max-width: 100%;
  height: auto;
}

.col-xs-1,
.col-xs-2,
.col-xs-3,
.col-xs-4,
.col-xs-5,
.col-xs-6,
.col-xs-7,
.col-xs-8,
.col-xs-9,
.col-xs-10,
.col-xs-11,
.col-xs-12,
.col-sm-1,
.col-sm-2,
.col-sm-3,
.col-sm-4,
.col-sm-5,
.col-sm-6,
.col-sm-7,
.col-sm-8,
.col-sm-9,
.col-sm-10,
.col-sm-11,
.col-sm-12,
.col-md-1,
.col-md-2,
.col-md-3,
.col-md-4,
.col-md-5,
.col-md-6,
.col-md-7,
.col-md-8,
.col-md-9,
.col-md-10,
.col-md-11,
.col-md-12,
.col-lg-1,
.col-lg-2,
.col-lg-3,
.col-lg-4,
.col-lg-5,
.col-lg-6,
.col-lg-7,
.col-lg-8,
.col-lg-9,
.col-lg-10,
.col-lg-11,
.col-lg-12 {
  position: relative;
  width: 100%;
  max-width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

@media (min-width: 576px) {
  .col-sm-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
  .col-sm-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .col-sm-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
  }
}

@media (min-width: 768px) {
  .col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }
  .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .col-md-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
  }
  .col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (min-width: 992px) {
  .col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
}
