/* ============================================================
   REAL TREE GUY OS — UNIFIED GLOBAL + DASHBOARD + MODULE THEME
   ============================================================ */

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ============================================================
   GLOBAL BODY — FULL SCREEN BACKGROUND (DESKTOP + MOBILE)
   ============================================================ */

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;

  /* FULLSCREEN BACKGROUND IMAGE */
  background: #0d0f0d url("https://raw.githubusercontent.com/boardwalkclay1/real_tree_guy/main/public/assets/icons/rtg-192.png")
    center center / cover no-repeat;

  /* MOBILE-SAFE SCROLL (iOS ignores fixed) */
  background-attachment: scroll;

  color: #e8ffe8;
  min-height: 100vh;
  line-height: 1.5;
}

/* OPTIONAL: DESKTOP FIXED BACKGROUND */
@media (min-width: 768px) {
  body {
    background-attachment: fixed;
  }
}

/* ============================================================
   GLOBAL BUTTONS
   ============================================================ */
.btn-primary,
.btn-ghost {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: #3f8b44;
  border: 3px solid #6aff6a;
  color: #e8ffe8;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.btn-primary:hover {
  background: #55c85a;
  transform: scale(1.05);
}

.btn-ghost {
  background: rgba(0,0,0,0.25);
  border: 2px solid #3f8b44;
  color: #d8ffd8;
}

.btn-ghost:hover {
  background: rgba(63,139,68,0.4);
  transform: scale(1.05);
}

/* ============================================================
   GLOBAL CARDS
   ============================================================ */
.card {
  background: rgba(0,0,0,0.35);
  border: 2px solid #2e6b33;
  border-radius: 18px;
  padding: 20px;
  color: #e8ffe8;
  box-shadow: 0 0 18px rgba(0,0,0,0.4);
}

/* ============================================================
   GLOBAL GRID LAYOUTS
   ============================================================ */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ============================================================
   HERO SECTIONS (Landing + Modules)
   ============================================================ */
.landing-hero,
.module-hero {
  text-align: center;
  padding: 60px 20px;
  background: rgba(0,0,0,0.35);
  border-bottom: 2px solid #2e6b33;
  backdrop-filter: blur(10px);
}

.landing-hero h1,
.module-hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  color: #caffca;
  text-shadow: 0 0 14px #1f5f2b;
}

.landing-hero p,
.module-hero p {
  font-size: 1.3rem;
  color: #d8ffd8;
  margin-top: 10px;
}

/* ============================================================
   LANDING GRID
   ============================================================ */
.landing-grid {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

/* ============================================================
   DASHBOARD TREE UI (ISOLATED)
   ============================================================ */

/* HEADER */
.rtg-header {
  position: relative;
  z-index: 999999999;
  text-align: center;
  padding: 40px 10px;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 2px solid #2e6b33;
  backdrop-filter: blur(10px);
}

.rtg-header h1 {
  font-size: 3.4rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: #caffca;
  text-shadow: 0 0 14px #1f5f2b, 0 0 6px #0f2f18;
}

.rtg-header p {
  font-size: 1.5rem;
  color: #d8ffd8;
  text-shadow: 0 0 10px #1f5f2b;
}

/* TREE MENU */
.tree-menu {
  display: flex;
  justify-content: center;
  padding: 40px 0;
}

/* TREE WRAPPER */
.tree {
  position: relative;
  width: 420px;
  height: 700px;
}

/* CANOPY */
.canopy {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 350px;
  background: radial-gradient(circle at 50% 40%, #1f6b2e, #174d22);
  border-radius: 50%;
  z-index: 0;
  filter: brightness(0.9);
}

/* TRUNK */
.trunk {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 100%;
  background: linear-gradient(90deg, #4e3418, #6b4a23, #4e3418);
  border-radius: 70px;
  box-shadow: 0 0 18px rgba(0,0,0,0.6);
  z-index: 1;
}

/* BRANCHES */
.branch {
  position: absolute;
  width: 300px;
  height: 28px;
  z-index: 2;
}

.branch-bar {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #5a3e1b, #6b4a23, #5a3e1b);
  border-radius: 14px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.branch-bush {
  position: absolute;
  width: 90px;
  height: 60px;
  background: radial-gradient(circle, #1f4d1f, #0f2d0f);
  border-radius: 50%;
  z-index: 3;
  filter: brightness(0.9);
}

/* BUTTONS ON BRANCHES */
.branch-btn {
  position: absolute;
  padding: 14px 22px;
  font-size: 1.2rem;
  font-weight: 700;
  background: rgba(26, 63, 29, 0.96);
  border-radius: 40px 14px 40px 14px;
  border: 3px solid #3f8b44;
  color: #d8ffd8;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(0,0,0,0.55);
  transition: 0.2s ease;
  white-space: nowrap;
  z-index: 99999999;
}

.branch-btn:hover {
  background: #3f8b44;
  transform: scale(1.06);
  box-shadow: 0 8px 18px rgba(0,0,0,0.7);
}

/* BRANCH POSITIONS */
.b1 { top: 80px;  left: 40px; }
.b1 .branch-bar { transform: rotate(-12deg); }

.b2 { top: 140px; right: 40px; }
.b2 .branch-bar { transform: rotate(12deg); }

.b3 { top: 200px; left: 40px; }
.b3 .branch-bar { transform: rotate(-10deg); }

.b4 { top: 260px; right: 40px; }
.b4 .branch-bar { transform: rotate(10deg); }

.b5 { top: 320px; left: 40px; }
.b5 .branch-bar { transform: rotate(-8deg); }

.b6 { top: 380px; right: 40px; }
.b6 .branch-bar { transform: rotate(8deg); }

.b7 {
  top: 460px;
  left: 50%;
  transform: translateX(-50%);
  width: 340px;
}

.b1 .branch-btn,
.b3 .branch-btn,
.b5 .branch-btn {
  left: -10px;
  top: -20px;
}

.b2 .branch-btn,
.b4 .branch-btn,
.b6 .branch-btn {
  right: -10px;
 top: -20px;
}

.b7 .branch-btn {
  left: 50%;
  top: -20px;
  transform: translateX(-50%);
}

/* FOOTER */
footer {
  text-align: center;
  padding: 16px 10px 24px;
  font-size: 1.1rem;
  color: #c8f5c8;
  opacity: 0.9;
}
/* DESKTOP — full cinematic background */
body {
  background: #0d0f0d url("https://raw.githubusercontent.com/boardwalkclay1/real_tree_guy/main/public/assets/icons/rtg-192.png")
    center center / cover no-repeat;
  background-attachment: fixed;
}

/* MOBILE — scale image properly */
@media (max-width: 768px) {
  body {
    background: #0d0f0d url("https://raw.githubusercontent.com/boardwalkclay1/real_tree_guy/main/public/assets/icons/rtg-192.png")
      center top / contain no-repeat;
    background-attachment: scroll;
  }
}

