/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 *
 * = require_tree .
 * = require_self
 */

/* Import Local Fonts */
@font-face {
  font-family: 'Cinzel';
  src: url("/assets/Cinzel-Regular-f973a8a4.ttf") format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Lato';
  src: url("/assets/Lato-Regular-910348aa.ttf") format('truetype');
  font-weight: normal;
  font-style: normal;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Lato', sans-serif;
  color: #f5f5f5;
  /* Heaven to Hell Gradient */
  background: linear-gradient(to bottom,
      #87CEEB 0%,
      /* Heaven Blue */
      #E0F6FF 15%,
      /* Light Cloud */
      #ffffff 30%,
      /* Purgatory / White Mist */
      #f0f0f0 40%,
      /* Earthly Grey */
      #2c2c2c 60%,
      /* Descent into Darkness */
      #1a0000 85%,
      /* Deep Hell Red */
      #000000 100%
      /* The Abyss */
    );
  min-height: 400vh;
  /* Long scroll for the journey */
  position: relative;
}

/* Static Background Images */
.static-bg-top,
.static-bg-bottom {
  position: absolute;
  width: 100%;
  height: 120vh;
  background-size: cover;
  background-position: center;
  pointer-events: none;
  z-index: 0;
}

.static-bg-top {
  top: 0;
  left: 0;
  background-image: url("/assets/heaven-ef136a1a.png");
  background-position: top center;
  /* Long fade out into the body gradient */
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 100%);
}

.static-bg-bottom {
  bottom: 0;
  left: 0;
  background-image: url("/assets/hell-54d7bc95.png");
  background-position: bottom center;
  /* Long fade out into the body gradient */
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 100%);
}

/* Members Counter */
.header-section {
  margin-bottom: 20px;
}

.members-display {
  background: rgba(0, 0, 0, 0.65);
  /* Darker for contrast */
  display: inline-block;
  padding: 10px 20px;
  border-radius: 50px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin-top: 10px;
}

.count-label {
  font-family: 'Lato', sans-serif;
  text-transform: uppercase;
  font-size: 0.8em;
  letter-spacing: 1px;
  color: #fff;
  /* Brighter */
  opacity: 0.85;
  margin-right: 10px;
}

.count-value {
  font-family: 'Cinzel', serif;
  font-size: 1.5em;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.4), 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Glassmorphism Container */
.container {
  max-width: 900px;
  width: 90%;
  position: relative;
  margin: 80px auto;
  /* Space for scrolling */
  z-index: 100;
  padding: 40px;
  background: rgba(0, 0, 0, 0.5);
  /* Darker for better contrast against white sky */
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  text-align: center;
  color: #fff;
}

/* Non-home pages (register, legal, reject, proof): hell background from top */
body:not(.pages-home):not(.status-page) {
  background: linear-gradient(to bottom, #1a1a2e 0%, #0a0a0a 100%);
  min-height: 100vh;
}

body:not(.pages-home):not(.status-page) .static-bg-top {
  display: none;
}

body:not(.pages-home):not(.status-page) .static-bg-bottom {
  top: 0;
  bottom: auto;
  background-position: top center;
  opacity: 0.7;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 100%);
}

/* Status page: own layout, single background image */
.status-page {
  background: #1a1a2e;
  min-height: 100vh;
  position: relative;
}

.status-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-position: top center;
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
}

/* Home Page specific: Keep it fixed and centered */
.pages-home .container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}

/* Typography */
h1.title {
  font-family: 'Cinzel', serif;
  font-size: 4em;
  margin-bottom: 0.2em;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 0, 0, 0.5);
  letter-spacing: 2px;
}

h2 {
  font-family: 'Cinzel', serif;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.claim {
  font-style: italic;
  font-size: 1.2em;
  color: #fff;
  margin-bottom: 3em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

/* Fixed Post Cycler */
#fixed-post-box {
  display: flex !important;
  align-items: center;
  background: rgba(20, 20, 20, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 25px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: scale(0.95);
  transition: all 1s ease;
  margin: 30px auto;
  max-width: 550px;
}

#fixed-post-box.is-active {
  opacity: 1;
  transform: scale(1);
}

.avatar {
  margin-right: 35px;
  flex-shrink: 0;
}

.avatar-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  transition: transform 0.3s ease;
}

.avatar-img:hover {
  transform: scale(1.1) rotate(5deg);
}

.user-info {
  flex: 1;
  text-align: center;
}

.user-info strong {
  display: block;
  font-size: 1.3em;
  font-family: 'Cinzel', serif;
  color: #fff;
}

.user-info span {
  color: #ccc;
  font-size: 0.9em;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 15px 30px;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  /* Ensure text is white */
  text-decoration: none;
  border-radius: 50px;
  margin-top: 30px;
  font-size: 1.2em;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s;
  font-family: 'Cinzel', serif;
  cursor: pointer;
  backdrop-filter: blur(5px);
}

.btn:hover {
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* Address Selection */
.address-selection {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 50px 0;
  flex-wrap: wrap;
}

.option {
  cursor: pointer;
  padding: 40px 30px;
  border-radius: 20px;
  flex: 1;
  min-width: 280px;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
  color: white;
  text-align: center;
  /* Reset button styles from button_to */
  font-family: inherit;
  font-size: 1em;
  line-height: inherit;
}

.option h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.8em;
  margin: 15px 0 10px 0;
}

.option p {
  margin: 0;
  font-size: 1em;
  color: rgba(255, 255, 255, 0.7);
}

.option:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.option.heaven:hover {
  background: rgba(135, 206, 235, 0.2);
  border-color: #87CEEB;
}

.option.hell:hover {
  background: rgba(139, 0, 0, 0.2);
  border-color: #8B0000;
}

.join-action {
  margin-top: 40px;
  position: relative;
  z-index: 10;
}

/* Footer */
/* Footer */
.footer {
  display: block;
  margin-top: 40px;
  font-size: 11px;
  color: #fff;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-family: 'Lato', sans-serif;
  transition: opacity 0.3s;
}

.footer:hover {
  opacity: 0.8;
}

/* Legal Page Styles */
.legal-page {
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
}

.devil-emblem {
  font-size: 5em;
  margin-bottom: 20px;
  text-align: center;
  filter: drop-shadow(0 0 20px rgba(255, 69, 0, 0.5));
}

.legal-header h1 {
  font-family: 'Cinzel', serif;
  color: #ff4500;
  text-align: center;
  margin-top: 0;
}

.legal-header .subtitle {
  text-align: center;
  font-style: italic;
  color: #aaa;
  margin-bottom: 40px;
}

.legal-content section {
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 15px;
  border-left: 4px solid #ff4500;
}

.legal-content h2 {
  font-size: 1.2em;
  color: #ff4500;
  margin-top: 0;
}

.legal-footer {
  text-align: center;
  margin-top: 40px;
}

.btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
}

/* Fire Animation at the Bottom */
.fire-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 250px;
  /* Taller */
  pointer-events: none;
  z-index: 10;
  /* Above background, below container */
  overflow: hidden;
  opacity: 0;
  transition: opacity 1.5s ease;
}

/* Show fire when near the bottom (Hell) or on Legal page */
body[data-location="hell"] .fire-container {
  opacity: 1;
}

.fire-flame {
  position: absolute;
  bottom: -60px;
  width: 70%;
  left: 15%;
  height: 100%;
  background: radial-gradient(ellipse at bottom,
      rgba(255, 69, 0, 0.8) 0%,
      rgba(255, 0, 0, 0.4) 40%,
      rgba(139, 0, 0, 0) 70%);
  filter: blur(20px);
  border-radius: 50%;
  animation: fire-pulse 2s infinite ease-in-out alternate;
}

.fire-flame:nth-child(2) {
  width: 100%;
  left: 0%;
  height: 60%;
  background: radial-gradient(ellipse at bottom,
      rgba(255, 140, 0, 0.5) 0%,
      rgba(255, 69, 0, 0.2) 50%,
      rgba(0, 0, 0, 0) 80%);
  animation: fire-pulse 3s infinite ease-in-out alternate-reverse;
}

.fire-flame:nth-child(3) {
  width: 50%;
  left: 25%;
  height: 120%;
  background: radial-gradient(ellipse at bottom,
      rgba(255, 255, 0, 0.3) 0%,
      rgba(255, 165, 0, 0.1) 40%,
      rgba(0, 0, 0, 0) 70%);
  filter: blur(30px);
  animation: fire-pulse 1.5s infinite ease-in-out alternate;
}

@keyframes fire-pulse {
  0% {
    transform: scale(1, 1) translateY(10px);
    opacity: 0.5;
  }

  100% {
    transform: scale(1.1, 1.4) translateY(-20px);
    opacity: 0.9;
  }
}

/* Footer Link Adjustment */
.divider {
  margin: 0 10px;
  opacity: 0.5;
}

.footer-link {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.footer-link:hover {
  opacity: 1;
}

/* Cycler Links (share, source) */
.cycler-links {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.cycler-link {
  font-size: 0.75em;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s;
}

.cycler-link:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* Status Show Page */
.status-card {
  text-align: center;
  padding: 20px 0;
}

.status-zone-badge {
  display: inline-block;
  padding: 5px 18px;
  border-radius: 50px;
  font-family: 'Cinzel', serif;
  font-size: 0.8em;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 25px;
}

.status-zone-badge.heaven {
  background: rgba(135, 206, 235, 0.2);
  border: 1px solid rgba(135, 206, 235, 0.5);
  color: #87CEEB;
}

.status-zone-badge.limbo {
  background: rgba(200, 200, 200, 0.15);
  border: 1px solid rgba(200, 200, 200, 0.4);
  color: #bbb;
}

.status-zone-badge.hell {
  background: rgba(255, 69, 0, 0.2);
  border: 1px solid rgba(255, 69, 0, 0.5);
  color: #ff4500;
}

.status-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.status-author strong {
  font-family: 'Cinzel', serif;
  font-size: 1.1em;
}

.status-quote {
  font-size: 1.5em;
  font-style: italic;
  color: #fff;
  margin: 0 0 25px;
  padding: 0;
  border: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.status-source-link {
  display: inline-block;
  font-size: 0.8em;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-bottom: 25px;
  transition: color 0.3s;
}

.status-source-link:hover {
  color: rgba(255, 255, 255, 0.8);
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.85em;
  font-family: 'Lato', sans-serif;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
}

.share-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

