/* === ALAP BEÁLLÍTÁSOK (MOBIL) === */
:root {
  --neon-green: #00ff41;
  --neon-pink: #ff00ff;
  --neon-cyan: #00ffff;
  --bg-dark: #0a0a0a;
  --terminal-bg: #111111;
  --text-size: 16px;
  --line-height: 1.6;
}

* {
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
}

body {
  background-color: var(--bg-dark);
  color: var(--neon-green);
  font-family: 'VT323', monospace;
  font-size: var(--text-size);
  line-height: var(--line-height);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Random Axiom stílus */
.random-axiom {
  margin: 0.5rem 0;
  font-family: 'Share Tech Mono', monospace;
  font-size: 1rem;
  color: var(--neon-cyan);
  text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
  min-height: 1.5em;
  font-style: italic;
}

.random-axiom .cursor {
  display: inline-block;
  width: 8px;
  height: 1.2em;
  background: var(--neon-cyan);
  margin-left: 2px;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}

/* === MOBIL SCANLINES (GYENGÉBB) === */
@media (max-width: 768px) {
  body.scanlines::before {
    background-size: 100% 2px;
    opacity: 0.3;
  }
  
  /* Boot sequence kikapcsolása mobilon (lassítja az oldalt) */
  .boot-sequence {
    display: none !important;
  }
}
 .random-axiom {
    font-size: 0.9rem;
    padding: 0 1rem;
    line-height: 1.4;
  }
}

/* Betöltéskor villanás effekt */
@keyframes axiom-flicker {
  0% { opacity: 0; }
  10% { opacity: 1; }
  20% { opacity: 0.8; }
  30% { opacity: 1; }
  100% { opacity: 1; }
}

.random-axiom {
  animation: axiom-flicker 0.5s ease-out;
}

/* === BANNER (MOBIL) === */
.banner-container {
  position: relative;
  height: 180px;
  overflow: hidden;
  border-bottom: 2px solid var(--neon-green);
}

.banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: brightness(0.3) contrast(1.1);
}

.profile-section {
  position: absolute;
  bottom: 1rem;
  left: 0;
  width: 100%;
  padding: 0 1rem;
  text-align: center;
}

.profile-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.profile-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--neon-green);
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.4);
  object-fit: cover;
}

.site-title {
  font-size: 1.8rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.site-description {
  font-size: 0.9rem;
  opacity: 0.9;
  margin: 0.3rem 0;
  padding: 0 1rem;
}

/* === MOBIL MENÜ GOMB === */
.mobile-menu-toggle {
  display: block;
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.9);
  border: 1px solid var(--neon-green);
  color: var(--neon-green);
  padding: 12px;
  font-family: 'VT323', monospace;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
  border-radius: 4px;
  min-height: 44px;
  min-width: 44px;
}

.mobile-menu-toggle::before {
  content: "☰ MENU";
}

.mobile-menu-toggle.active::before {
  content: "✕ CLOSE";
}

/* === LAYOUT (MOBIL) === */
.terminal-layout {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0.5rem;
}

/* Sidebar mobilon - alapértelmezett rejtett */
.terminal-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 85%; /* Ne takarja ki az egész képernyőt */
    max-width: 320px;
    height: 100vh;
    overflow-y: auto; /* Saját görgetősáv a menünek */
    z-index: 9999;
    background: var(--terminal-bg);
    transform: translateX(-100%); /* Alapból rejtve balra */
    transition: transform 0.3s ease;
    margin-top: 0;
    padding-top: 60px; /* Hely a menü gombnak */
}
  
.terminal-sidebar.active {
    transform: translateX(0); /* Előtűnés balról */
    box-shadow: 5px 0 25px rgba(0,0,0,0.8);
}
/* Overlay a háttér sötétítéséhez */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9998;
}
  
.sidebar-overlay.active {
    display: block;
}
.terminal-main {
  order: 1;
  width: 100%;
  background: rgba(17, 17, 17, 0.8);
  border: 1px solid #333;
  padding: 1rem;
  font-size: 1.1rem; /* Nagyobb betű mobilon */
}

/* === TERMINAL ABLAK (MOBIL) === */
.terminal-window {
  background: var(--terminal-bg);
  border: 1px solid var(--neon-green);
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.2);
  overflow: hidden;
}

.terminal-header-bar {
  background: #1a1a1a;
  padding: 0.5rem;
  border-bottom: 1px solid var(--neon-green);
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.terminal-content {
  padding: 0.8rem;
  font-size: 1rem;
  line-height: 1.5;
}

/* === FILE LISTA (MOBIL) === */
.file-tree {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.95rem;
}

.file-tree ul {
  list-style: none;
  padding-left: 1rem;
  border-left: 1px solid rgba(0, 255, 65, 0.2);
  margin: 0.3rem 0;
}

.file-item, .dir-item {
  margin: 0.5rem 0;
  word-break: break-word;
  line-height: 1.4;
}

.perms, .owner, .size, .date {
  display: inline-block;
  margin-right: 0.3rem;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Linkek nagyobb érintési felülete */
.file-link, .neon-link {
  display: inline-block;
  padding: 0.2rem 0;
  min-height: 44px;
  line-height: 44px;
  color: var(--neon-cyan);
  text-decoration: none;
}

/* === TARTALOM (MOBIL) === */
.terminal-page, .blog-post, .blog-list {
  width: 100%;
  overflow-wrap: break-word;
}

.page-title, .post-title, .list-title {
  font-size: 1.6rem;
  line-height: 1.3;
  margin-bottom: 1rem;
  word-break: break-word;
}

/* Kód blokkok görgethetőek */
.markdown-body pre {
  background: #1a1a1a;
  border: 1px solid #333;
  border-left: 3px solid var(--neon-green);
  padding: 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  font-size: 0.9rem;
  max-width: 100%;
}

.markdown-body code {
  background: #1a1a1a;
  color: var(--neon-pink);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.9em;
  word-break: break-word;
}

/* Képek reszponzívak */
.markdown-body img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* === BLOG KÁRTYÁK (MOBIL) === */
.terminal-card {
  background: rgba(17, 17, 17, 0.9);
  border: 1px solid #333;
  margin-bottom: 1.5rem;
  width: 100%;
}

.card-header {
  padding: 0.8rem;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.card-content {
  padding: 1rem;
}

.post-excerpt {
  font-size: 1rem;
  line-height: 1.5;
  color: #ccc;
}

.read-more {
  display: block;
  width: 100%;
  padding: 0.8rem;
  text-align: center;
  background: rgba(0, 255, 65, 0.1);
  border: 1px solid var(--neon-green);
  color: var(--neon-green);
  text-decoration: none;
  margin-top: 1rem;
  min-height: 44px;
  font-size: 1.1rem;
}

/* === GLITCH (MOBILON FINOMÍTVA) === */
@media (max-width: 768px) {
  .glitch-text::before,
  .glitch-text::after {
    display: none; /* Túl zavaró mobilon */
  }
  
  .glitch-text {
    text-shadow: 0 0 5px currentColor;
  }
}

/* === LÁBLÉC === */
.terminal-footer {
  margin-top: 2rem;
  padding: 1.5rem 1rem;
  border-top: 1px solid #333;
  text-align: center;
  font-size: 0.9rem;
  width: 100%;
}

/* === TABLET ÉS ASZTALI (768px+) === */
@media (min-width: 769px) {
  .mobile-menu-toggle {
    display: none;
  }
  
  .terminal-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    max-width: 1400px;
    padding: 2rem;
  }
  
  .terminal-sidebar {
    display: block !important;
    order: 0;
    position: sticky;
    top: 2rem;
    height: fit-content;
  }
  
  .terminal-main {
    order: 1;
    padding: 2rem;
  }
  
  .banner-container {
    height: 300px;
  }
  
  .profile-container {
    flex-direction: row;
    gap: 2rem;
  }
  
  .profile-image {
    width: 120px;
    height: 120px;
  }
  
  .site-title {
    font-size: 3rem;
  }
  
  .card-header {
    flex-direction: row;
    justify-content: space-between;
  }
  
  .read-more {
    display: inline-block;
    width: auto;
  }
}

/* === NAGY KÉPERNYŐK (1200px+) === */
@media (min-width: 1200px) {
  .terminal-layout {
    grid-template-columns: 300px 1fr;
  }
  
  body {
    font-size: 18px;
  }
}

/* === SCROLLBAR (CSAK ASZTALON) === */
@media (min-width: 769px) {
  ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }
  
  ::-webkit-scrollbar-track {
    background: #0a0a0a;
  }
  
  ::-webkit-scrollbar-thumb {
    background: #333;
    border: 1px solid var(--neon-green);
  }
}

/* Touch eszközökön nincs hover effekt */
@media (hover: none) {
  .neon-link:hover,
  .file-link:hover {
    text-shadow: none;
    transform: none;
  }
  
  .terminal-card:hover {
    border-color: #333;
    box-shadow: none;
  }
}