/* MOADE chrome-free one-page — high contrast multi-planet theme */
:root {
  --bg: #050814;
  --bg2: #0c1430;
  --panel: #121c3a;
  --panel2: #1a2748;
  --line: #2e3f6e;
  --text: #f4f7ff;
  --muted: #c5d0ef;
  --accent: #00e6b0;
  --accent2: #6ea8ff;
  --gold: #ffd76a;
  --danger: #ff6b8a;
  --radius: 16px;
  --shadow: 0 12px 40px rgba(0,0,0,.45);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Ubuntu, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.moade-body {
  margin: 0;
  background: radial-gradient(1200px 600px at 10% -10%, #1a2b66 0%, transparent 50%),
              radial-gradient(900px 500px at 100% 20%, #0a4d42 0%, transparent 45%),
              var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; color: #7fffd4; }

.moade-stars, .moade-orbit {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
}
.moade-stars {
  background-image:
    radial-gradient(1px 1px at 20% 30%, #fff8, transparent),
    radial-gradient(1px 1px at 70% 40%, #fff6, transparent),
    radial-gradient(1.5px 1.5px at 40% 80%, #fff7, transparent),
    radial-gradient(1px 1px at 85% 15%, #fff5, transparent),
    radial-gradient(1px 1px at 10% 70%, #fff4, transparent);
  animation: twinkle 8s ease-in-out infinite alternate;
  opacity: .7;
}
.moade-orbit {
  background: radial-gradient(circle at 80% 70%, rgba(0,230,176,.08), transparent 40%);
  animation: drift 18s linear infinite;
}
@keyframes twinkle { from { opacity: .4; } to { opacity: .85; } }
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(-30px); } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes spin-slow { from { transform: rotate(0); } to { transform: rotate(360deg); } }

.moade-topnav, .moade-hero, .moade-timeline, .moade-ecosystem, .moade-footer-band, .moade-admin-bar, .moade-post-main {
  position: relative;
  z-index: 1;
}

.moade-admin-bar {
  background: linear-gradient(90deg, #1c3a2a, #1a2a4a);
  border-bottom: 1px solid var(--accent);
  padding: .6rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  align-items: center;
  font-size: .92rem;
}
.moade-admin-bar .btn-sm, .moade-admin-bar a.btn-sm {
  background: var(--accent);
  color: #04281f;
  border: 0;
  border-radius: 999px;
  padding: .35rem .8rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.moade-topnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .85rem 1.25rem;
  backdrop-filter: blur(10px);
  background: rgba(5,8,20,.55);
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: sticky;
  top: 0;
  z-index: 20;
}
.moade-brand {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: var(--text);
  font-weight: 800;
  letter-spacing: .04em;
  text-decoration: none;
}
.moade-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: 0 0 0 2px rgba(0, 230, 176, 0.35), 0 4px 14px rgba(0, 0, 0, 0.35);
}
.moade-logo-hero {
  width: 140px;
  height: 140px;
  max-width: 42vw;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.1rem;
  display: block;
  filter: drop-shadow(0 0 22px rgba(0, 230, 176, 0.5));
  box-shadow: 0 0 0 3px rgba(110, 168, 255, 0.25);
}
.moade-logo-sm {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto .65rem;
  display: block;
  box-shadow: 0 0 0 2px rgba(0, 230, 176, 0.3);
}
.moade-float { animation: floaty 4.5s ease-in-out infinite; }
.moade-topnav nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.moade-topnav nav a { color: var(--muted); font-weight: 600; }
.moade-topnav nav a:hover { color: var(--accent); }

.moade-hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem 2rem;
  text-align: center;
}
.moade-hero-inner { max-width: 820px; }
.moade-kicker {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 700;
}
.moade-hero-title {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  line-height: 1.05;
  margin: .6rem 0 1rem;
  font-weight: 900;
  letter-spacing: -.02em;
}
.moade-hero-title .grad {
  background: linear-gradient(90deg, var(--accent), var(--accent2), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.moade-plain {
  font-size: 1.15rem;
  color: var(--text);
  font-weight: 500;
  max-width: 40rem;
  margin: 0 auto 1rem;
}
.moade-sub {
  color: var(--muted);
  max-width: 36rem;
  margin: 0 auto 1.5rem;
  font-size: 1.02rem;
}
.moade-social-row, .moade-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  justify-content: center;
  margin: 1rem 0;
}
.moade-social-chip {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  padding: .45rem .9rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
.moade-social-chip:hover { border-color: var(--accent); color: var(--accent); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: .75rem 1.25rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #00b894);
  color: #04281f !important;
  box-shadow: 0 8px 24px rgba(0,230,176,.25);
}
.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,.28);
  color: var(--text) !important;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent) !important; }
.moade-planet-row { margin-top: 1.5rem; font-size: 1.6rem; letter-spacing: 1.2rem; opacity: .9; }
.planet { display: inline-block; animation: floaty 5s ease-in-out infinite; }
.planet.p2 { animation-delay: .6s; }
.planet.p3 { animation-delay: 1.2s; }
.planet.p4 { animation-delay: 1.8s; }

.moade-ecosystem {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .5rem;
  padding: 1rem;
  background: rgba(18,28,58,.75);
  border-block: 1px solid var(--line);
  text-align: center;
}
.moade-ecosystem a {
  color: var(--muted);
  font-weight: 700;
  padding: .6rem;
  border-radius: 10px;
}
.moade-ecosystem a:hover { background: var(--panel2); color: var(--accent); text-decoration: none; }
@media (max-width: 700px) {
  .moade-ecosystem { grid-template-columns: 1fr 1fr; }
}

.moade-timeline {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}
.moade-timeline h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: .4rem;
}
.sparkle { animation: twinkle 2s infinite alternate; }
.moade-timeline-intro {
  text-align: center;
  color: var(--muted);
  margin-bottom: 2.5rem;
}
.moade-timeline-line {
  position: relative;
  padding-left: 0;
}
.moade-timeline-line::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent2), transparent);
  border-radius: 3px;
}
@media (min-width: 800px) {
  .moade-timeline-line::before { left: 50%; transform: translateX(-50%); }
}

.moade-card {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: .75rem;
  margin-bottom: 1.5rem;
  animation: rise .7s ease both;
}
.moade-card-badge { z-index: 2; }
.moade-year {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  background: linear-gradient(135deg, var(--accent), #5eead4);
  color: #04281f;
  font-weight: 900;
  border-radius: 999px;
  padding: .45rem .55rem;
  font-size: .85rem;
  box-shadow: 0 0 0 4px rgba(0,230,176,.15);
}
.moade-card-body {
  background: linear-gradient(160deg, var(--panel) 0%, var(--panel2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem 1rem;
  box-shadow: var(--shadow);
  color: var(--text);
}
.moade-card-title {
  margin: 0 0 .75rem;
  font-size: 1.25rem;
  color: #ffffff;
  font-weight: 800;
}
.moade-card-date {
  color: var(--accent);
  font-weight: 700;
  margin: .5rem 0;
}
.moade-card-text {
  color: #e8eeff !important;
  font-size: 1.02rem;
  font-weight: 450;
}
.moade-card-text p { margin: .4rem 0; color: #e8eeff !important; }
.moade-card-text a { color: var(--gold); font-weight: 600; }
.moade-media { margin: .75rem 0; text-align: center; }
.moade-media img {
  max-width: 100%;
  max-height: 360px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.moade-yt iframe {
  width: 100%;
  min-height: 240px;
  border: 0;
  border-radius: 12px;
}
.moade-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1rem;
  align-items: center;
  margin-top: 1rem;
  padding-top: .75rem;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: .95rem;
}
.moade-comment-btn, .moade-edit-btn {
  background: rgba(0,230,176,.12);
  border: 1px solid rgba(0,230,176,.35);
  color: var(--text);
  border-radius: 999px;
  padding: .4rem .85rem;
  cursor: pointer;
  font-weight: 700;
}
.moade-comment-btn:hover, .moade-edit-btn:hover {
  background: rgba(0,230,176,.25);
}
.moade-view-link { color: var(--accent2); font-weight: 700; }

.moade-footer-band {
  text-align: center;
  padding: 3rem 1.25rem;
  background: #03060f;
  border-top: 1px solid var(--line);
}
.moade-footer-band h2 { margin: .4rem 0 0.8rem; }
.moade-footer-band > p { color: var(--muted); max-width: 36rem; margin: 0 auto 1rem; }
.moade-copy { opacity: .7; font-size: .9rem; margin-top: 1.5rem !important; }

/* Modal */
.moade-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(2,6,18,.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
}
.moade-modal[hidden] { display: none !important; }
.moade-modal-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  width: min(560px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: 1.25rem;
  box-shadow: var(--shadow);
  color: var(--text);
  position: relative;
}
.moade-edit-card { width: min(640px, 100%); }
.moade-modal-close {
  position: absolute;
  right: .7rem;
  top: .5rem;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 1.6rem;
  cursor: pointer;
}
.moade-comment-list { max-height: 280px; overflow: auto; margin: .75rem 0; }
.moade-comment {
  background: var(--panel2);
  border-radius: 10px;
  padding: .65rem .8rem;
  margin-bottom: .5rem;
  border: 1px solid var(--line);
  color: var(--text);
}
.moade-comment-form {
  display: grid;
  gap: .55rem;
}
.moade-comment-form input,
.moade-comment-form textarea,
.moade-edit-card input,
.moade-edit-card textarea,
.moade-edit-card select {
  width: 100%;
  background: #0b1228;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: .6rem .75rem;
  font: inherit;
}
.moade-edit-card label {
  display: grid;
  gap: .3rem;
  margin-bottom: .55rem;
  font-size: .9rem;
  color: var(--muted);
  font-weight: 600;
}
.moade-post-main { max-width: 800px; margin: 0 auto; padding: 2rem 1rem; }
.moade-comments-section { margin-top: 1.5rem; }
.moade-empty { text-align: center; color: var(--muted); }

/* Hide any accidental Odoo chrome if template wraps */
header.o_header_standard, .o_main_nav, .o_footer, #wrapwrap > header, #wrapwrap > footer,
.o_header_affix, .o_footer_copyright { display: none !important; }
