/* =========================
   RESET + BASE LAYOUT
=========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  max-width: 100vw;
  overflow-x: hidden;
  height: 100%;
  font-family: 'Oswald', 'Segoe UI', Tahoma, sans-serif;
  font-size: 1.1rem; /* ~18px */
  background-color: #1a1a1a;
  background-image: url("/static/backgrounds/stoneback.png");
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #e7dbc9;
  min-height: 100vh;
  padding: 20px 20px 140px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
  z-index: 1;
}
body > * {
  width: 100%;
  box-sizing: border-box;
}

body.flashing {
  overflow: hidden !important;
}
html, body {
  overflow-x: hidden;
}
/* =============== FULL MOBILE APP LAYOUT =============== */
html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  box-sizing: border-box;
  font-family: 'Oswald', 'Segoe UI', Tahoma, sans-serif;
  background-color: #1a1a1a;
  background-image: url("/static/backgrounds/stoneback.png");
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #e7dbc9;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* 🔥 Main content full-width */
.main-content {
  flex-grow: 1;
  width: 100%;
  max-width: none;
  padding: 1.25rem 1rem 100px; /* leaves room for nav bar */
  display: flex;
  flex-direction: column;
  align-items: stretch;
  box-sizing: border-box;
}

/* =========================
   STATE OF INNER CARD – Mobile Friendly
=========================== */
.card-dark {
  width: 95%;
  max-width: 480px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
  text-align: left;
}

/* =========================
   DARK OVERLAY
=========================== */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
  pointer-events: none;
}

/* =========================
   PAGE TITLES
=========================== */
.page-title {
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  text-indent: -9999px;
  height: 120px;
  max-width: 600px;
  margin: 2rem auto;
}
@media (max-width: 600px) {
  .page-title {
    height: 90px;
    margin-top: 1rem;
  }
}

/* =========================
   MAIN CONTENT AREA – Full Width
=========================== */
.main-content {
  width: 100%;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 100px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  box-sizing: border-box;
}

/* =========================
   TYPOGRAPHY
=========================== */
h1, h2, h3, label, p, .mantra, .circle-message {
  font-size: 1.25rem;
  line-height: 1.75;
  color: #f6e7c1;
}
h1 {
  font-size: 2.2rem;
  margin-bottom: 30px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.mantra {
  font-style: italic;
  margin-bottom: 1rem;
}
.circle-message {
  color: #1f3e36;
}

/* =========================
   TEXTAREAS & INPUTS
=========================== */
textarea, input[type="text"], input[type="date"] {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  border-radius: 10px;
  border: 2px solid #ccc;
  background: #fef9e7;
  color: #1f3e36;
  resize: vertical;
  margin-bottom: 1rem;
}

/* =========================
   BUTTONS
=========================== */
button, .global-button, .journal-invite button {
  background-color: #f4a259;
  color: #1f3e36;
  padding: 12px 26px;
  font-size: 1.1rem;
  font-weight: 700;
  border: 3px solid #1e2d2b;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
button:hover, .global-button:hover {
  background-color: #f69e3e;
  transform: translateY(-2px);
}
button {
  min-width: 100px;
}

/* =========================
   ENTRY BLOCKS
=========================== */
.entry-box {
  background-color: #f6e7c1;
  color: #1f3e36;
  padding: 20px;
  border-radius: 12px;
  border: 2px solid #1e2d2b;
  margin: 1.5rem auto;
  text-align: left;
  width: 100%;
}
.timestamp {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: #1f3e36;
}

/* =========================
   NAVIGATION BAR (FIXED + RESPONSIVE)
=========================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #1e2d2b;
  border-top: 3px solid #f4a259;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  z-index: 1000;
  box-sizing: border-box;
}

.nav-side {
  display: flex;
  flex: 1;
  justify-content: space-evenly;
  align-items: center;
}

.nav-center {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 0 0 80px;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0.5rem;
  min-width: 44px;
  height: 100%;
}

.nav-icon {
  width: 52px;
  height: 52px;
  object-fit: contain;
  vertical-align: middle;
}

.plus-button {
  background-color: #f4a259;
  color: #1f3e36;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 2.4rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #1e2d2b;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  z-index: 1001;
  line-height: 1;
  padding-bottom: 2px;
}

/* 📱 Mobile Tweaks */
@media (max-width: 600px) {
  .nav-icon {
    width: 48px;
    height: 48px;
  }

  .nav-item {
    min-width: 40px;
  }

  .bottom-nav {
    padding: 6px 10px;
  }

  .plus-button {
    width: 60px;
    height: 60px;
    font-size: 2.4rem;
  }
}

/* =========================
   HERO ARC LINEUP
=========================== */
.hero-arc-lineup {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 2rem auto 4rem;
}

.hero-arc-lineup .hero {
  position: absolute;
  width: 24vw;
  height: 24vw;
  max-width: 120px;
  max-height: 120px;
  min-width: 80px;
  min-height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-arc-lineup .hero img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.hero-arc-lineup .hero img:hover {
  transform: scale(1.1);
}

/* 🌟 Positioning heroes in a circle */
.hero-arc-lineup .hero:nth-child(1) {
  top: 0%;
  left: 50%;
  transform: translate(-50%, -50%);
} /* Cognita - top center */

.hero-arc-lineup .hero:nth-child(2) {
  top: 25%;
  left: 10%;
} /* Velessa - upper left */

.hero-arc-lineup .hero:nth-child(3) {
  top: 25%;
  right: 10%;
} /* Lucentis - upper right */

.hero-arc-lineup .hero:nth-child(4) {
  bottom: 15%;
  left: 20%;
} /* Grace - lower left */

.hero-arc-lineup .hero:nth-child(5) {
  bottom: 15%;
  right: 20%;
} /* Sir Renity - lower right */
#graceFlash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 99999 !important;
  opacity: 0;
  transition: opacity 0.4s ease;
}
@media (max-width: 600px) {
  .hero-flash img {
    width: auto;
    max-width: 90vw;
    max-height: 70vh;
  }
}


/* =========================
   MOBILE HERO LAYOUT
=========================== */
@media (max-width: 600px) {
  .hero-arc-lineup {
    width: 280px;
    height: 280px;
  }

  .hero-arc-lineup .hero {
    width: 22vw;
    height: 22vw;
    max-width: 100px;
    max-height: 100px;
    min-width: 70px;
    min-height: 70px;
  }
}

/* =========================
   Inner Circle Layout Fixes
=========================== */

/* Stop page drift and cutoff */
html, body {
  overflow-x: hidden;
}

/* Title image */
.circle-title-img {
  display: block;
  width: 90%;
  max-width: 420px;
  margin: 2rem auto;
  height: auto;
  object-fit: contain;
}


/* =========================
   CIRCLE CHAT BOX
=========================== */
.circle-chat-box {
  width: 100%;
  background: #f6e7c1;
  color: #1f3e36;
  border-radius: 12px;
  border: 2px solid #1e2d2b;
  padding: 1rem;
  max-height: 70vh;
  overflow-y: auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  scroll-behavior: smooth;
}

/* Message style */
.hero-message, .user-message {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  max-width: 85%;
  word-wrap: break-word;
  font-size: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.hero-message {
  align-self: flex-start;
  background: #fff8dc;
}
.user-message {
  align-self: flex-end;
  background: #c6f6e8;
}
.circle-chat-box::-webkit-scrollbar {
  display: none;
}
.circle-chat-box {
  scrollbar-width: none;
}

/* =========================
   MEDIA QUERIES
=========================== */
@media (max-width: 600px) {
  h1, h2, h3, label, p {
    font-size: 1rem;
  }
  .global-button {
    font-size: 1rem;
    padding: 10px 20px;
  }
  textarea, input[type="text"], input[type="date"] {
    font-size: 1rem;
    padding: 0.75rem;
  }
}

/* =========================
   ANIMATIONS
=========================== */
@keyframes fadeOutSmooth {
  from { opacity: 1; }
  to { opacity: 0; }
}
@keyframes scrollUpFade {
  0%   { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-80px); }
}
@keyframes pulseGlow {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 8px #fefae0); }
  50%      { transform: scale(1.02); filter: drop-shadow(0 0 16px #fff8c1); }
}

.content-box {
  background: #1a1a1a;
  color: #f6e7c1;
  padding: 2rem;
  margin: 2rem auto;
  border-radius: 16px;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 800px;
}

.content-box hr {
  border: none;
  border-top: 1px solid #555;
  margin: 2rem 0;
}

.content-box ul {
  padding-left: 1.4rem;
}

.content-box details {
  margin-bottom: 1rem;
  background: #111;
  border-radius: 8px;
  padding: 1rem;
}

.content-box summary {
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 0.5rem;
}

