/* ═══════════════════════════════════════════════
   XRPCOWBOYS — Shared Styles
   © 2026 Twin BlockChain Technologies LLC
   ═══════════════════════════════════════════════ */

/* ── VARIABLES ── */
:root {
  --gold:       #f5d060;
  --gold-dim:   #c9921a;
  --gold-dark:  #a06e10;
  --green:      #4ade80;
  --green-dim:  #22c55e;
  --cream:      #e8e0d0;
  --bg:         #080808;
  --border:     rgba(201,146,26,0.25);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  background: var(--bg);
  color: var(--cream);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── PARALLAX BACKGROUND ── */
.parallax-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.parallax-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(5,4,2,0.44);
}
.site-wrap { position: relative; z-index: 1; }

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14,10,3,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2.5rem;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  background: linear-gradient(150deg, #ffe87a 0%, #f5c842 18%, #c9921a 42%, #a06e10 58%, #4ade80 76%, #22c55e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 1rem;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-left: 0;
  flex-wrap: nowrap;
}
.nav-links a {
  font-family: 'Oswald', sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(232,224,208,0.97);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }

.nav-login-btn {
  border: 1px solid rgba(180,150,60,0.4);
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(232,224,208,0.97) !important;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.nav-login-btn:hover { border-color: var(--gold); color: var(--gold) !important; }

.nav-join-btn {
  font-family: 'Oswald', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #080808 !important;
  background: linear-gradient(135deg, #f5d060, #c9921a);
  padding: 0.5rem 1.3rem;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}

/* ── HAMBURGER / MOBILE MENU ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--gold);
  border-radius: 2px;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 1.25rem 2rem 1.75rem;
  gap: 1.1rem;
  background: rgba(14,10,3,0.98);
  border-top: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(232,224,208,0.95);
  text-decoration: none;
}
.mobile-menu .mob-join { color: var(--gold) !important; font-weight: 500; }

/* ── NOTIFICATION BELL ── */
/* Sits OUTSIDE nav-links so it shows on mobile too */
.nav-notif-wrap {
  position: relative;
  display: none;
  align-items: center;
  flex-shrink: 0;
  margin-left: 0.5rem;
}
.nav-notif-wrap.visible {
  display: flex;
}
.notif-bell {
  background: none;
  border: 1px solid rgba(180,150,60,0.4);
  border-radius: 999px;
  padding: 0.38rem 0.85rem;
  color: rgba(232,224,208,0.95);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.notif-bell:hover { border-color: var(--gold); color: var(--gold); }
.notif-badge {
  background: #ef4444;
  color: #fff;
  border-radius: 999px;
  font-size: 0.6rem;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  padding: 1px 5px;
  min-width: 16px;
  text-align: center;
  display: none;
  line-height: 1.4;
}
.notif-badge.show { display: inline-block; }
.notif-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 310px;
  background: rgba(14,10,3,0.98);
  border: 1px solid rgba(201,146,26,0.25);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.7);
  z-index: 500;
  display: none;
  overflow: hidden;
}
.notif-dropdown.open { display: block; }
.notif-hdr {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(201,146,26,0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.notif-hdr-title {
  font-family: 'Oswald', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}
.notif-mark-all {
  font-family: 'Oswald', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(201,146,26,0.5);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}
.notif-mark-all:hover { color: var(--gold); }
.notif-list { max-height: 300px; overflow-y: auto; }
.notif-item {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(201,146,26,0.07);
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}
.notif-item:hover { background: rgba(201,146,26,0.07); }
.notif-item.unread { background: rgba(201,146,26,0.04); }
.notif-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.notif-content { flex: 1; }
.notif-msg { font-size: 0.76rem; color: rgba(232,224,208,0.9); line-height: 1.4; margin-bottom: 2px; }
.notif-time { font-family: 'Oswald', sans-serif; font-size: 0.58rem; letter-spacing: 0.06em; color: rgba(232,224,208,0.5); }
.notif-unread-dot { width: 7px; height: 7px; background: #4ade80; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.notif-empty { padding: 1.4rem 1rem; text-align: center; font-size: 0.78rem; color: rgba(232,224,208,0.5); font-style: italic; }

/* On mobile, dropdown opens LEFT so it doesn't go off screen */
@media (max-width: 768px) {
  .notif-dropdown { right: auto; left: auto; width: 280px; }
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  text-align: center;
  padding: 5rem 2rem 3.5rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse, rgba(34,80,28,0.28) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-label {
  font-family: 'Oswald', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.6rem;
  position: relative;
  z-index: 1;
}
.page-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(150deg, #ffe87a 0%, #f5c842 25%, #c9921a 55%, #4ade80 80%, #22c55e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
  opacity: 0;
  animation: fadeUp 0.9s 0.2s forwards;
}
.page-hero-rule {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
  margin: 0 auto 1.25rem;
}
.page-hero-sub {
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(232,224,208,0.95);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

/* ── SECTION TYPOGRAPHY ── */
.section-label {
  font-family: 'Oswald', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.6rem;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.section-rule {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
  margin: 0 0 2rem;
}
.body-text {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(232,224,208,0.95);
  margin-bottom: 1.5rem;
}

/* ── ORNAMENT ── */
.ornament {
  text-align: center;
  color: rgba(180,150,60,0.25);
  font-size: 1rem;
  letter-spacing: 0.6em;
  margin: 0 0 3rem;
  user-select: none;
}

/* ── JOIN BANNER ── */
.join-banner {
  background: linear-gradient(135deg, rgba(245,208,96,0.08), rgba(74,222,128,0.06));
  border: 1px solid rgba(245,208,96,0.2);
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 6rem;
  backdrop-filter: blur(6px);
}
.join-banner h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.join-banner p {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(232,224,208,0.95);
  max-width: 520px;
  margin: 0 auto 1.75rem;
  line-height: 1.8;
}
.join-banner a {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #080808;
  background: linear-gradient(135deg, #f5d060, #c9921a);
  padding: 0.9rem 2.5rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(245,208,96,0.25);
}
.join-banner a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(245,208,96,0.4);
}

/* ── FOOTER ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem 2rem;
  background: rgba(14,10,3,0.88);
  backdrop-filter: blur(8px);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 900;
  background: linear-gradient(120deg, #f5c842 0%, #c9921a 50%, #c9921a 74%, #4ade80 76%, #22c55e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}
.footer-tagline {
  font-family: 'Oswald', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232,224,208,0.92);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: flex-end;
}
.footer-links a {
  font-family: 'Oswald', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232,224,208,0.97);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  text-align: center;
}
.footer-bottom p {
  font-family: 'Oswald', sans-serif;
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232,224,208,0.88);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links  { display: none; }
  .hamburger  { display: flex; }
  .page-hero  { padding: 3rem 1.5rem 2rem; }
  .page-hero-title { font-size: clamp(1.6rem, 7vw, 2.8rem); }
  /* Full-width nav bar — tight padding, no overflow */
  .nav-inner  { padding: 0 1rem; gap: 0.4rem; width: 100%; overflow: visible; }
  /* Logo shrinks slightly on mobile */
  .nav-logo   { font-size: 1.1rem; margin-right: 0; }
  /* Bell: just the emoji, no border/text on mobile */
  .nav-notif-wrap { margin-left: 0.25rem; }
  .notif-bell {
    border: none;
    background: none;
    padding: 0.2rem 0.3rem;
    font-size: 1.3rem;
    letter-spacing: 0;
    color: var(--gold);
    gap: 2px;
  }
  /* Dropdown anchored to right edge of screen on mobile */
  .notif-dropdown {
    position: fixed;
    top: 76px;
    right: 0;
    left: auto;
    width: 100vw;
    max-width: 340px;
    border-radius: 0 0 8px 8px;
  }
}
@media (max-width: 480px) {
  .page-hero-title { font-size: clamp(1.4rem, 6vw, 2.2rem); }
  .nav-logo   { font-size: 0.95rem; }
}

/* ── CHAT IMAGE SIZE ── */
.msg-img {
  max-width: 160px !important;
  max-height: 160px !important;
  border-radius: 8px;
  margin-top: 4px;
  cursor: pointer;
  object-fit: cover;
}
