@font-face {
  font-family: 'LOGO_FONT';
  src: url('0_FONTS/LOGO_FONT.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
}
@font-face {
  font-family: 'HEADING_FONT';
  src: url('0_FONTS/HEADING_FONT.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'WRITING_FONT';
  src: url('0_FONTS/WRITING_FONT.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

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

:root {
  --bg: #1a1a1a;
  --bg2: #222222;
  --bg3: #2a2a2a;
  --border: #333333;
  --green: #33aa33;
  --glow: #00FF00;
  --text: #cccccc;
  --text-muted: #777777;
  --sidebar-width: 240px;
}

BODY {
  background: var(--bg);
  color: var(--text);
  font-family: 'WRITING_FONT', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* OVERLAY */
#OVERLAY {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 99;
}
#OVERLAY.ACTIVE { display: block; }

/* LEFT SIDEBAR */
#LEFT-SIDEBAR {
  position: fixed;
  top: 0;
  left: -240px;
  width: var(--sidebar-width);
  height: 100%;
  background: var(--bg2);
  border-right: 1px solid var(--border);
  z-index: 100;
  transition: left 0.3s ease;
  padding: 20px 0;
  overflow-y: auto;
}
#LEFT-SIDEBAR.OPEN { left: 0; }

#LEFT-SIDEBAR H3 {
  color: var(--green);
  font-family: 'HEADING_FONT', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0 20px 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}

#LEFT-SIDEBAR A {
  display: block;
  padding: 10px 20px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s, color 0.2s;
}
#LEFT-SIDEBAR A:hover {
  background: var(--bg3);
  color: var(--glow);
}

#SIDEBAR-CLOSE {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}
#SIDEBAR-CLOSE:hover { color: var(--glow); }

/* HEADER */
HEADER {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.HEADER-INNER {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.HEADER-LEFT {
  display: flex;
  align-items: center;
  gap: 16px;
}

#HAMBURGER {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
#HAMBURGER SPAN {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  transition: background 0.2s;
}
#HAMBURGER:hover SPAN { background: var(--glow); }

.LOGO {
  font-family: 'LOGO_FONT', sans-serif;
  color: #33aa33;
  text-shadow: 0 0 6px rgba(0,255,0,0.5), 0 0 12px rgba(0,255,0,0.3);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 2px;
  text-decoration: none;
}

/* MAIN NAV */
NAV {
  display: flex;
  align-items: center;
  gap: 4px;
}
NAV A {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
NAV A:hover, NAV A.ACTIVE {
  color: var(--glow);
  background: var(--bg3);
}

.HEADER-RIGHT {
  display: flex;
  align-items: center;
  gap: 10px;
}

.BTN {
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 14px;
  border-radius: 4px;
  font-family: 'WRITING_FONT', sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.BTN:hover { border-color: var(--green); color: var(--glow); }
.BTN.PRIMARY {
  background: var(--green);
  border-color: var(--green);
  color: #000;
}
.BTN.PRIMARY:hover { background: var(--glow); border-color: var(--glow); }

/* PAGE BODY */
.PAGE-BODY {
  display: flex;
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 20px;
  gap: 20px;
}

/* RIGHT SIDEBAR */
.RIGHT-SIDEBAR {
  width: 220px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.SIDEBAR-WIDGET {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px;
}

.SIDEBAR-WIDGET H4 {
  font-family: 'HEADING_FONT', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}

.SIDEBAR-WIDGET P {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.SIDEBAR-WIDGET UL { list-style: none; }
.SIDEBAR-WIDGET UL LI {
  font-size: 13px;
  color: var(--text);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.SIDEBAR-WIDGET UL LI:last-child { border-bottom: none; }
.SIDEBAR-WIDGET UL LI A {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}
.SIDEBAR-WIDGET UL LI A:hover { color: var(--glow); }

/* MAIN CONTENT */
.MAIN-CONTENT {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.POST-CARD {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 18px;
  transition: border-color 0.2s;
}
.POST-CARD:hover { border-color: var(--green); }

.POST-META {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.AVATAR {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

.POST-AUTHOR { font-size: 13px; font-weight: 700; color: var(--green); }
.POST-TIME { font-size: 12px; color: var(--text-muted); }

.POST-CARD H3 {
  font-family: 'HEADING_FONT', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.POST-CARD P {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

.POST-ACTIONS {
  display: flex;
  gap: 16px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.POST-ACTIONS A {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.POST-ACTIONS A:hover { color: var(--glow); }

/* FOOTER */
FOOTER {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 20px;
  text-align: center;
}

FOOTER P { font-size: 12px; color: var(--text-muted); }
FOOTER A { color: var(--green); text-decoration: none; }
FOOTER A:hover { color: var(--glow); }

.FOOTER-LINKS {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 10px;
}

.FOOTER-LINKS A {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.FOOTER-LINKS A:hover { color: var(--glow); }
