/* ==========================================================================
   rb-2040-vision.css — RINGBD 2040 "AURORA GLASS" (PROD, 2026-11-23)
   Dipu ruling 2026-11-23 ~13:04 Dhaka: "2040 LAGABE NA — 2040 SALER DESIGN HOBE."
   Vision: /home/ubuntu/2040-vision-2026-11-23.md
   Twin copies: themes/sunshine/stylesheet/ (home + post) and
   themes/ringbd/stylesheet/ (/welcome). Same content, same md5 — keep in sync.
   REPLACEMENT styling layered AFTER the old sheets; old files untouched,
   nothing deleted. Geometry-safe: visual properties only — no width, no
   margin, no position changes, so scrollWidth is unaffected.
   Every glass rule paints a background behind the blur (solid fallback).
   ========================================================================== */

/* ---- Vision tokens (local to this sheet; do not fight rb-2040-tokens) ---- */
:root {
  --rbv-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --rbv-fast: 250ms;
  --rbv-slow: 500ms;
  --rbv-navy-950: #050D1A;
  --rbv-navy-900: #071A33;
  --rbv-navy-800: #0A2547;
  --rbv-emerald: #00A651;
  --rbv-emerald-deep: #008A44;
  --rbv-mint: #7DE3B0;
  --rbv-gold: #C9A227;
  --rbv-shadow-card: 0 1px 2px rgba(5, 13, 26, 0.06), 0 8px 24px rgba(5, 13, 26, 0.08), 0 24px 48px rgba(5, 13, 26, 0.06);
  --rbv-shadow-card-hover: 0 2px 4px rgba(5, 13, 26, 0.06), 0 12px 32px rgba(5, 13, 26, 0.12), 0 32px 64px rgba(5, 13, 26, 0.10);
  --rbv-shadow-glow: 0 8px 24px rgba(0, 166, 81, 0.45), 0 2px 8px rgba(0, 166, 81, 0.30);
}

/* ==========================================================================
   /WELCOME (ringbd theme) — aurora wash, glass header, fluid hero
   ========================================================================== */
body.ringbd-welcome {
  background-color: var(--rbv-navy-950);
  background-image:
    radial-gradient(1200px 620px at 12% -10%, rgba(0, 166, 81, 0.38), rgba(0, 166, 81, 0) 60%),
    radial-gradient(900px 520px at 92% 108%, rgba(201, 162, 39, 0.30), rgba(201, 162, 39, 0) 60%),
    radial-gradient(700px 420px at 85% -5%, rgba(18, 58, 99, 0.55), rgba(18, 58, 99, 0) 65%),
    linear-gradient(180deg, #050D1A 0%, #071A33 55%, #0A2547 100%);
  background-attachment: fixed;
}

body.ringbd-welcome #welcomeheader {
  background: rgba(5, 13, 26, 0.55);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

body.ringbd-welcome .login_left_combo h1 {
  font-size: clamp(38px, 4.4vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-weight: 800;
  background: linear-gradient(92deg, #FFFFFF 30%, #7DE3B0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #FFFFFF;
}

body.ringbd-welcome .login_left_combo p {
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.92);
}

body.ringbd-welcome .login_innre {
  background: linear-gradient(160deg, rgba(22, 17, 42, 0.55), rgba(10, 8, 24, 0.62));
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  backdrop-filter: blur(22px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 32px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.50), 0 2px 8px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.50);
}

body.ringbd-welcome .login_innre .btn-main,
body.ringbd-welcome .btn-main {
  background: linear-gradient(90deg, #00A651 0%, #008A44 100%);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 166, 81, 0.45), 0 2px 8px rgba(0, 166, 81, 0.30);
  transition: transform var(--rbv-fast) var(--rbv-spring), box-shadow var(--rbv-fast) var(--rbv-spring);
}

body.ringbd-welcome .login_innre .btn-main:hover,
body.ringbd-welcome .btn-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 166, 81, 0.55), 0 4px 12px rgba(0, 166, 81, 0.35);
}

body.ringbd-welcome #welcomeheader .mdbtn {
  border-radius: 999px;
  transition: transform var(--rbv-fast) var(--rbv-spring), background-color var(--rbv-fast) var(--rbv-spring);
}

body.ringbd-welcome #welcomeheader .mdbtn:hover { transform: translateY(-1px); }

body.ringbd-welcome .welcome-footer {
  color: rgba(255, 255, 255, 0.65);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

body.ringbd-welcome .welcome-footer a { color: rgba(255, 255, 255, 0.85); }

/* Hero entry: one spring, fade + rise */
@keyframes rbv-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
body.ringbd-welcome .login_left_combo h1,
body.ringbd-welcome .login_left_combo p { animation: rbv-rise var(--rbv-slow) var(--rbv-spring) both; }
body.ringbd-welcome .login_left_combo p { animation-delay: 80ms; }
body.ringbd-welcome .login_innre { animation: rbv-rise var(--rbv-slow) var(--rbv-spring) 120ms both; }

/* ==========================================================================
   /HOME + /POST (sunshine theme) — aurora-tinted wash, layered-glass cards
   ========================================================================== */
.rb-2040-feed,
.post-container {
  /* page wash lives on body via the selectors below; cards get the depth */
}

/* Soft emerald aurora wash at the top of the feed / post page, fading into
   the familiar light grey — atmosphere without darkening the feed. */
body:has(.rb-2040-feed),
body:has(.post-container) {
  background-color: #F0F2F5;
  background-image:
    radial-gradient(1000px 420px at 50% -12%, rgba(0, 166, 81, 0.12), rgba(0, 166, 81, 0) 62%),
    radial-gradient(720px 300px at 88% -6%, rgba(201, 162, 39, 0.08), rgba(201, 162, 39, 0) 60%);
  background-attachment: fixed;
}

/* Post cards: 20px radius, 3-layer soft shadow, spring hover lift. */
.rb-2040-feed .posts_load .post-container .panel.panel-white.panel-shadow,
.post-container .panel.panel-white.panel-shadow {
  background: #FFFFFF;
  border: 1px solid #E0E3E7;
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(5, 13, 26, 0.06), 0 8px 24px rgba(5, 13, 26, 0.08), 0 24px 48px rgba(5, 13, 26, 0.06);
  overflow: hidden;
  transition: transform var(--rbv-fast) var(--rbv-spring), box-shadow var(--rbv-fast) var(--rbv-spring);
}

.rb-2040-feed .posts_load .post-container .panel.panel-white.panel-shadow:hover,
.post-container .panel.panel-white.panel-shadow:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(5, 13, 26, 0.06), 0 12px 32px rgba(5, 13, 26, 0.12), 0 32px 64px rgba(5, 13, 26, 0.10);
}

/* Composer: translucent glass over the wash. */
.rb-2040-feed .rb-2040-composer,
.rb-2040-composer {
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.70);
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(5, 13, 26, 0.06), 0 8px 24px rgba(5, 13, 26, 0.08);
}

/* Post titles: fluid display, tight tracking. */
.rb-2040-post h1,
.post-container h1 {
  font-size: clamp(28px, 4.5vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* Logged-in header: frosted glass bar. */
header,
.wo_header {
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid rgba(224, 227, 231, 0.90);
  box-shadow: 0 8px 24px rgba(5, 13, 26, 0.06);
}

/* Primary buttons on feed/post: pill + emerald glow. */
.rb-2040-feed .btn-main,
.post-container .btn-main {
  border-radius: 999px;
  background: linear-gradient(180deg, #00A651 0%, #008A44 100%);
  box-shadow: 0 8px 24px rgba(0, 166, 81, 0.45), 0 2px 8px rgba(0, 166, 81, 0.30);
  transition: transform var(--rbv-fast) var(--rbv-spring), box-shadow var(--rbv-fast) var(--rbv-spring);
}

.rb-2040-feed .btn-main:hover,
.post-container .btn-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 166, 81, 0.55), 0 4px 12px rgba(0, 166, 81, 0.35);
}

/* ---- Reduced motion / reduced transparency: vision collapses safely ---- */
@media (prefers-reduced-motion: reduce) {
  body.ringbd-welcome .login_left_combo h1,
  body.ringbd-welcome .login_left_combo p,
  body.ringbd-welcome .login_innre { animation: none; }
  .rb-2040-feed .posts_load .post-container .panel.panel-white.panel-shadow,
  .post-container .panel.panel-white.panel-shadow,
  .rb-2040-feed .btn-main,
  .post-container .btn-main,
  body.ringbd-welcome .btn-main { transition: none; }
}

@media (prefers-reduced-transparency: reduce) {
  body.ringbd-welcome #welcomeheader { background: #050D1A; }
  .rb-2040-feed .rb-2040-composer,
  .rb-2040-composer { background: #FFFFFF; }
  header, .wo_header { background: #FFFFFF; }
}
