/* ========================== */
/* ------- Header & Logo ---- */
.md-header__button.md-logo {
  display: flex !important;
  align-items: center;
  margin-right: 16px;
  margin-left: 0;
  margin-top: 16px;
}
.md-header__button.md-logo img {
  display: block !important;
  height: 48px !important;
  animation: headerGlitch 2s infinite;
}
@keyframes headerGlitch {
  0% { transform: translate(0,0) skew(0deg);}
  20% { transform: translate(-1px,1px) skew(-1deg);}
  40% { transform: translate(1px,-1px) skew(1deg);}
  60% { transform: translate(-1px,1px) skew(0deg);}
  80% { transform: translate(1px,-1px) skew(-1deg);}
  100% { transform: translate(0,0) skew(0deg);}
}
.md-header__title {
  display: none !important;
}
.md-search {
  margin-left: auto !important;
}

/* Tagline csak desktopon */
.md-header__button.md-logo::after {
  content: "Stay rooted, stay paranoid";
  position: absolute;
  left: calc(100% + 1rem);
  top: 50%;
  transform: translateY(-50%);
  color: var(--md-secondary-fg-color);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0.8;
  transition: opacity .2s;
}
.md-header__button.md-logo:hover::after { opacity: 1; }

/* Hide tagline on mobile */
@media (max-width: 900px) {
  .md-header__button.md-logo::after {
    display: none !important;
  }
  .md-header__button.md-logo img {
    height: 36px !important;
  }
  .md-header__button.md-logo {
    margin-right: 10px !important;
    margin-left: 3px !important;
    margin-top: 10px !important;
  }
  .md-header__title {
    max-width: 55vw !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .md-search {
    min-width: 42px;
  }
}

/* =========== Profilkép ============ */
img[alt="NoSec"] {
  width: 180px !important;
  height: 180px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  box-shadow: 0 0 15px rgba(0,0,0,0.6);
  margin-top: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 768px) {
  img[alt="NoSec"] {
    width: 130px !important;
    height: 130px !important;
    max-width: 130px !important;
    margin-top: 18px !important;
  }
}

/* ======= Typewriter & overflow ======= */
.typewriter {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  white-space: nowrap;
  border-right: .1em solid #aaa;
  overflow: hidden;
  margin-bottom: 1.5rem;
  margin-left: -1.2em;
}
@keyframes blink {
  0%, 100% { border-color: transparent; }
  50%      { border-color: #aaa; }
}
.typewriter.blink { animation: blink .7s step-end infinite; }

@media (max-width: 768px) {
  .typewriter {
    white-space: normal !important;
    border-right: none !important;
    font-size: 1rem;
    margin-left: 0;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
  }
  .md-content,
  .md-content * {
    box-sizing: border-box !important;
    max-width: 100vw !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
  }
}

/* ======= Social links ======= */
.social-links { margin-top: 0.75rem; }
.social-links a {
  position: relative;
  display: inline-block;
  margin: 0 0.5rem;
  opacity: 0;
  animation: iconFadeIn 0.5s forwards;
}
.social-links a:nth-child(1) { animation-delay: 0.1s; }
.social-links a:nth-child(2) { animation-delay: 0.2s; }
.social-links a:nth-child(3) { animation-delay: 0.3s; }
.social-links a:nth-child(4) { animation-delay: 0.4s; }
.social-links a:nth-child(5) { animation-delay: 0.5s; }
.social-links a:nth-child(6) { animation-delay: 0.6s; }
@keyframes iconFadeIn {
  from { opacity: 0; transform: translateY(10px) rotate(-10deg);}
  to   { opacity: 1; transform: translateY(0) rotate(0);}
}
.social-links img {
  width: 32px;
  height: 32px;
  vertical-align: middle;
  filter: invert(1) brightness(2);
  transition: transform .2s, filter .2s;
}
.social-links a:hover img {
  transform: scale(1.1) rotate(5deg);
  filter: brightness(1.4) invert(1);
}
.social-links a::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%) translateY(0.5em);
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 0.25em 0.5em;
  border-radius: 0.25em;
  white-space: nowrap;
  font-size: 0.75rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.social-links a:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ======= Táblázat (PC + mobil scroll fix) ======= */
.md-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}
.md-content table th,
.md-content table td {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255,255,255,0.1);
}
.md-content table th {
  background: rgba(255,255,255,0.12) !important;
  color: rgba(255,255,255,0.75) !important;
  text-align: left;
  font-weight: 600;
}
.md-content table tr:nth-child(even) {
  background: rgba(255,255,255,0.02);
}
.md-content table a {
  color: var(--md-accent-fg-color);
  text-decoration: none;
  transition: color .2s;
}
.md-content table a:hover {
  color: var(--md-primary-fg-color);
  text-decoration: underline;
}
.md-content table img[alt^="Difficulty"] {
  max-width: 85px;
  height: 1.1em;
  vertical-align: middle;
  display: inline-block;
}

/* --- Mobilon smooth, tapadós scroll és padding, nem akad --- */
@media (max-width: 900px) {
  .md-content table {
    display: block;
    width: 100vw !important;
    min-width: 340px;
    max-width: 100vw !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    margin-left: -8px;
    margin-right: -8px;
    padding: 0 2vw;
    scroll-behavior: smooth;
  }
  .md-content table td,
  .md-content table th {
    white-space: nowrap;
    font-size: 1.03em;
    min-width: 70px;
    text-align: center;
  }
}

/* ===== Hero Overlay, háttér, sidebar stb. ===== */
.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('/assets/images/code-bg.svg') center/cover;
  opacity: 0.05;
  pointer-events: none;
}
.hero-link { position: relative; z-index: 1; }
.hero-link img { filter: invert(1) brightness(2); }
.md-header {
  position: relative;
  backdrop-filter: blur(10px) saturate(150%);
  background-color: rgba(16, 18, 28, 0.8) !important;
  border-bottom: 2px solid var(--md-accent-fg-color);
  z-index: 100;
}

/* ====== Sidebar, menu, sticky home link stb. ====== */
.md-sidebar--secondary > .md-nav__title { display: none !important; }
.md-sidebar--primary ul[data-md-component="scroll-snap"] { display: none !important; }
.md-sidebar--primary input#_toc,
.md-sidebar--primary label[for="__toc"] { display: none !important; }
.md-sidebar--primary .md-nav__link[href="/"] {
  position: sticky;
  top: var(--md-header-height);
  z-index: 10;
  background: var(--md-default-primary);
  padding: 0.5rem 1rem;
}
.md-sidebar--secondary .md-nav__title { display: none !important; }
.md-sidebar--secondary .md-nav .md-nav__link { display: block !important; }

/* ====== Body BG animáció ====== */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  background: linear-gradient(
    45deg,
    #10121c,
    #1c1f2c,
    #10121c,
    #1c1f2c
  );
  background-size: 400% 400%;
  animation: gradientShift 30s ease infinite;
}
@keyframes gradientShift {
  0%   { background-position: 0%   50%; }
  25%  { background-position: 50% 100%; }
  50%  { background-position: 100% 50%; }
  75%  { background-position: 50%   0%; }
  100% { background-position: 0%   50%; }
}

/* ────────────────────────────────────────── */
/* Popup styles */
.popup-overlay {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.7);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.popup-overlay.show {
  opacity: 1; pointer-events: all;
}
.popup-content {
  background: #0f141c; padding: 24px;
  border: 2px solid #1a2633; border-radius: 8px;
  max-width: 320px; text-align: center; color: #fff;
  position: relative;
}
.popup-close {
  position: absolute; top: 8px; right: 8px;
  background: none; border: none;
  font-size: 20px; color: #888; cursor: pointer;
}
.popup-content h2 { margin-bottom: 12px; font-size: 18px; }
.popup-content p  { margin-bottom: 16px; }
.popup-btn {
  display: inline-block; padding: 10px 16px;
  background: #00aaff; color: #fff; text-decoration: none;
  border-radius: 4px; font-weight: bold;
}
.popup-btn:hover { background: #0091dd; }

/* Csak a Telegram gomb szövegét állítja feketére */
.popup-btn {
  color: #000 !important;
}

/* Nagyobb popup doboz és betűméretek */
.popup-content {
  max-width: 400px;        /* korábban: 320px */
  padding: 32px;           /* korábban: 24px */
}

.popup-content h2 {
  font-size: 20px;         /* korábban: 18px */
  margin-bottom: 16px;     /* korábban: 12px */
}

.popup-content p {
  font-size: 16px;         /* korábban: alapértelmezett */
  margin-bottom: 20px;     /* korábban: 16px */
}

.popup-btn {
  padding: 12px 20px;      /* korábban: 10px 16px */
  font-size: 16px;         /* nagyobb szöveg a gombon */
}



.glitch {
  color: #00faff;
  font-size: 2.5em;
  font-weight: bold;
  position: relative;
  display: inline-block;
  animation: glitch 2.5s infinite;
  text-shadow: 0 0 2px #0ff, 0 0 5px #0ff;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  color: #00faff;
  background: transparent;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.glitch::before {
  animation: glitchTop 2.5s infinite;
  color: #f0f;
}

.glitch::after {
  animation: glitchBottom 2.5s infinite;
  color: #0ff;
}

@keyframes glitch {
  0% {
    text-shadow: none;
  }
  5%, 15% {
    text-shadow: 2px 0 red, -2px 0 blue;
  }
  10%, 20% {
    text-shadow: -2px 0 red, 2px 0 blue;
  }
  25% {
    text-shadow: none;
  }
  100% {
    text-shadow: none;
  }
}

@keyframes glitchTop {
  0%, 100% {
    clip: rect(0, 0, 0, 0);
  }
  5% {
    clip: rect(0, 9999px, 10px, 0);
    transform: translate(-2px, -2px);
  }
  10% {
    clip: rect(0, 9999px, 15px, 0);
    transform: translate(2px, -1px);
  }
  15% {
    clip: rect(0, 9999px, 5px, 0);
    transform: translate(-1px, -1px);
  }
}

@keyframes glitchBottom {
  0%, 100% {
    clip: rect(0, 0, 0, 0);
  }
  5% {
    clip: rect(25px, 9999px, 35px, 0);
    transform: translate(2px, 2px);
  }
  10% {
    clip: rect(20px, 9999px, 30px, 0);
    transform: translate(-2px, 1px);
  }
  15% {
    clip: rect(28px, 9999px, 38px, 0);
    transform: translate(1px, 2px);
  }
}



.glitch {
  position: relative;
  color: #0ff;
  font-weight: 800;
  font-size: 36px;
  text-align: center;
  animation: glitch 1.6s infinite, pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    text-shadow: 0 0 8px #0ff, 0 0 12px #0ff;
  }
  50% {
    text-shadow: 0 0 14px #0ff, 0 0 24px #00f0f0;
  }
}



.glitch:hover {
  animation: glitch 1.6s infinite, pulse 2s ease-in-out infinite, flicker 0.2s infinite;
}

@keyframes flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    opacity: 1;
  }
  20%, 22%, 55% {
    opacity: 0.85;
  }
}




/* == NoSec Glitch Logo == */
.nosec-glitch {
  font-family: 'JetBrains Mono', monospace;
  font-size: 32px;
  color: #fff;
  text-align: center;
  animation: glitch 1s infinite;
  margin-top: 20px;
}

@keyframes glitch {
  0% { text-shadow: 2px 0 red; }
  20% { text-shadow: -2px 0 lime; }
  40% { text-shadow: 2px 2px blue; }
  60% { text-shadow: 0 0 #fff; }
  100% { text-shadow: 0 0 #000; }
}


/* == Hacker Quote == */
.hacker-quote {
  text-align: center;
  font-style: italic;
  color: #999;
  margin-top: 10px;
  font-size: 14px;
  z-index: 2;
  position: relative;
}

/* == Terminal Prompt Box == */
.terminal-prompt {
  font-family: 'JetBrains Mono', monospace;
  color: #00ff00;
  background-color: #111;
  padding: 10px;
  margin: 30px auto 0;
  width: fit-content;
  border-left: 4px solid #0f0;
  box-shadow: 0 0 10px #0f02;
  z-index: 2;
  position: relative;
}


body {
  background: radial-gradient(#0b0b0b 1px, #000 1px);
  background-size: 4px 4px;
}


body::before {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle, rgba(0,255,180,0.03), transparent 70%);
  transform: translate(-50%, -50%);
  z-index: -1;
}


.md-header, .md-tabs {
  background: radial-gradient(#0b0b0b 1px, #000 1px);
  background-size: 4px 4px;
}


.md-header, .md-tabs {
  background: repeating-radial-gradient(#0b0b0b 1px, #000 1px, #000 4px);
  background-size: 4px 4px;
  border-bottom: 1px solid #ff4500; /* maradhat a narancs csík */
}


.md-header__button.md-logo::after {
  content: "Stay rooted, stay paranoid";
  position: absolute;
  left: calc(100% + 1rem);
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0.9;
  animation: glitch 3s infinite;
  text-shadow: 0 0 2px #f00, 0 0 1px #0ff;
}

@keyframes glitch {
  0% { transform: translateY(-50%) translateX(0); opacity: 0.9; }
  10% { transform: translateY(-50%) translateX(-1px); opacity: 0.7; }
  20% { transform: translateY(-50%) translateX(1px); opacity: 1; }
  30% { transform: translateY(-50%) translateX(-1px); opacity: 0.8; }
  40% { transform: translateY(-50%) translateX(1px); opacity: 1; }
  50% { transform: translateY(-50%) translateX(0); opacity: 0.9; }
  100% { transform: translateY(-50%) translateX(0); opacity: 0.9; }
}


.latest-update-box {
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid #00ffff;
  border-radius: 10px;
  padding: 20px;
  max-width: 600px;
  margin: 40px auto;
  font-family: monospace;
  color: #00ffff;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
  backdrop-filter: blur(4px);
}

.latest-update-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 12px;
  text-align: center;
  text-transform: uppercase;
  border-bottom: 1px solid #00ffff;
  padding-bottom: 8px;
}

.latest-update-box ul {
  list-style: none;
  padding-left: 0;
}

.latest-update-box li {
  padding: 5px 0;
  font-size: 17px;
}

.update-link a {
  display: inline-block;
  margin-top: 10px;
  font-weight: bold;
  color: #000;
  background: #00ffff;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.update-link a:hover {
  background: #00e6e6;
  transform: scale(1.03);
}

.latest-update-box a:hover {
  color: #00ffee;
  text-shadow: 0 0 6px #00ffee;
  transition: 0.2s ease-in-out;
}

.latest-update-box {
  opacity: 0;
  animation: fadeIn 1s ease-in-out forwards;
  animation-delay: 0.3s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.update-date {
  font-size: 0.75rem;
  color: #777;
  margin-left: 8px;
}









