/* ==== UFO CONFESSIONS — DARK BIOHAZARD THEME (ONE FILE) ==== */
:root{
  --bg0:#050607;
  --bg1:#070b08;

  --toxic:#9CFF00;
  --toxic2:#D7FF3A;

  --text:#EAF7D6;
  --muted:#B7C6A0;
  --dim:#7f8f73;

  --panel:rgba(10,14,9,.62);
  --panel2:rgba(10,14,9,.40);
  --stroke:rgba(156,255,0,.18);
  --shadow:0 18px 60px rgba(0,0,0,.60);
  --glow:0 0 18px rgba(156,255,0,.35), 0 0 60px rgba(156,255,0,.14);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  color:var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background:
    radial-gradient(900px 520px at 18% 22%, rgba(156,255,0,.14), transparent 60%),
    radial-gradient(700px 460px at 82% 28%, rgba(85,255,106,.10), transparent 55%),
    radial-gradient(900px 620px at 50% 92%, rgba(215,255,58,.08), transparent 62%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  overflow-x:hidden;
}

/* Subtle hazard grid + micro-noise */
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(rgba(156,255,0,.06) 1px, transparent 1px) 0 0/28px 28px,
    linear-gradient(90deg, rgba(156,255,0,.06) 1px, transparent 1px) 0 0/28px 28px;
  mask-image: radial-gradient(closest-side at 50% 25%, #000 55%, transparent 100%);
  opacity:.85;
}
body::after{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity:.045;
  mix-blend-mode:overlay;
}

a{color:var(--toxic2); text-decoration:none}
a:hover{text-decoration:underline}

/* Screen-reader only */
.sr-only{
  position:absolute!important;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}

/* Card */
.card{
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  border:1px solid var(--stroke);
  border-radius:18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

/* ==== TOPBAR ==== */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  background: linear-gradient(180deg, rgba(5,6,7,.92), rgba(5,6,7,.62));
  border-bottom:1px solid rgba(156,255,0,.16);
  backdrop-filter: blur(10px);
}

/* keep brand/search/actions balanced */
.topbar-inner{
  max-width:1100px;
  margin:0 auto;
  padding:14px 16px;

  display:grid;
  grid-template-columns:auto minmax(220px,520px) auto; /* brand | search | hamburger */
  align-items:center;
  gap:14px;
}

/* Brand (logo + text vibrate together) */
.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  will-change: transform;
  animation: vibe-in .38s ease-out both;
}
.brand:hover{ animation: vibe-hover .28s linear both; }

/* larger mark, no border */
.brand-mark{
  width:48px;
  height:48px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:0;
  background:transparent;
  border:0;
  box-shadow:none;
  overflow:visible;
}
.brand-mark img{
  width:54px;
  height:54px;
  display:block;
  object-fit:contain;
  background:transparent;
  filter:
    drop-shadow(0 0 6px rgba(156,255,0,.35))
    drop-shadow(0 0 18px rgba(156,255,0,.18));
}

.brand-text{
  font-weight:400;
  text-transform:none;
  letter-spacing:1.8px;
  font-size:16px;
  color: rgba(234,247,214,.92);
  display:inline-block;
}

/* Entry “vibrate” */
@keyframes vibe-in{
  0%   { transform: translate(0,0) rotate(0); }
  12%  { transform: translate(-1px, 0) rotate(-0.6deg); }
  24%  { transform: translate( 1px,-1px) rotate( 0.6deg); }
  36%  { transform: translate(-1px, 1px) rotate(-0.5deg); }
  48%  { transform: translate( 1px, 0) rotate( 0.4deg); }
  60%  { transform: translate(-1px,-1px) rotate(-0.3deg); }
  72%  { transform: translate( 1px, 1px) rotate( 0.2deg); }
  84%  { transform: translate(-1px, 0) rotate(-0.1deg); }
  100% { transform: translate(0,0) rotate(0); }
}

/* Hover “vibrate” */
@keyframes vibe-hover{
  0%   { transform: translate(0,0) rotate(0); }
  20%  { transform: translate(-1px, 0) rotate(-0.4deg); }
  40%  { transform: translate( 1px,-1px) rotate( 0.4deg); }
  60%  { transform: translate(-1px, 1px) rotate(-0.3deg); }
  80%  { transform: translate( 1px, 0) rotate( 0.3deg); }
  100% { transform: translate(0,0) rotate(0); }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce){
  .brand, .brand:hover{ animation:none !important; }
}

/* Search bar */
.top-search{
  justify-self:center;
  width:100%;
  max-width:520px;
  display:flex;
  align-items:center;
  gap:10px;
  margin:0;
}
.top-search-input{
  flex:1;
  width:100%;
  padding:9px 12px;
  border-radius:12px;
  border:1px solid rgba(156,255,0,.18);
  background: rgba(5,8,6,.55);
  color: var(--text);
  outline:none;
}
.top-search-input::placeholder{ color: rgba(183,198,160,.75); }
.top-search-input:focus{
  border-color: rgba(156,255,0,.45);
  box-shadow: 0 0 0 3px rgba(156,255,0,.10);
}
.top-search-btn{
  width:40px;
  height:40px;
  border-radius:12px;
  border:0;
  cursor:pointer;
  background: transparent;
  color: var(--toxic2);
  display:inline-grid;
  place-items:center;
}
.top-search-btn:hover{ background: rgba(156,255,0,.10); }

/* Hamburger always visible */
.actions{display:flex; align-items:center; justify-self:end}
.menu-btn{
  display:inline-grid;
  place-items:center;
  width:40px;
  height:40px;
  padding:0;
  border:0;
  background: transparent;
  border-radius:12px;
  cursor:pointer;
}
.menu-btn:hover{ background: transparent; }

.menu-icon{
  width:22px;
  height:14px;
  position:relative;
  display:block;
}
.menu-icon span{
  position:absolute;
  left:50%;
  width:22px;
  height:2px;
  transform:translateX(-50%);
  background: var(--toxic2);
  border-radius:2px;
}
.menu-icon span:nth-child(1){ top:0; }
.menu-icon span:nth-child(2){ top:6px; opacity:.92; }
.menu-icon span:nth-child(3){ top:12px; }

/* Drawer menu */
#navToggle{display:none}
.mobile-drawer{
  display:none;
  border-top:1px solid rgba(156,255,0,.14);
}
#navToggle:checked ~ .mobile-drawer{display:block}
.mobile-drawer .inner{
  max-width:1100px;
  margin:0 auto;
  padding:12px 16px 16px;
  display:grid;
  gap:10px;
}
.mobile-drawer a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 12px;
  border-radius:12px;
  background: rgba(156,255,0,.06);
  border:1px solid rgba(156,255,0,.12);
  color: rgba(234,247,214,.92);
  font-weight:800;
  letter-spacing:.2px;
  text-decoration:none;
}
.mobile-drawer a:hover{
  color: var(--toxic2);
  border-color: rgba(156,255,0,.22);
}

/* ==== MAIN / INTRO ==== */
main{
  max-width:1100px;
  margin:0 auto;
  padding:18px 16px 40px;
}

.intro{
  padding:18px;
  position:relative;
  overflow:hidden;
}

/* Glow layer behind everything */
.intro::before{
  content:"";
  position:absolute;
  inset:-70px;
  background:
    radial-gradient(closest-side at 22% 32%, rgba(156,255,0,.12), transparent 62%),
    radial-gradient(closest-side at 78% 38%, rgba(215,255,58,.10), transparent 64%);
  filter: blur(6px);
  z-index:0;
}

/* Alien sits above glow, still behind content */
.intro-alien{
  position:absolute;
  top:-18px;
  right:-22px;
  width:min(220px, 38vw);
  height:auto;
  opacity:.18;
  pointer-events:none;
  user-select:none;
  filter:
    drop-shadow(0 0 18px rgba(156,255,0,.18))
    drop-shadow(0 0 40px rgba(156,255,0,.08));
  z-index:1;
}

/* Content sits above both */
.intro > *:not(.intro-alien){
  position:relative;
  z-index:2;
}

/* 2 columns with divider */
.intro-2col{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:18px;
  align-items:start;
}
.intro-right{
  padding-left:18px;
  border-left:1px solid rgba(156,255,0,.18);
}

/* Left */
.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(156,255,0,.22);
  background: rgba(156,255,0,.08);
  color:var(--text);
  font-weight:400;
  font-size:14px;
  letter-spacing:.4px;
  margin:0 0 12px;
  box-shadow: 0 0 18px rgba(156,255,0,.10);
}
.intro h1{
  margin:0 0 10px;
  font-weight:900;
  letter-spacing:.8px;
  text-transform:uppercase;
  color:var(--toxic2);
  text-shadow: 0 0 14px rgba(156,255,0,.22), 0 0 34px rgba(156,255,0,.10);
  font-size:34px;
  line-height:1.1;
}
.intro p{
  margin:0;
  color:var(--muted);
  font-size:16px;
  line-height:1.65;
}
.tip{
  margin-top:10px;
  color:var(--dim);
  font-size:13px;
}

/* Right column top controls */
.right-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.right-top .lbl{
  font-weight:bold;
  letter-spacing:.3px;
  color: var(--toxic2);
  margin:0;
}

/* Select */
.select-wrap{
  position:relative;
  display:block;
  width:100%;
  max-width:190px;
}
.kind{
  width:100%;
  padding:9px 42px 9px 12px;
  border-radius:12px;
  border:1px solid rgba(156,255,0,.18);
  background: rgba(5,8,6,.55);
  color: var(--text);
  font-weight:400;
  letter-spacing:.2px;
  outline:none;
  cursor:pointer;
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  box-shadow:none;
  line-height:1.2;
  position:relative;
  z-index:1;
}
.kind::-ms-expand{ display:none; }
.kind:focus{
  border-color: rgba(156,255,0,.45);
  box-shadow: 0 0 0 3px rgba(156,255,0,.10);
}
.kind option{
  background: rgba(5,8,6,.98);
  color: var(--text);
}
.select-wrap::after{
  content:"";
  position:absolute;
  right:14px;
  top:50%;
  width:10px;
  height:10px;
  transform: translateY(-50%) rotate(45deg);
  border-right:2px solid rgba(215,255,58,.92);
  border-bottom:2px solid rgba(215,255,58,.92);
  pointer-events:none;
  opacity:1;
  z-index:5;
}
.select-wrap:hover::after{
  border-right-color: var(--toxic2);
  border-bottom-color: var(--toxic2);
}

/* Form */
.composer textarea,
.composer input,
.comment-form textarea{
  width:100%;
  border-radius:12px;
  border:1px solid rgba(156,255,0,.18);
  background: rgba(5,8,6,.55);
  color: var(--text);
  padding:12px;
  outline:none;
}
.composer textarea,
.comment-form textarea{
  resize:vertical;
  min-height:90px;
}
.composer textarea:focus,
.comment-form textarea:focus,
.composer input:focus{
  border-color: rgba(156,255,0,.45);
  box-shadow: 0 0 0 3px rgba(156,255,0,.10);
}

.row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin:10px 0 12px;
}

/* File + button row */
.submit-row{
  display:flex;
  align-items:center;
  gap:10px;
  margin:10px 0 0;
}
.composer .file{
  flex:1;
  min-width:0;
  margin:0;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid rgba(156,255,0,.18);
  background: rgba(5,8,6,.55);
  color: var(--muted);
  outline:none;
}
.composer .file:focus{
  border-color: rgba(156,255,0,.45);
  box-shadow: 0 0 0 3px rgba(156,255,0,.10);
}
.composer .file::-webkit-file-upload-button{
  margin-right:10px;
  padding:6px 10px;
  border-radius:10px;
  border:1px solid rgba(156,255,0,.16);
  background: linear-gradient(180deg, rgba(156,255,0,.14), rgba(156,255,0,.06));
  color: rgba(234,247,214,.92);
  cursor:pointer;
}
.composer .file::-webkit-file-upload-button:hover{
  background: linear-gradient(180deg, rgba(156,255,0,.18), rgba(156,255,0,.08));
  border-color: rgba(156,255,0,.22);
}

/* Submit button */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:7px 12px;
  border-radius:10px;
  font-weight:600;
  letter-spacing:.3px;
  border:1px solid rgba(156,255,0,.16);
  background: linear-gradient(180deg, rgba(156,255,0,.14), rgba(156,255,0,.06));
  color: rgba(234,247,214,.92);
  box-shadow: 0 0 18px rgba(156,255,0,.08);
  transition: transform .12s ease, filter .12s ease, background .12s ease, border-color .12s ease;
  text-decoration:none;
}
.btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.04);
  background: linear-gradient(180deg, rgba(156,255,0,.18), rgba(156,255,0,.08));
  border-color: rgba(156,255,0,.22);
}
.btn:active{ transform: translateY(0); }

.note{
  margin-top:10px;
  color: var(--dim);
  font-size:13px;
}

/* ===== CONTENT GRID UNDER INTRO ===== */
.content-grid{
  display:grid;
  grid-template-columns: 1.45fr .55fr;
  gap:14px;
  margin-top:14px;
}
.pad{ padding:16px; }

.h2{
  margin:0 0 12px;
  font-size:16px;
  letter-spacing:.6px;
  text-transform:uppercase;
  color: var(--toxic2);
  text-shadow: 0 0 14px rgba(156,255,0,.16);
}

.post{
  padding:12px 12px;
  border-radius:14px;
  background: rgba(156,255,0,.06);
  border:1px solid rgba(156,255,0,.12);
  margin-top:10px;
}
.post:first-of-type{ margin-top:0; }

.post-title{
  display:inline-block;
  font-weight:800;
  letter-spacing:.2px;
  color: rgba(234,247,214,.95);
  text-decoration:none;
}
.post-title:hover{ color: var(--toxic2); text-decoration:none; }

.meta{
  margin-top:4px;
  font-size:12px;
  color: var(--dim);
}
.post p{
  margin:10px 0 0;
  color: var(--muted);
  line-height:1.6;
  font-size:15px;
}
.post-snippet{
  margin:10px 0 0;
  color: var(--muted);
  line-height:1.6;
  font-size:15px;
}
.post-snippet strong{
  color: var(--text);
  font-weight:800;
}
.post-snippet .snippet-link{
  color: inherit;
  text-decoration:none;
}
.post-snippet .snippet-link:hover{
  text-decoration:underline;
}

.side-links{
  display:grid;
  gap:8px;
}
.side-links a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 10px;
  border-radius:12px;
  background: rgba(156,255,0,.06);
  border:1px solid rgba(156,255,0,.12);
  color: rgba(234,247,214,.92);
  font-weight:700;
  text-decoration:none;
}
.side-links a:hover{
  border-color: rgba(156,255,0,.22);
  color: var(--toxic2);
}

/* ==== FOOTER ==== */
.footer{
  max-width:1100px;
  margin:18px auto 0;
  padding:18px 16px 34px;
}
.footer .foot-inner{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  padding-top:14px;
  border-top:1px solid rgba(156,255,0,.14);
}
.footer .links{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.footer a{
  color: rgba(234,247,214,.88);
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(156,255,0,.14);
  background: rgba(156,255,0,.04);
  text-decoration:none;
}
.footer a:hover{
  color: var(--toxic2);
  border-color: rgba(156,255,0,.22);
  background: rgba(156,255,0,.06);
}
.footer .copy{
  color: var(--dim);
  font-size:13px;
}

/* Small screens: stack upload + button */
@media (max-width:520px){
  .submit-row{ flex-direction:column; align-items:stretch; }
  .submit-row .btn{ width:100%; }
}

/* Mobile stack + EDGE-TO-EDGE EVERYTHING */
@media (max-width:900px){
  /* Topbar: search drops under */
  .topbar-inner{
    max-width:none;
    margin:0;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap:10px;
    padding:12px 12px;
  }
  .top-search{
    grid-column:1 / -1;
    grid-row:2;
    justify-self:stretch;
    max-width:none;
  }

  /* MAIN: no outer padding */
  main{
    max-width:none;
    margin:0;
    padding:0;
  }

  /* CARDS: true edge-to-edge */
  .card{
    border-radius:0;
    border-left:0;
    border-right:0;
    box-shadow:none;
  }

  /* INTRO: no outer padding (flush) */
  .intro{ padding:0; }
  .intro-left,
  .intro-right{ padding:14px 12px; }

  .intro-alien{
    top:-10px;
    right:-18px;
    width:min(190px, 52vw);
    opacity:.14;
  }

  /* stack columns */
  .intro-2col{ grid-template-columns:1fr; gap:0; }
  .intro-right{
    padding-left:12px;
    border-left:0;
    border-top:1px solid rgba(156,255,0,.18);
    margin-top:0;
  }

  .row{ grid-template-columns:1fr; }

  /* Content under intro: edge-to-edge blocks */
  .content-grid{
    grid-template-columns:1fr;
    gap:0;
    margin-top:0;
  }
  .pad{ padding:14px 12px; }
  .content-grid > .card{ border-top:0; }

  /* FOOTER: edge-to-edge */
  .footer{
    max-width:none;
    margin:0;
    padding:14px 12px 28px;
  }
  .footer.card{ border-top:1px solid rgba(156,255,0,.14); }
  .footer .foot-inner{ border-top:0; padding-top:0; }
}

/* ==== Dynamic bits (likes/comments/load more) ==== */
.alert{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(156,255,0,.16);
  background: rgba(156,255,0,.06);
  color: rgba(234,247,214,.92);
  margin:12px 0 0;
}
.alert.err{
  border-color: rgba(255,120,120,.28);
  background: rgba(255,120,120,.07);
}

.post-actions{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:10px;
  flex-wrap:wrap;
}
.like-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(156,255,0,.16);
  background: rgba(156,255,0,.06);
  color: rgba(234,247,214,.92);
  cursor:pointer;
  user-select:none;
  font-weight:700;
  letter-spacing:.2px;
}
.like-btn:hover{ border-color: rgba(156,255,0,.24); color: var(--toxic2); }
.like-btn[aria-pressed="true"]{ background: rgba(156,255,0,.12); }

.count-pill{
  font-size:12px;
  color: var(--dim);
  border:1px solid rgba(156,255,0,.14);
  background: rgba(156,255,0,.04);
  padding:4px 8px;
  border-radius:999px;
}
/* List view: match requested compact look */
.posts .meta .count-pill{
  border:0;
  background:transparent;
  padding:0;
  border-radius:0;
}
.posts .post-actions a.count-pill{
  border:0;
}
/* Thread view: remove border only from replies pill (keep share pill as-is) */
.replies-pill{
  border:0;
}

.loadmore{
  margin-top:12px;
  width:100%;
}
.loadmore .btn{ width:100%; justify-content:center; }

.full-images{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:10px;
  margin-top:12px;
}
.full-images img{
  width:100%;
  height:auto;
  border-radius:12px;
  border:1px solid rgba(156,255,0,.14);
  background: rgba(5,8,6,.55);
}

.thread{
  margin-top:14px;
  padding-top:12px;
  border-top:1px solid rgba(156,255,0,.14);
}
.thread h3{
  margin:0 0 10px;
  font-size:14px;
  letter-spacing:.6px;
  text-transform:uppercase;
  color: var(--toxic2);
}

/* Replies — old school threaded conversation (no boxes/borders) */
.comment{
  margin-top:12px;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
}
.comment .cmeta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  color: var(--dim);
  font-size:12px;
  margin:0 0 4px;
}
.comment .cbody{
  margin:0;
  color: var(--muted);
  line-height:1.7;
  font-size:14px;
  white-space:pre-wrap;
}
.comment .cactions{
  display:flex;
  gap:14px;
  margin-top:6px;
  flex-wrap:wrap;
}
.comment .reply-btn{
  background:transparent;
  border:0;
  padding:0;
  color: var(--toxic2);
  cursor:pointer;
  font-weight:300;
}
.comment .reply-btn:hover{ text-decoration:underline; }

/* Make reply likes look like a text link (keep .like-btn for JS) */
.comment .like-btn{
  background:transparent;
  border:0;
  padding:0;
  border-radius:0;
  color: var(--toxic2);
  cursor:pointer;
  font-weight:300;
}
.comment .like-btn:hover{ text-decoration:underline; }
.comment .like-btn[aria-pressed="true"]{ color: var(--toxic); }

.reply-stack{
  margin-left:14px;
  padding-left:14px;
  position:relative;
}
.reply-stack::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:2px;
  background: rgba(156,255,0,.12);
  border-radius:2px;
  opacity:.85;
}
.comment-form{
  margin-top:10px;
}
.comment-form textarea{
  min-height:90px;
}
.comment-form .row{ margin:10px 0 0; }
.comment-form .submit-row{ margin-top:10px; }

/* Small screens: images stack */
@media (max-width:520px){
  .full-images{ grid-template-columns:1fr; }
}
