/* =====================
   CUSTOM FONTS
===================== */
@font-face {
  font-family: "WarriorInk";
  src: url("fonts/Quentin.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "WarriorBio";
  src: url("fonts/SF-Karens-Cali.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

/* =====================
   BASE
===================== */
body {
  margin: 0;
  padding: 0;
  text-align: center;
  color: #fff;
  font-family: Arial, sans-serif;
}

/* Links default */
a { color: inherit; }

/* =====================
   GLOBAL BUTTON (Forest)
===================== */
.forest-btn {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.05rem;
  letter-spacing: 1px;
  text-transform: uppercase;

  padding: 14px 34px;
  border-radius: 14px;

  background: linear-gradient(135deg, rgba(120,80,40,0.95), rgba(180,130,70,0.95));
  color: #fff;
  border: 2px solid rgba(255,220,170,0.6);

  cursor: pointer;

  box-shadow: 0 8px 20px rgba(0,0,0,0.5), inset 0 0 10px rgba(255,200,120,0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.forest-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.6), inset 0 0 14px rgba(255,220,160,0.35);
}

/* =====================
   HOME PAGE (TOP-ALIGNED like before)
===================== */
.home .hero {
  height: 100vh;
  background: url("images/home-bg.png") center / cover no-repeat;
  position: relative;

  display: flex;
  align-items: flex-start;     /* ✅ move content to top */
  justify-content: center;

  padding-top: 40px;          /* ✅ space from top */
}

.home .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.home .hero-content {
  position: relative;
  max-width: 760px;
  padding: 20px;

  text-align: center;
}

.hero-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: 3.5rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 10px;
  text-shadow: 0 3px 12px rgba(0,0,0,0.85), 0 0 24px rgba(255,220,140,0.25);
}

.home p {
  font-size: 1.2rem;
  margin: 0 0 24px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}


/* =====================
   AUTH PAGES (Login + Signup)
   ✅ requires: images/auth-background.png
===================== */
.auth-page {
  min-height: 100vh;
  background: url("images/auth-background.png") center / cover no-repeat fixed;
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;

  padding-top: 70px;
}

.auth-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  pointer-events: none;
}

.auth-page > * {
  position: relative;
}

.auth-page h1 {
  font-family: 'Cinzel Decorative', serif;
  font-size: 2.6rem;
  letter-spacing: 2px;
  margin: 0 0 18px;
  text-shadow: 0 3px 12px rgba(0,0,0,0.9);
}

.auth-page input,
.auth-page select {
  width: min(420px, 88vw);
  padding: 14px 16px;
  margin: 10px 0;

  border-radius: 14px;
  border: 2px solid rgba(255,220,170,0.55);
  background: rgba(0,0,0,0.55);
  color: #fff;

  font-family: 'Cinzel Decorative', serif;
  outline: none;

  box-shadow: 0 8px 18px rgba(0,0,0,0.35), inset 0 0 10px rgba(255,200,120,0.12);
}

.auth-page input::placeholder {
  color: rgba(255,255,255,0.75);
}

.auth-actions {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.auth-page a {
  color: rgba(255, 230, 190, 0.95);
  font-family: 'Cinzel Decorative', serif;
  text-decoration: underline;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

/* =====================
   PROFILE PAGE
   ✅ requires: images/profile-bg.png
===================== */
.profile-page {
  min-height: 100vh;
  background:
    linear-gradient(rgba(0,0,0,0.28), rgba(0,0,0,0.55)),
    url("images/profile-bg.png") center / cover no-repeat fixed;
}

.profile-page header {
  margin-top: 24px;
}

.profile-name {
  font-family: "WarriorInk", cursive;
  font-size: 3rem;
  margin: 0;
  text-shadow: 0 3px 12px rgba(0,0,0,0.9);
}

.profile-clan {
  font-family: "WarriorInk", cursive;
  font-size: 1.7rem;
  margin-top: -10px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.9);
}

/* Bio field (ultra translucent + tight) */
.bio-section {
  margin: 14px auto 10px;
}

#bioInput {
  width: min(860px, 94vw);
  height: 4.2em;          /* ~3 lines */
  min-height: 4.2em;
  padding: 6px 8px;       /* very close text to edge */

  font-family: "WarriorBio", cursive;
  font-size: 1.28rem;
  line-height: 1.4;

  color: #fff;

  background: linear-gradient(rgba(255,245,225,0.10), rgba(235,215,185,0.10));
  border: 1px solid rgba(210,180,130,0.28);
  border-radius: 10px;

  backdrop-filter: blur(2px);
  box-shadow: inset 0 0 6px rgba(120,80,40,0.15), 0 5px 14px rgba(0,0,0,0.45);

  outline: none;
  resize: none;
}

#bioInput::placeholder {
  color: rgba(255,255,255,0.55);
  font-style: italic;
}

#bioStatus {
  margin-top: 6px;
  font-family: 'Cinzel Decorative', serif;
  font-size: 0.9rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.85);
}

.profile-subtitle {
  font-family: 'Cinzel Decorative', serif;
  margin: 26px 0 12px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.85);
}

.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 34px auto 60px;
  width: fit-content;
}

/* =====================
   APP PAGE (BOOK TRACKER)
   ✅ requires: images/app-bg.png
===================== */
.app-page {
  min-height: 100vh;
  background:
    linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.55)),
    url("images/app-bg.png") center / cover no-repeat fixed;
}

.app-header {
  margin-top: 18px;
}

/* make welcome/title match profile style on app page too */
.app-page #welcome .profile-name,
.app-page #welcome .profile-clan,
.app-page #welcome {
  text-shadow: 0 3px 12px rgba(0,0,0,0.9);
}

/* dropdown */
#categoryFilter {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 2px solid rgba(255,220,170,0.55);
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-family: 'Cinzel Decorative', serif;
  outline: none;
}

/* books container */
#books {
  max-width: 980px;
  margin: 18px auto 0;
  padding: 0 14px;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;

  text-align: left;
}

/* arc wrapper */
.arc {
  grid-column: 1 / -1;
  margin-top: 14px;
}

.arc h3 {
  font-family: 'Cinzel Decorative', serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 22px 0 10px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.85);
}

/* each book line */
.book {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 10px 12px;
  border-radius: 12px;

  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,220,170,0.22);

  text-shadow: 0 2px 10px rgba(0,0,0,0.85);
}

.book input[type="checkbox"] {
  transform: scale(1.15);
}

.book span {
  font-family: 'Cinzel Decorative', serif;
  font-size: 0.95rem;
}

/* responsive */
@media (max-width: 900px) {
  #books { grid-template-columns: 1fr; }
}

/* =====================
   COMMUNITY PAGE (CLANS + PLACARDS)
   (only used on community.html)
===================== */
.community-page {
  min-height: 100vh;
  background:
    linear-gradient(rgba(0,0,0,0.30), rgba(0,0,0,0.60)),
    url("images/profile-bg.png") center / cover no-repeat fixed;
}

.community-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: 3rem;
  margin: 18px 0 8px;
  text-shadow: 0 3px 12px rgba(0,0,0,0.9);
}

.community-sub {
  font-family: 'Cinzel Decorative', serif;
  margin: 0 0 18px;
  opacity: 0.9;
  text-shadow: 0 2px 10px rgba(0,0,0,0.85);
}

.clan-section {
  max-width: 1100px;
  margin: 22px auto;
  padding: 0 14px;
}

.clan-header {
  font-family: 'Cinzel Decorative', serif;
  font-size: 2rem;
  margin: 14px 0 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.85);
}

.clan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 900px) {
  .clan-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .clan-grid { grid-template-columns: 1fr; }
}

.placard {
  text-align: left;
  padding: 12px 12px 10px;
  border-radius: 14px;

  background: rgba(255, 240, 210, 0.10);
  border: 1px solid rgba(255,220,170,0.22);
  backdrop-filter: blur(2px);

  box-shadow: 0 10px 24px rgba(0,0,0,0.45);
}

.placard-name {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.15rem;
  margin: 0 0 2px;
}

.placard-meta {
  font-size: 0.85rem;
  margin: 0;
  opacity: 0.9;
}

.placard-bio {
  margin-top: 6px;
  font-size: 0.85rem;
  opacity: 0.95;
}

/* =====================
   COMMUNITY PAGE (4 CLAN BOXES)
===================== */

.community-page {
  min-height: 100vh;
  background:
    linear-gradient(rgba(0,0,0,0.30), rgba(0,0,0,0.60)),
    url("images/profile-bg.png") center / cover no-repeat fixed;
}

.community-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: 3rem;
  margin: 18px 0 8px;
  text-shadow: 0 3px 12px rgba(0,0,0,0.9);
}

.community-sub {
  font-family: 'Cinzel Decorative', serif;
  margin: 0 0 18px;
  opacity: 0.9;
  text-shadow: 0 2px 10px rgba(0,0,0,0.85);
}

.clan-boxes {
  max-width: 1200px;
  margin: 18px auto 60px;
  padding: 0 14px;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 900px) {
  .clan-boxes { grid-template-columns: 1fr; }
}

.clan-box {
  border-radius: 16px;
  padding: 14px;

  background: rgba(255, 240, 210, 0.07);
  border: 1px solid rgba(255, 220, 170, 0.18);
  backdrop-filter: blur(2px);

  box-shadow: 0 10px 24px rgba(0,0,0,0.45);
}

.clan-box-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.7rem;
  margin: 6px 0 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0,0,0,0.85);
}

.clan-box-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

/* Character badge / placard */
.warrior-card {
  text-align: left;
  border-radius: 14px;
  padding: 10px 12px;

  background: rgba(0,0,0,0.30);
  border: 1px solid rgba(255, 220, 170, 0.20);
}

.warrior-name {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.05rem;
  margin: 0;
  letter-spacing: 0.5px;
}

.warrior-stats {
  margin-top: 2px;
  font-size: 0.85rem;
  opacity: 0.92;
  line-height: 1.15;
}

.warrior-bio {
  margin-top: 6px;
  font-size: 0.85rem;
  opacity: 0.95;
  line-height: 1.2;
}
