/* =========================================================
   CURSORPUNK CSS
   Architecture Refactor
   ---------------------------------------------------------
   Sections
   01 Reset / Base
   02 Design Tokens
   03 Layout
   04 Header
   05 Hero
   06 Cards / Masonry
   07 Responsive
   08 Single Article
   09 Editor UI
   10 Components
   11 Effects
   12 Footer
========================================================= */


/* =========================================================
   01 RESET / BASE
========================================================= */


/* =========================================================
   02 DESIGN TOKENS
========================================================= */

:root {
  /* ----- Core Colors ----- */

  --bg: #000314;

  --brand-yellow: #ffc233;
  --link-cyan: #16f2ff;
  --accent-magenta: #ff2da8;

  --white: #ffffff;
  --black: #000000;
  /* ======================================================
     CGA 16 COLOR PALETTE
  ====================================================== */

  --CGA_fekete: #000000;
  --CGA_kek: #0000aa;
  --CGA_zold: #00aa00;
  --CGA_cyan: #00aaaa;
  --CGA_piros: #aa0000;
  --CGA_bibor: #aa00aa;
  --CGA_barna: #aa5500;
  --CGA_vilagos_szurke: #aaaaaa;

  --CGA_sotet_szurke: #555555;
  --CGA_vilagos_kek: #5555ff;
  --CGA_vilagos_zold: #55ff55;
  --CGA_vilagos_cyan: #55ffff;
  --CGA_vilagos_piros: #ff5555;
  --CGA_vilagos_bibor: #ff55ff;
  --CGA_sarga: #ffff55;
  --CGA_feher: #ffffff;



  /* ======================================================
     C64 16 COLOR PALETTE
  ====================================================== */

  --C64_fekete: #000000;
  --C64_feher: #ffffff;
  --C64_piros: #883932;
  --C64_cyan: #67b6bd;
  --C64_bibor: #8b3f96;
  --C64_zold: #55a049;
  --C64_kek: #40318d;
  --C64_sarga: #bfce72;

  --C64_narancs: #8b5429;
  --C64_barna: #574200;
  --C64_vilagos_piros: #b86962;
  --C64_sotet_szurke: #505050;
  --C64_kozep_szurke: #787878;
  --C64_vilagos_zold: #94e089;
  --C64_vilagos_kek: #7869c4;
  --C64_vilagos_szurke: #9f9f9f;
  /* ----- Layout ----- */

  --maxw: 1280px;

}


* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  font: 500 22px/1.2 'geos', ui-monospace, SFMono-Regular, Menlo, Consolas,
        "Liberation Mono", "Courier New", monospace;


}

body {
  margin: 0;

  background: var(--bg);
  color: var(--white);

  text-rendering: optimizeLegibility;
  letter-spacing: 0.026em;
}

a {
  color: inherit;
  text-decoration: none;
}


/* =========================================================
   TEXT SELECTION
========================================================= */

::selection {
  background: var(--brand-yellow);
  color: black;
  text-shadow: none;
}

::-moz-selection {
  background: var(--brand-yellow);
  color: black;
  text-shadow: none;
}



/* =========================================================
   03 LAYOUT
========================================================= */

.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 18px;
}


/* =========================================================
   DIVIDER LINES
========================================================= */

.rule,
.rule--aside,
.rule--small {
  height: 3px;
  border: 0;
  background: var(--accent-magenta);
  width: 100%;
}

.rule {
  margin: 18px 0;
}

.rule--aside {
  margin: 0 0 18px 0;
}

.rule--small {
  margin: 0;
}



/* =========================================================
   04 HEADER
========================================================= */

.site-header {
  background: transparent;
  padding-top: 18px;
}


/* =========================================================
   NAVIGATION
========================================================= */

.nav .inner {
  max-width: var(--maxw);
  margin-inline: auto;

  display: grid;
  grid-template-columns: auto 1fr auto;

  align-items: center;
  gap: 28px;

  position: relative;
  padding-bottom: 0px;
}


/* =========================================================
   BRAND
========================================================= */

.brand {
  /*font: 500 22px/1.2 'geos', ui-monospace, SFMono-Regular, Menlo, Consolas,
        "Liberation Mono", "Courier New", monospace;*/

  -webkit-font-smoothing: antialiased;

  color: var(--brand-yellow);
  font-weight: 700;
  letter-spacing: 1.16px;

  font-size: 38px;

}




/* =========================================================
   MENU
========================================================= */

.menu {
  display: flex;
  gap: 32px;

  list-style: none;
  padding: 0;
  margin: 0;

  justify-self: end;
  text-align: right;
}

.menu a {
  color: var(--link-cyan);
}

.menu a:hover,
.menu a:focus {
  text-decoration: underline;
  text-underline-offset: 3px;
}



/* =========================================================
   LANGUAGE SWITCH
========================================================= */

.lang {
  color: var(--accent-magenta);

  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;

  padding: 2px 0;
  justify-self: end;
}



/* =========================================================
   HEADER CONTROLS
========================================================= */

.header-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-self: end;
  bottom: 3px;
  position: relative;
}



/* =========================================================
   ICON BUTTONS
========================================================= */

.icon-btn,
.font-btn {

  background: none;
  border: none;

  cursor: pointer;

  color: var(--link-cyan);

  font-size: 20px;
  padding: 4px;

  display: flex;
  align-items: center;

  transition: 0.2s ease;
}

.icon-btn:hover,
.font-btn:hover {
  color: var(--accent-magenta);
}


/* =========================================================
   ICONS
========================================================= */

.icon {
  width: 20px;
  height: 20px;

  fill: currentColor;
  stroke: currentColor;
}

.icon-moon {
  display: none;
}


/* =========================================================
   FONT TOGGLE
========================================================= */

.font-btn {
  font: 500 22px/1.2 'geos', ui-monospace, SFMono-Regular, Menlo, Consolas,
        "Liberation Mono", "Courier New", monospace;

  -webkit-font-smoothing: antialiased;

  font-size: 22px;
  font-weight: 700;
}

/* =========================================================
   05 HERO SYSTEM
========================================================= */

.hero {
  position: relative;
  margin-top: 0;
}


/* =========================================================
   HERO GRID
========================================================= */

.hero > .inner {

  /*max-width: var(--maxw);*/
  padding: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 1.15fr .85fr;

  gap: 18px;
  align-items: stretch;
}


/* =========================================================
   HERO TEXT
========================================================= */

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}



/* BADGE */

.badge {
  align-self: flex-start;

  font-size: 20px;
  color: #000;

  background: var(--accent-magenta);

  padding: 1px 7px;
  border: none;
  border-radius: 0;
}


/* TITLE */

.hero-title {
  margin: 0;
  color: var(--brand-yellow);
}


/* META */

.hero-meta {
  margin: 2px 0 0;
  color: var(--link-cyan);
  font-size: 24px;
}

.single-hero-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.single-hero-meta-text {
  min-width: 0;
}

.single-hero-tools {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.reader-tool-btn {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  color: var(--brand-yellow);
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

.reader-tool-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reader-tool-btn:hover,
.reader-tool-btn:focus-visible,
.reader-tool-btn.is-active,
.reader-tool-btn.is-copied {
  color: #000;
  background: var(--brand-yellow);
  border-color: var(--brand-yellow);
  outline: none;
}

.reader-tool-btn.is-active svg {
  fill: currentColor;
}

@media (max-width: 640px) {
  .single-hero-meta {
    align-items: flex-start;
  }
}


/* LEDE */

.hero-lede {
  margin: 0;
  color: var(--link-cyan);

  font-size: clamp(20px, 1.8vw, 24px);
}

.hero-author-inline {
  display: inline-block;
}


/* =========================================================
   HERO IMAGE
========================================================= */

.hero-media {

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  height: 100%;

  border: none;
  box-shadow: none;
}



/* =========================================================
   HERO RATIO MODE
========================================================= */

.hero.hero--ratio > .inner {
  align-items: start;
}

.hero.hero--ratio .hero-media {

  aspect-ratio: 16 / 9;
  height: auto;
}



/* =========================================================
   HERO IMAGE FALLBACK
========================================================= */

.hero.hero-fallback {

  max-height: 400px;
  min-height: 260px;

  position: relative;
  overflow: hidden;

  background:
    radial-gradient(circle at 20% 30%, rgba(255,0,150,.18), transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(0,255,255,.12), transparent 45%),
    linear-gradient(180deg, #05000f 0%, #000314 100%);
}


.hero.hero-fallback::before {

  content: "";
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      120deg,
      rgba(255,0,180,.06),
      rgba(0,255,255,.04),
      rgba(255,180,0,.05)
    );

  mix-blend-mode: screen;
  pointer-events: none;
}


.hero.hero-fallback::after {

  content: "";
  position: absolute;
  inset: -20%;

  background:
    radial-gradient(circle at 30% 40%, rgba(255,0,160,.08), transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(0,255,255,.07), transparent 50%);

  animation: fogMove 18s linear infinite;

  pointer-events: none;
}



/* =========================================================
   HERO HEIGHT DEBUG
========================================================= */

.hero-height-badge {

  position: absolute;
  top: 6px;
  right: 6px;

  background: rgba(0,0,0,0.75);

  color: #00ff99;

  font-size: 12px;
  padding: 3px 6px;

  border-radius: 4px;

  font-family: monospace;

  z-index: 50;
  pointer-events: none;
}



/* =========================================================
   HERO DEBUG BADGE
========================================================= */

.debug-badge {

  position: absolute;
  top: 12px;
  left: 12px;

  color: var(--brand-yellow);

  font-size: 20px;
  font-weight: 800;

  z-index: 10;

  pointer-events: none;

  background: none;
  padding: 0;

  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}



/* =========================================================
   HERO ANIMATIONS
========================================================= */

@keyframes fogMove {

  0%   { transform: translateX(0) translateY(0); }

  50%  { transform: translateX(-4%) translateY(3%); }

  100% { transform: translateX(0) translateY(0); }
}

/* =========================================================
   06 CARDS / MASONRY
========================================================= */


/* =========================================================
   MASONRY SYSTEM (CSS COLUMNS)
========================================================= */

.cards .card--separator {

  columns: 1;
  column-gap: 18px;

}

.cards .card--separator > .hero {

  break-inside: avoid-column;
  margin-bottom: 18px;
  display: inline-block;
  width: 100%;
  vertical-align: top;
  overflow: hidden;

}

.cards .card--separator > .hero > .inner {

  max-width: 100%;
  margin-inline: 0;
  min-width: 0;

}


/* =========================================================
   CARD TITLE SIZE
========================================================= */

.cards .hero-text .hero-title {
  font-size: 24px;
}



/* =========================================================
   RESPONSIVE MASONRY COLUMN COUNT
========================================================= */

@media (min-width: 769px) and (max-width: 1024px) {

  .cards .card--separator {
    columns: 2;
  }

}

@media (min-width: 1025px) {

  .cards .card--separator {
    columns: 3;
  }

}



/* =========================================================
   SECONDARY MASONRY SYSTEM
   (copy container – JS distributed)
========================================================= */

.masonry-copy-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 20px;

}

.masonry-col {

  display: flex;
  flex-direction: column;

  gap: 20px;

}

.text-highlight{
    font-weight:700;
    color:var(--brand-yellow);
}
/* =========================================================
   MASONRY BREAKPOINTS
========================================================= */

@media (min-width: 768px) {

  .masonry-copy-container {
    grid-template-columns: 1fr 1fr;
  }

}

@media (min-width: 1024px) {

  .masonry-copy-container {
    grid-template-columns: 1fr 1fr 1fr;
  }

}



/* =========================================================
   MOBILE PERFORMANCE MODE
   Only first masonry column visible
========================================================= */

@media (max-width: 767px) {

  .masonry-copy-container {
    grid-template-columns: 1fr !important;
  }

  .masonry-col:nth-child(2),
  .masonry-col:nth-child(3) {
    display: none;
  }

}



/* =========================================================
   ORIGINAL GRID HIDING
========================================================= */

.original-hidden section.hero {
  display: none !important;
}

.original-hidden .rule {
  display: none !important;
}

/* =========================================================
   07 SINGLE ARTICLE LAYOUT
========================================================= */

.single-layout {

  display: grid;
  grid-template-columns: 2.2fr 1fr;

  gap: 24px;
  width: 100%;

}


/* MAIN HERO */

.single-main .hero {
  display: flex;
  align-items: flex-end;
  min-height: 60vh;
}


.single-main .hero > .inner {

  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100%;
  padding-bottom: 18px;

}


/* ARTICLE BODY */

.single-body {

  margin-top: 24px;

  line-height: 1.2;

}


/* SIDEBAR CARDS */

.single-sidebar .hero-title {

  font-size: 18px;
  line-height: 1.35;

}


/* =========================================================
   RESPONSIVE
========================================================= */


/* ===== TABLET / MOBILE LAYOUT ===== */

@media (max-width: 768px){

  .single-layout{
    grid-template-columns:1fr!important;
  }

  .single-main{
    order:1;
  }

  .single-sidebar{
    order:2;
    width:100%;
    margin-top:24px;
  }
    .single-sidebar{
    display:flex;
    flex-direction:column;
  }
  .ishero-lede {
    max-width: 100%!important;
  }
  .hero-title {
    font-size: 28px;
    line-height: 27px;
  }

}



/* =========================================================
   HERO RESPONSIVE
========================================================= */

@media (max-width: 768px) {

 .single-main .hero{
    width:100vw;
    margin-left:calc(50% - 50vw);
    margin-right:calc(50% - 50vw);
    border-radius:0;
  }

  .single-main .hero .inner{
    padding-left:20px;
    padding-right:20px;
  }

  .hero > .inner {
    grid-template-columns: 1fr;
  }

  .hero .hero-media {
    order: 1;
    aspect-ratio: 4 / 3;
    height: auto;
  }

  .hero .hero-text {
    order: 2;
  }

}



/* =========================================================
   HEADER RESPONSIVE
========================================================= */

@media (max-width: 768px) {

  .nav .inner {

    display: block;
    text-align: center;

  }

  .brand {

    display: block;
    margin: 0 auto;

  }

  .menu {

    display: inline-flex;

    flex-wrap: wrap;

    justify-content: center;
    align-content: center;

    gap: 8px 20px;

    margin: 2px 0 0;

    max-width: 100%;

  }

  .menu li,
  .menu a {

    white-space: nowrap;

  }

}



/* =========================================================
   HERO DESKTOP LAYOUT
========================================================= */

@media (min-width: 769px) {

  .hero > .inner {

    grid-template-columns: .85fr 1.15fr;

  }

  .hero-media {

    order: 1;

  }

  .hero-text {

    order: 2;

  }

  .nav .inner {

    grid-template-columns: auto 1fr auto;

  }

}


/* =========================================================
   08 THEME SYSTEM
========================================================= */


/* =========================================================
   LIGHT MODE BASE
========================================================= */

html.light-mode {

  --bg: #eef1f6;
  --link-cyan: #373737;
  --accent-magenta: #c026d3;
  --brand-yellow: #373737;
  --white: #000000;

  background: #f5f5f5;
  color: #111;

}



/* =========================================================
   ICON TOGGLE
========================================================= */

.light-mode .icon-sun {
  display: none;
}

.light-mode .icon-moon {
  display: block;
}



/* =========================================================
   FONT MODE
========================================================= */

.smooth-font {

  font: 500 21px/1.3 'Inter', system-ui, -apple-system, sans-serif;

  letter-spacing: normal;
  line-height: 29px;

}



/* =========================================================
   LIGHT MODE COMPONENT OVERRIDES
========================================================= */

html.light-mode .brand {
  color: #373737;
}

html.light-mode .badge {
  color: #ffffff;
}

html.light-mode .single-body {
  color: #373737;
}

html.light-mode .cp-footer__bottom {
  color: #373737;
}



/* =========================================================
   HERO IMAGE LAYOUTS – ALWAYS DARK
========================================================= */

html.light-mode .hero[data-mode="v2t"],
html.light-mode .single-main .hero {

  --link-cyan: #16f2ff;
  --brand-yellow: #ffc233;
  --accent-magenta: #ff2da8;
  --white: #000000;

  color: #e8ecff;

}



/* =========================================================
   LIGHT MODE RULE GRADIENT
========================================================= */

html.light-mode .rule,
html.light-mode .aside,
html.light-mode .rule--small {

  background: linear-gradient(
    90deg,
    #7c3aed 0%,
    #6366f1 50%,
    #8b5cf6 100%
  );

}

html.light-mode .hero-text-shadow_30::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: -1;
  background: linear-gradient(
      to bottom,
      rgba(255,255,255, 0.00) 0%,
      rgba(255,255,255, 0.18) 40%,
      rgba(255,255,255, 0.75) 60%,
      rgba(255,255,255, 0.85) 90%,
      rgba(255,255,255, 0.95) 100%
  );

  border-radius: 6px;

}




/* =========================================================
   DEBUG BADGES HIDDEN IN LIGHT MODE
========================================================= */

.debug-badge,
.hero-height-badge {

  color: transparent;

  text-shadow: none;
  background: none;

}

/* GO TO editor.css */

/* =========================================================
   10 HERO FX SYSTEM
========================================================= */

#editor-hero {
  position: relative;
  overflow: hidden;
}

/* HERO BACKGROUND LAYER */

.hero-bg {

  position: absolute;
  inset: 0;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  z-index: 0;

}

#editor-hero .inner {
  position: relative;
  z-index: 2;
}

/* =========================================================
   BADGE ROW FIX (single hero)
========================================================= */

.badge-row{
  display:flex;
  align-items:center;
  gap:8px; /* egységes spacing */
  flex-wrap:wrap; /* vagy nowrap ha nem akarod törni */
}

/* =========================================================
   BADGE STABILITÁS (ne törjön szét)
========================================================= */

.badge,
.badge-edit{
  white-space:nowrap;
  display:inline-block;
}

/* =========================================================
   STATUS BADGE (reuse .badge alap)
========================================================= */

.badge-status{

  color: var(--white);
}

/* published */
.badge-status.status-published{
  background: var(--C64_kek);
  color: var(--C64_cyan);
}

/* =========================================================
   HERO FX PANEL
========================================================= */

.hero-hamburger {

  position: absolute;

  right: 15px;
  bottom: 15px;

  background: var(--brand-yellow);

  color: #000;

  font-weight: bold;

  padding: 4px 8px;

  cursor: pointer;

  z-index: 3;

}

.hero-fx-panel {

  position: absolute;

  right: 15px;
  bottom: 50px;

  background: #000;

  border: 2px solid var(--brand-yellow);

  padding: 10px;

  display: none;

  z-index: 3;

  font-size: 12px;

}

.hero-fx-panel.active {
  display: block;
}

.fx-row {

  margin-bottom: 6px;

  color: var(--brand-yellow);

}



/* =========================================================
   HERO IMAGE EFFECT LAYERS
========================================================= */

.hero-vignette {

  position: absolute;

  inset: 0;

  pointer-events: none;

  z-index: 2;

}

.hero-blue-shift {

  position: absolute;

  inset: 0;

  pointer-events: none;

  mix-blend-mode: color;

  z-index: 1;

}



/* =========================================================
   HERO TEXT SHADOW
========================================================= */

.hero-text-shadow_30 {

  position: relative;

  z-index: 2;

}

.hero-text-shadow_30::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: -1;
  background: linear-gradient(
      to bottom,
      rgba(0, 3, 20, 0.05) 0%,
      rgba(0, 3, 20, 0.18) 20%,
      rgba(0, 3, 20, 0.75) 50%,
      rgba(0, 3, 20, 0.85) 80%,
      rgba(0, 3, 20, 0.95) 100%
  );

  border-radius: 6px;

}



/* =========================================================
   ARTICLE ROW (COMMANDER STYLE LIST)
========================================================= */

.article-row {
  font-size: 16px;
  line-height: 1.0;
  color: #ffd400;
  cursor: pointer;
  white-space: nowrap;
}

.article-row img {
  width: 20px;
  height: 20px;
  object-fit: cover;
  vertical-align: middle;
  margin-right: 8px;
  border: 0px solid black;
}

.article-line {
  vertical-align: middle;
  display: inline-block;
  font-size: 20px;
  color: var(--CGA_sarga);
}

.article-row a {
  color: inherit;
  text-decoration: none;
}

.article-row:hover {
  background: #ffd400;
  color: var(--bg) !important;
}

.article-row:hover a {
  color: var(--bg);
}



/* =========================================================
   ARTICLE STATUS COLORS
========================================================= */

.article-status {
  font-weight: bold;
}

.status-published {
  color: var(--CGA_piros);
}

.status-draft {
  color: var(--CGA_zold);
  background: var(--C64_sotet_szurke);
}

.status-archived {
  color: var(--CGA_bibor);
}

.status-unknown {
  color: var(--CGA_sarga);
}



/* =========================================================
   404 CURSOR
========================================================= */

.error-cursor {
  display: inline-block;
  margin-left: 0px;
  margin-right: 6px;
  color: var(--accent-magenta);
  animation: blink404 1s steps(1) infinite;
}

@keyframes blink404 {
  0%   { opacity: 1; }
  50%  { opacity: 0; }
  100% { opacity: 1; }

}



/* =========================================================
   FOOTER
========================================================= */

.cp-footer__grid {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.cp-footer__tagline {
  color: white;
}

/* =========================================================
   HERO MODE SYSTEM
========================================================= */

.hero[data-mode="v2"],
.hero[data-mode="v2t"] {

  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  position: relative;

}

.hero[data-mode="v2"] {

  min-height: clamp(360px, 36vw, 640px);

}

.hero[data-mode="v2t"] {
  min-height: auto;
  aspect-ratio: auto;

}

.hero[data-mode="v2"] > .inner,
.hero[data-mode="v2t"] > .inner {
  grid-template-columns: 1fr;
  padding-inline: 18px;
  /*padding-block: 18px;*/
  min-height: auto;
  align-items: start;

}

.hero[data-mode="v2"] .hero-media,
.hero[data-mode="v2t"] .hero-media {
  display: none !important;
}

.hero[data-mode="v3"] > .inner {
  grid-template-columns: 1fr;
  align-items: start;

}

.hero[data-mode="v3"] .hero-media {
  order: 1;
}


.hero[data-mode="v3"] .hero-text {
  order: 2;
}

.hero[data-mode="v3"] .hero-media {

  aspect-ratio: 16 / 9;
  height: auto;

}

/* */

.sidebar-card{
    margin-bottom:24px;
}

/* ===== HEADER ===== */

.sidebar-header{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:8px;
}

.sidebar-header::after{
    content:"";
    height:2px;
    background:var(--brand-yellow);
    flex:1;
}

/* ===== CATEGORY ===== */

.sidebar-cat{
    background:var(--accent-magenta);
    color:black;
    font-size:18px;
    padding:4px 8px;
}

/* ===== BODY ===== */

.sidebar-card-body{
    display:flex;
    gap:14px;
    align-items:flex-start;
}

/* ===== VERTICAL LINE ===== */

.sidebar-line {
    width: 4px;
    background: var(--brand-yellow);
    border-radius: 2px;
    margin-left: -15px;
  }

/* ===== IMAGE ===== */

.sidebar-thumb{
    width:120px;
    height:80px;
    background-size:cover;
    background-position:center;
    border-radius:4px;
}

/* ===== TEXT ===== */

.sidebar-title{
    font-size:18px;
    margin:0 0 6px 0;
}

.sidebar-title a{
    color:var(--brand-yellow);
    text-decoration:none;
}

.sidebar-excerpt{
    margin:0;
    font-size:18px;
    line-height:1.4;
    
}
.sidebar-thumb{
    width:90px;
    aspect-ratio:1 / 1;

    background-size:cover;
    background-position:center;

    border-radius:4px;
    flex-shrink:0;
}

.sidebar-card-body {
}

.hero-suggestion {
  text-align: center;
  text-transform: uppercase;
}

.badge-edit{
  color: var(--CGA_fekete);
  background-color: var(--C64_zold);
}

.badge-edit, .badge-status {
  text-decoration:none;
  padding: 1px 7px;
  font-size: 20px;
}

.badge-status.status-draft{
  color: var(--C64_vilagos_szurke);
  background-color: var(--C64_sotet_szurke);
}

.badge-status.status-archived{
  color: var(--C64_vilagos_szurke);
  background-color: var(--C64_sotet_szurke);
}

.badge:hover{
  filter: brightness(1.15);
}

.hero--bottom{
  display:flex;
  flex-direction:column;
}

.hero--bottom .inner{
  margin-top:auto;
}

.ishero-title {
  font-size: 44px!important;
}

.ishero-lede {
  max-width: 50%;
}

/* =========================
   C64 CODE BLOCK
========================= */


.cp-c64code pre{
  margin:0;
  font-family:"C64ProMono", monospace;
  color: var(--C64_vilagos_kek);     /* #5555ff */
  font-size:18px;
  line-height:1.4;
  white-space:pre;
}

@font-face {
    font-family: "C64ProMono";
    src: url("./C64_Pro_Mono-STYLE.ttf") format("truetype");
    font-display: swap;
}

.header-user{
display:inline-flex;
align-items:center;
gap:10px;
margin-left:14px;
}

.logout-link{
color:var(--link-cyan);
text-decoration:none;
font-size:14px;
}

.logout-link:hover{
text-decoration:underline;
}

.avatar{
width:34px;
height:34px;
object-fit:cover;
border-radius:4px;
image-rendering:pixelated;
}

/* EDITOR2 */

/* =========================================================
   EDITOR – 3 COLUMN GRID (SAFE / FULL WIDTH COMPATIBLE)
========================================================= */

.view-editor .editor-triple{
  display:grid;

  grid-template-columns:
    minmax(0, 1fr)     /* BAL */
    6px                /* RESIZER */
    minmax(420px, 680px) /* KÖZÉP */
    6px                /* RESIZER */
    320px;             /* JOBB */

  gap:20px;
  align-items:start;

  width:100%;
}

/* =========================
   OSZLOPOK
========================= */

.view-editor .editor-col{
  display:flex;
  flex-direction:column;
  min-width:0; /* CRITICAL → ne törje szét a gridet */
}

/* =========================
   BAL – CONTENT
========================= */

.view-editor .editor-left{
  padding:20px;
}

/* =========================
   KÖZÉP – TERMINAL
========================= */

.view-editor .editor-middle{
  padding:20px;

  border-left:1px solid var(--link-cyan);
  border-right:1px solid var(--link-cyan);

  background:rgba(0,0,0,0.25);
}

/* =========================
   JOBB – SIDEBAR
========================= */

.view-editor .editor-right{
  padding:20px;
}

/* =========================
   RESIZER
========================= */

.view-editor .editor-resizer{
  width:6px;
  cursor:col-resize;

  background:linear-gradient(
    to right,
    transparent,
    var(--accent-magenta),
    transparent
  );

  opacity:.35;
  transition:opacity .2s ease;
}

.view-editor .editor-resizer:hover{
  opacity:1;
}

/* =========================
   HERO FIX (EDITOR MODE)
========================= */

.view-editor .hero{
  width:100%;
  margin:0;
}

/* =========================
   SCROLL FIX
========================= */

.view-editor .editor-left,
.view-editor .editor-middle,
.view-editor .editor-right{
  overflow:auto;
}

/* =========================
   FONT / TERMINAL FINOMHANGOLÁS
========================= */

.view-editor .cursor-terminal{
  font-size:20px;
  line-height:1.2;
}

/* =========================
   CONTENTEDITABLE UX
========================= */

.view-editor [contenteditable="true"]{
  cursor:text;
}
