/* =========================================================
   WOORDS — FINAL LOGIN / REGISTER UI
   ========================================================= */

:root{
  --woords-bg: #F4F4F5;
  --woords-text: #1A1A1A;
  --woords-muted: #6F6F73;
}

/* Reset */
*{ box-sizing: border-box; }

html, body{
  height: 100%;
  margin: 0;
  overflow: hidden; /* 🚫 remove scroll */
  font-family: system-ui, -apple-system, sans-serif;
}

/* ---------------------------------------------------------
   BACKGROUND
   --------------------------------------------------------- */
#home{
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;

  background: url("/assets/woords-bg.png") no-repeat center/cover;
}

/* ---------------------------------------------------------
   CENTER CONTAINER
   --------------------------------------------------------- */
.page{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  width: 100%;
  max-width: 420px;

  gap: 14px; /* 🔥 tighter spacing */
}

/* ---------------------------------------------------------
   LOGO + TEXT
   --------------------------------------------------------- */
.brand img{
  width: 90px;
  margin-bottom: 4px;
}

.strapline{
  font-size: 13px;
  color: var(--woords-muted);
  margin-bottom: 6px; /* 🔥 tighter */
  text-align: center;
}

/* ---------------------------------------------------------
   FORM
   --------------------------------------------------------- */
form{
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px; /* 🔥 reduced spacing */
}

/* INPUTS */
.input{
  width: 100%;
  height: 44px;

  padding: 0 16px;

  border: none;
  border-radius: 22px;

  background: #e9e9eb;
  color: #333;

  font-size: 14px;

  transition: all 0.2s ease;
}

.input:focus{
  outline: none;
  background: #f2f2f3;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.08);
}

/* ---------------------------------------------------------
   BUTTON
   --------------------------------------------------------- */
.btn{
  width: 100%;
  height: 44px;

  border: none;
  border-radius: 22px;

  background: #000;
  color: #fff;

  font-size: 14px;
  font-weight: 600;

  cursor: pointer;
  transition: all 0.2s ease;
}

.btn:hover{
  background: #111;
  transform: translateY(-1px);
}

.btn:active{
  transform: translateY(0);
}

/* ---------------------------------------------------------
   LINKS
   --------------------------------------------------------- */
.auth-link{
  font-size: 13px;
  color: var(--woords-muted);
  text-align: center;
}

.auth-link a{
  color: #000;
  text-decoration: none;
  font-weight: 500;
}

.auth-link a:hover{
  text-decoration: underline;
}

/* ---------------------------------------------------------
   ERROR BOX
   --------------------------------------------------------- */
.error{
  background: #fff1f2;
  color: #dc2626;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 13px;
}

/* =========================================================
   FULLSCREEN MENU — Smooth slide + perfect cross
   ========================================================= */

/* ---------- Hamburger button ---------- */
.menu-btn{
  position: fixed !important;
  top: 18px !important;
  right: 18px !important;
  width: 56px;
  height: 56px;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 10000 !important;
  display: grid;
  place-items: center;
  -webkit-tap-highlight-color: transparent;
}

/* Icon container */
.menu-btn .menu-icon{
  width: 38px;      /* max line width */
  height: 20px;     /* icon height */
  position: relative;
}

/* Lines (closed state defaults) */
.menu-btn .menu-line{
  position: absolute;
  left: 0;                 /* closed: left aligned */
  height: 4px;
  border-radius: 999px;
  background: rgba(0,0,0,.92);
  transform-origin: center;
  will-change: width, top, left, transform, opacity, background;

  /* Stage animation:
     - width changes first (no delay)
     - then lines move/rotate (with delay)
  */
  transition:
    width      140ms cubic-bezier(.2,.8,.2,1),
    left       180ms cubic-bezier(.2,.8,.2,1) 140ms,
    top        180ms cubic-bezier(.2,.8,.2,1) 140ms,
    transform  220ms cubic-bezier(.2,.9,.2,1) 160ms,
    opacity    120ms ease,
    background 120ms ease;
}

/* Closed: 3 different lengths (pixel aligned) */
.menu-btn .l1{ top: 0px;  width: 38px; }
.menu-btn .l2{ top: 8px;  width: 26px; }
.menu-btn .l3{ top: 16px; width: 16px; }

/* ---------- Open state: equal length -> centred -> cross ---------- */
.menu-btn[aria-expanded="true"] .menu-line{
  width: 38px;          /* step 1: all equal */
  left: 50%;            /* step 2: centre them */
  background: #fff;     /* white on open */
  transform: translateX(-50%); /* keep centred before rotation */
}

.menu-btn[aria-expanded="true"] .l1{
  top: 8px;
  transform: translateX(-50%) rotate(45deg);
}

.menu-btn[aria-expanded="true"] .l2{
  opacity: 0;
}

.menu-btn[aria-expanded="true"] .l3{
  top: 8px;
  transform: translateX(-50%) rotate(-45deg);
}

/* ---------- Overlay ---------- */
.menu-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
  z-index: 9998;
}

.menu-overlay.open{
  opacity: 1;
  pointer-events: auto;
}

/* ---------- Fullscreen panel that SLIDES in ---------- */
.menu-panel{
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: #000 !important;
  color: #fff;

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

  transform: translateX(100%);
  transition: transform .42s cubic-bezier(.2,.9,.2,1);
  z-index: 9999;
}

.menu-overlay.open .menu-panel{
  transform: translateX(0);
}

/* ---------- Menu items: larger, modern, minimal ---------- */
.menu-item{
  display: block;
  text-decoration: none;
  color: rgba(255,255,255,.92);

  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;

  padding: 14px 22px;
  margin: 6px 0;
  border-radius: 14px;

  transform: translateY(14px);
  opacity: 0;

  transition:
    transform .34s cubic-bezier(.2,.9,.2,1),
    opacity .26s ease,
    color .15s ease,
    background .15s ease;
}

.menu-overlay.open .menu-item{
  transform: translateY(0);
  opacity: 1;
}

/* Stagger delays */
.menu-overlay.open .menu-item:nth-child(1){ transition-delay: 120ms; }
.menu-overlay.open .menu-item:nth-child(2){ transition-delay: 170ms; }
.menu-overlay.open .menu-item:nth-child(3){ transition-delay: 220ms; }
.menu-overlay.open .menu-item:nth-child(4){ transition-delay: 270ms; }
.menu-overlay.open .menu-item:nth-child(5){ transition-delay: 320ms; }

.menu-item:hover{
  background: rgba(255,255,255,.08);
  color: #fff;
}

.menu-item:active{
  transform: translateY(0) scale(.99);
}

.right-rail{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.right-card{
  background:#fff;
  border:1px solid rgba(73,131,131,.10);
  border-radius:20px;
  box-shadow:0 8px 24px rgba(17,17,17,.04);
  overflow:hidden;
}

.right-card-title{
  font-size:15px;
  font-weight:800;
  color:#111;
  padding:14px 16px 10px;
  border-bottom:1px solid rgba(73,131,131,.08);
  background:linear-gradient(180deg, rgba(248,252,252,1) 0%, rgba(255,255,255,1) 100%);
}

.secure-status-row{
  display:flex;
  align-items:center;
  gap:10px;
  padding:14px 16px;
  font-size:14px;
  color:#222;
}

.secure-dot{
  width:10px;
  height:10px;
  border-radius:50%;
  background:#3bb273;
  box-shadow:0 0 0 6px rgba(59,178,115,.12);
  flex:0 0 10px;
}

.trend-list{
  display:flex;
  flex-direction:column;
}

.trend-item{
  display:block;
  padding:12px 16px;
  border-top:1px solid rgba(73,131,131,.07);
  text-decoration:none;
  transition:background .15s ease;
}

.trend-item:first-child{
  border-top:none;
}

.trend-item:hover{
  background:#f8fbfb;
}

.trend-kicker{
  font-size:11px;
  font-weight:700;
  color:#6F6F73;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.trend-name{
  margin-top:2px;
  font-size:14px;
  font-weight:700;
  color:#111;
  line-height:1.3;
}

.trend-sub{
  margin-top:3px;
  font-size:12px;
  color:#6F6F73;
}

.trend-empty{
  padding:14px 16px;
  font-size:13px;
  color:#6F6F73;
}

.layout{
  display:grid;
  grid-template-columns: 260px 1fr 420px;
}

.right-rail{
  display:flex;
  flex-direction:column;
  gap:16px;
  margin-top:28px;
  width:100%;
  max-width:420px;
}

.right-card{
  border:1px solid rgba(73,131,131,.14);
  box-shadow:
    0 8px 20px rgba(0,0,0,.04),
    0 18px 40px rgba(0,0,0,.03);
}

.right-rail{
  position:sticky;
  top:88px;
}

.nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 72px;
  height: 72px;
}

.rail-nav-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;

  padding-left: 16px; /* reduce this if needed */
}

.topbar-logo-wrap {
  width: 72px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.topbar-logo-img {
  width: 44px;   /* increase from ~34 */
  height: 44px;
  object-fit: contain;
}

.topbar-logo-wrap {
  margin-left: 0 !important;
  padding-left: 0 !important;
}

.topbar-logo-img {
  transform: translateX(-2px);
}
/* =========================================================
   WOORDS — THREADS-STYLE FEED POLISH
   Soft page background, white post cards, subtle borders
   ========================================================= */

:root{
  --woords-bg: #f5f5f5;
  --woords-surface: #ffffff;
  --woords-border: #e6e6e6;
  --woords-text: #111111;
  --woords-muted: #6f6f73;
}

html,
body{
  background: var(--woords-bg) !important;
  color: var(--woords-text);
}

/* Main app backgrounds */
.layout,
.app,
.app-shell,
.main,
.main-content,
.feed-page,
.feed-wrap,
.content,
.page-content{
  background: var(--woords-bg) !important;
}

/* Topbar / rail keep the same soft neutral background */
.topbar,
.topbar-inner,
.left-rail,
.sidebar,
.rail,
.nav-rail{
  background: var(--woords-bg) !important;
}

/* Threads-style post cards / composer cards */
.post,
.post-card,
.thread,
.thread-card,
.feed-card,
.compose-card,
.composer,
.card{
  background: var(--woords-surface) !important;
  border: 1px solid var(--woords-border) !important;
  border-radius: 18px !important;
  box-shadow: none !important;
}

/* Subtle dividers */
.divider,
.post-divider,
.thread-divider,
hr{
  border: 0 !important;
  border-top: 1px solid #eaeaea !important;
}

/* Right-hand cards */
.right-card{
  background: var(--woords-surface) !important;
  border: 1px solid var(--woords-border) !important;
  box-shadow: none !important;
}

.right-card-title{
  background: var(--woords-surface) !important;
  border-bottom: 1px solid #eeeeee !important;
}

.trend-item{
  border-top: 1px solid #eeeeee !important;
}

.trend-item:hover{
  background: #f7f7f7 !important;
}

/* Softer icon/text tones */
.nav-btn,
.nav-btn svg,
.nav-btn i{
  color: #222 !important;
}

.nav-btn:not(.active),
.nav-btn:not(.active) svg,
.nav-btn:not(.active) i{
  color: #777 !important;
}

/* Keep active rail button bold like Threads */
.nav-btn.active,
.nav-btn.active svg,
.nav-btn.active i{
  color: #fff !important;
}

/* Topbar logo alignment controls */
.topbar-left{
  padding-left: 0 !important;
}

.topbar-logo-wrap{
  width: 72px !important;
  height: 64px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 72px !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
}

.topbar-logo-img{
  width: 50px !important;
  height: 50px !important;
  object-fit: contain !important;
  display: block !important;
  transform: translateX(-10px);
}

/* Rail logo */
.rail-nav-logo{
  width: 38px !important;
  height: 38px !important;
  object-fit: contain !important;
}

/* =========================================================
   THREADS-STYLE FINAL POLISH
   ========================================================= */

html,
body {
  background: #f5f5f5 !important;
}

/* Main app background */
body,
.layout,
main,
.feed,
.content,
.page-shell {
  background: #f5f5f5 !important;
}

/* Top bar */
.topbar,
.site-topbar,
.header {
  background: #f5f5f5 !important;
  border-bottom: 1px solid #e5e5e5 !important;
  box-shadow: none !important;
}

/* Left rail */
.rail,
.sidebar,
.left-rail {
  background: #f5f5f5 !important;
  border-right: 1px solid #e5e5e5 !important;
}

/* Feed column */
.feed,
.main-feed,
.posts,
.post-feed {
  background: transparent !important;
}

/* Post cards */
.post,
.post-card,
.thread-card,
.feed-card {
  background: #ffffff !important;
  border: 1px solid #e5e5e5 !important;
  border-radius: 18px !important;
  box-shadow: none !important;
}

/* Composer */
.composer,
.compose-card,
.post-composer {
  background: #ffffff !important;
  border: 1px solid #e5e5e5 !important;
  border-radius: 18px !important;
  box-shadow: none !important;
}

/* Right cards */
.right-card {
  background: #ffffff !important;
  border: 1px solid #e5e5e5 !important;
  box-shadow: none !important;
}

/* Buttons / chips */
button,
.category-pill,
.dropdown-toggle {
  box-shadow: none !important;
}

/* Softer icon colour */
.nav-btn,
.nav-btn svg,
.nav-btn i {
  color: #4a4a4a !important;
}

/* Active rail icon */
.nav-btn.active,
.nav-btn.is-active {
  background: #111 !important;
  color: #fff !important;
}

/* Give the feed more Threads-style spacing */
.main-column,
.feed-column,
.center-column {
  padding-top: 28px !important;
}

/* =========================================================
   THREADS-LIKE BACKGROUND + CARD POLISH
   ========================================================= */

html,
body {
  background: #f3f3f3 !important;
}

/* Overall app canvas */
.app,
.app-shell,
.layout,
.main-layout,
.page-wrap,
.page-container {
  background: #f3f3f3 !important;
}

/* Top bar and left rail stay white */
.topbar,
.header,
.site-header,
.left-rail,
.sidebar,
.rail {
  background: #ffffff !important;
}

/* Subtle separators */
.topbar,
.header,
.site-header {
  border-bottom: 1px solid #e6e6e6 !important;
}

.left-rail,
.sidebar,
.rail {
  border-right: 1px solid #e6e6e6 !important;
}

/* Centre feed area */
main,
.feed,
.feed-wrap,
.feed-column,
.main-column,
.content,
.content-area {
  background: #f3f3f3 !important;
}

/* Composer + posts */
.composer,
.compose-card,
.post-composer,
.post,
.post-card,
.thread-card,
.feed-card,
.card {
  background: #ffffff !important;
  border: 1px solid #e1e1e1 !important;
  border-radius: 20px !important;
  box-shadow: none !important;
}

/* Right panel */
.right-rail {
  background: #f3f3f3 !important;
}

.right-card {
  background: #ffffff !important;
  border: 1px solid #e1e1e1 !important;
  border-radius: 20px !important;
  box-shadow: none !important;
}

/* Remove any inner gradient styling */
.right-card-title {
  background: #ffffff !important;
  border-bottom: none !important;
}

/* Make centre column feel more Threads-like */
.feed-column,
.main-column,
.content-area {
  max-width: 720px !important;
}

/* Softer inactive icons */
.nav-btn {
  color: #555 !important;
}

/* Active icon stays bold black */
.nav-btn.active,
.nav-btn.is-active,
.nav-btn[aria-current="page"] {
  background: #111 !important;
  color: #fff !important;
}


/* =========================================================
   MOBILE BOTTOM RAIL FIX — WOORDS UI
   Prevents feed/pages from sitting behind the bottom rail.
   ========================================================= */

@media (max-width: 720px){

  html,
  body{
    overflow-x:hidden !important;
  }

  body{
    padding-bottom:calc(86px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .layout,
  .app,
  .app-shell,
  .main-layout,
  .feed-wrap,
  .feed-column,
  .main-column,
  .content-area,
  main{
    padding-bottom:calc(120px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .rail,
  .left-rail,
  .sidebar{
    position:fixed !important;
    left:0 !important;
    right:0 !important;
    bottom:0 !important;
    top:auto !important;

    width:100% !important;
    min-width:100% !important;
    max-width:100% !important;

    height:calc(78px + env(safe-area-inset-bottom, 0px)) !important;

    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    justify-content:center !important;

    padding:10px 14px calc(10px + env(safe-area-inset-bottom, 0px)) 14px !important;

    background:#ffffff !important;
    border-top:1px solid rgba(0,0,0,.08) !important;
    border-right:0 !important;
    box-shadow:0 -8px 24px rgba(15,23,42,.06) !important;

    z-index:9999 !important;
  }

  .rail .nav,
  .left-rail .nav,
  .sidebar .nav{
    width:100% !important;
    max-width:460px !important;

    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    justify-content:space-around !important;

    gap:6px !important;
    margin:0 !important;
  }

  .rail .nav-btn,
  .left-rail .nav-btn,
  .sidebar .nav-btn{
    width:48px !important;
    height:48px !important;
    min-width:48px !important;
    min-height:48px !important;
    flex:0 0 48px !important;
  }
}
