/* ==========================================================================
   WISKTON.XYZ // MATRIX CYBERPUNK STYLESHEET
   ========================================================================== */

:root {
  --matrix-black: #040705;
  --matrix-dark: #0a110d;
  --matrix-panel: #0d1712;
  --matrix-border: #143521;
  --matrix-border-glow: #00ff66;
  --matrix-green: #00ff66;
  --matrix-green-bright: #00ff41;
  --matrix-green-dim: #2b7a4b;
  --matrix-green-glow: rgba(0, 255, 102, 0.35);
  --matrix-text: #e1fdec;
  --matrix-text-dim: #7da58d;
  --matrix-cyan: #00e5ff;
  --matrix-amber: #f59e0b;
  --matrix-red: #ef4444;
}

/* Base Body & Reset */
body {
  background-color: var(--matrix-black);
  color: var(--matrix-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
  position: relative;
}

/* Mono Elements */
.font-mono-code {
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
}

/* Matrix Background Canvas */
#matrix-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.18;
  transition: opacity 0.5s ease;
}

body.rain-off #matrix-canvas {
  display: none !important;
}

/* CRT Scanline Overlay Effect (Subtle) */
.scanline-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    rgba(0, 0, 0, 0.25) 50%
  );
  background-size: 100% 4px;
  opacity: 0.35;
}

/* Cyber Cards & Panels */
.matrix-card {
  background: rgba(13, 23, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--matrix-border);
  transition: all 0.25s ease;
  position: relative;
}

.matrix-card:hover {
  border-color: var(--matrix-green);
  box-shadow: 0 0 20px rgba(0, 255, 102, 0.2);
  transform: translateY(-2px);
}

/* Matrix Neon Buttons */
.btn-matrix {
  background: transparent;
  color: var(--matrix-green);
  border: 1px solid var(--matrix-green);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  padding: 0.5rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 0 10px rgba(0, 255, 102, 0.15);
}

.btn-matrix:hover {
  background: var(--matrix-green);
  color: #000;
  box-shadow: 0 0 25px rgba(0, 255, 102, 0.6);
  transform: translateY(-1px);
}

.btn-matrix-solid {
  background: var(--matrix-green);
  color: #000;
  border: 1px solid var(--matrix-green);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  box-shadow: 0 0 15px rgba(0, 255, 102, 0.4);
  transition: all 0.2s ease;
}

.btn-matrix-solid:hover {
  background: #39ff14;
  box-shadow: 0 0 30px rgba(0, 255, 102, 0.8);
  transform: translateY(-1px);
}

/* Glowing Text */
.text-glow {
  text-shadow: 0 0 10px rgba(0, 255, 102, 0.6), 0 0 20px rgba(0, 255, 102, 0.3);
}

.text-glow-cyan {
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.6);
}

.text-glow-amber {
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
}

/* Terminal Badges */
.matrix-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.badge-green {
  background: rgba(0, 255, 102, 0.1);
  color: var(--matrix-green);
  border: 1px solid rgba(0, 255, 102, 0.3);
}

.badge-cyan {
  background: rgba(0, 229, 255, 0.1);
  color: var(--matrix-cyan);
  border: 1px solid rgba(0, 229, 255, 0.3);
}

.badge-amber {
  background: rgba(245, 158, 11, 0.1);
  color: var(--matrix-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-red {
  background: rgba(239, 68, 68, 0.1);
  color: var(--matrix-red);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Cyber Terminal Box */
.terminal-box {
  background: #060c08;
  border: 1px solid #1c472d;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 255, 102, 0.1);
  font-family: 'JetBrains Mono', monospace;
}

/* Matrix Ticker Bar Animation */
.ticker-wrap {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  background: rgba(4, 10, 7, 0.95);
  border-bottom: 1px solid var(--matrix-border);
}

.ticker-track {
  display: inline-block;
  white-space: nowrap;
  animation: ticker-slide 38s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

@keyframes ticker-slide {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #040705;
}

::-webkit-scrollbar-thumb {
  background: #143521;
  border-radius: 2px;
  border: 1px solid #00ff66;
}

::-webkit-scrollbar-thumb:hover {
  background: #00ff66;
}

/* Markdown Typography */
.markdown-body {
  color: #c9e8d4;
  line-height: 1.8;
  font-size: 1.05rem;
}

.markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4 {
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #143521;
}

.markdown-body h1 {
  font-size: 1.85rem;
  color: var(--matrix-green);
  text-shadow: 0 0 10px rgba(0, 255, 102, 0.3);
}

.markdown-body h2 {
  font-size: 1.45rem;
  color: #e6fff2;
}

.markdown-body h3 {
  font-size: 1.2rem;
  color: var(--matrix-cyan);
}

.markdown-body p {
  margin-bottom: 1.25rem;
}

.markdown-body a {
  color: var(--matrix-green);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.markdown-body a:hover {
  color: #fff;
  text-shadow: 0 0 8px var(--matrix-green);
}

.markdown-body blockquote {
  border-left: 3px solid var(--matrix-green);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: rgba(0, 255, 102, 0.05);
  color: #bbf0d0;
  border-radius: 0 4px 4px 0;
}

.markdown-body pre {
  background: #050b07;
  border: 1px solid #1c472d;
  padding: 1rem 1.25rem;
  border-radius: 4px;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  color: #80ffaa;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.8);
}

.markdown-body code:not(pre code) {
  background: #0c1c11;
  color: var(--matrix-green);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88em;
  border: 1px solid #1a4227;
}

.markdown-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
}

.markdown-body th, .markdown-body td {
  border: 1px solid #1a4227;
  padding: 0.75rem 1rem;
  text-align: left;
}

.markdown-body th {
  background: #0c1a11;
  color: var(--matrix-green);
}

.markdown-body tr:nth-child(even) {
  background: rgba(12, 26, 17, 0.3);
}

.markdown-body ul, .markdown-body ol {
  padding-left: 1.75rem;
  margin-bottom: 1.25rem;
}

.markdown-body li {
  margin-bottom: 0.5rem;
}

/* Reading Progress Bar */
#reading-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #00ff66, #00e5ff);
  z-index: 1000;
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px #00ff66;
}

/* ==========================================================================
   MODERN CYBER SHARE & COPY SYSTEM
   ========================================================================== */

/* Modern Share Pill Button */
.share-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  background: rgba(6, 12, 8, 0.9);
  border: 1px solid #143521;
  color: #7da58d;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  user-select: none;
}

.share-pill:hover {
  transform: translateY(-2px);
  color: #ffffff;
}

.share-pill.whatsapp:hover {
  border-color: #25D366;
  color: #25D366;
  box-shadow: 0 0 16px rgba(37, 211, 102, 0.35);
  background: rgba(37, 211, 102, 0.08);
}

.share-pill.twitter:hover {
  border-color: #00e5ff;
  color: #00e5ff;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.35);
  background: rgba(0, 229, 255, 0.08);
}

.share-pill.telegram:hover {
  border-color: #229ED9;
  color: #229ED9;
  box-shadow: 0 0 16px rgba(34, 158, 217, 0.35);
  background: rgba(34, 158, 217, 0.08);
}

.share-pill.linkedin:hover {
  border-color: #0A66C2;
  color: #0A66C2;
  box-shadow: 0 0 16px rgba(10, 102, 194, 0.35);
  background: rgba(10, 102, 194, 0.08);
}

.share-pill.copy-btn:hover, .share-pill.copy-btn.copied {
  border-color: #00ff66;
  color: #00ff66;
  box-shadow: 0 0 18px rgba(0, 255, 102, 0.4);
  background: rgba(0, 255, 102, 0.1);
}

/* Floating Share Dock (Desktop Article) */
.floating-share-dock {
  position: fixed;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.6rem;
  background: rgba(4, 7, 5, 0.88);
  border: 1px solid #143521;
  border-radius: 9999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  transition: all 0.3s ease;
}

.floating-share-dock:hover {
  border-color: rgba(0, 255, 102, 0.5);
  box-shadow: 0 0 25px rgba(0, 255, 102, 0.2);
}

.dock-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7da58d;
  background: #0a110d;
  border: 1px solid #143521;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  position: relative;
}

.dock-btn:hover {
  transform: scale(1.12);
  color: #ffffff;
}

.dock-btn.whatsapp:hover { border-color: #25D366; color: #25D366; box-shadow: 0 0 12px rgba(37, 211, 102, 0.5); }
.dock-btn.twitter:hover { border-color: #00e5ff; color: #00e5ff; box-shadow: 0 0 12px rgba(0, 229, 255, 0.5); }
.dock-btn.telegram:hover { border-color: #229ED9; color: #229ED9; box-shadow: 0 0 12px rgba(34, 158, 217, 0.5); }
.dock-btn.copy-btn:hover, .dock-btn.copy-btn.copied { border-color: #00ff66; color: #00ff66; box-shadow: 0 0 15px #00ff66; }

/* Tooltip on hover */
.dock-btn[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) scale(0.9);
  background: #040705;
  color: #00ff66;
  border: 1px solid #143521;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.8);
}

.dock-btn:hover[data-tip]::after {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

/* Modern Code Block Copy HUD */
.code-wrapper {
  position: relative;
  margin: 1.5rem 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #143521;
  background: #060c08;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.code-wrapper:hover {
  border-color: #1c472d;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.85rem;
  background: #09130d;
  border-bottom: 1px solid #143521;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: #5f8770;
}

.code-header-dots {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.code-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 9999px;
  opacity: 0.8;
}

.code-dot.red { background: #ef4444; }
.code-dot.yellow { background: #f59e0b; }
.code-dot.green { background: #00ff66; box-shadow: 0 0 6px #00ff66; }

.code-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: #040705;
  border: 1px solid #143521;
  color: #7da58d;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.code-copy-btn:hover {
  border-color: #00ff66;
  color: #00ff66;
  box-shadow: 0 0 10px rgba(0, 255, 102, 0.3);
}

.code-copy-btn.copied {
  background: rgba(0, 255, 102, 0.15);
  border-color: #00ff66;
  color: #00ff66;
  box-shadow: 0 0 14px rgba(0, 255, 102, 0.5);
}

/* Global Cyber Toast Notification */
#cyberToast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  border-radius: 8px;
  background: rgba(4, 7, 5, 0.95);
  border: 1px solid #00ff66;
  box-shadow: 0 0 25px rgba(0, 255, 102, 0.4), 0 8px 32px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: #ffffff;
  pointer-events: none;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#cyberToast.show {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0) scale(1);
}

#cyberToast .toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: #00ff66;
  box-shadow: 0 0 8px #00ff66;
  width: 100%;
  animation: toastProgress 2.5s linear forwards;
}

@keyframes toastProgress {
  from { width: 100%; }
  to { width: 0%; }
}

/* WordPress Imported Content Styling (Sobre / Pages) */
.article-wp-content > img:first-child,
.article-wp-content > h1:first-of-type,
.article-wp-content > p:first-of-type {
  display: none;
}

.article-wp-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid #143521;
}

.article-wp-content h1,
.article-wp-content h2,
.article-wp-content h3 {
  color: #00ff66;
  font-family: 'JetBrains Mono', monospace;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(0, 255, 102, 0.3);
}

.article-wp-content p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.article-wp-content ul {
  list-style: none;
  padding-left: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.5rem;
  margin: 1.25rem 0;
}

.article-wp-content ul li {
  padding: 0.4rem 0.75rem;
  background: #09130d;
  border: 1px solid #143521;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: #c6ebd4;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: border-color 0.2s;
}

.article-wp-content ul li:hover {
  border-color: #00ff66;
}

.article-wp-content ul li::before {
  content: '▸';
  color: #00ff66;
  font-weight: bold;
}

.article-wp-content a {
  color: #00ff66;
  text-decoration: underline;
  transition: color 0.2s;
}

.article-wp-content a:hover {
  color: #ffffff;
}

/* ==========================================================================
   PERFECTION & OPTIMIZATIONS FOR MOBILE DEVICES (SMARTPHONES & TABLETS)
   ========================================================================== */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

/* Evita que blocos de código ou URLs compridas estourem a largura da tela em celular */
.markdown-body {
  word-break: break-word;
  overflow-wrap: break-word;
}

.markdown-body pre {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: pre;
  word-wrap: normal;
  border-radius: 6px;
  font-size: 0.82rem;
}

.markdown-body code {
  word-break: break-word;
}

/* Tabelas responsivas com rolagem horizontal suave */
.markdown-body table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
  white-space: nowrap;
}

/* Embeds e Vídeos Responsivos em Mobile */
.markdown-body iframe,
.aspect-video,
.aspect-video iframe,
#cyberVideoModal iframe {
  max-width: 100%;
}

/* Ajustes finos para telas menores que 768px (Mobile Portrait & Landscape) */
@media (max-width: 768px) {
  /* Ticker com espaçamento confortável */
  .ticker-wrap {
    font-size: 0.72rem;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
  }
  
  /* Menu Mobile Cyberpunk */
  #mobile-menu {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(6, 12, 8, 0.98);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(0, 255, 102, 0.15);
  }

  #mobile-menu a {
    display: flex;
    align-items: center;
    padding: 0.7rem 0.85rem;
    border-radius: 6px;
    border: 1px solid transparent;
    font-size: 0.82rem;
  }

  #mobile-menu a:hover, #mobile-menu a:active {
    background: rgba(0, 255, 102, 0.08);
    border-color: rgba(0, 255, 102, 0.3);
    color: #00ff66;
  }

  /* Padding e cards em telas compactas */
  .matrix-card {
    padding: 1.15rem;
  }

  /* Player Modal no Mobile */
  #cyberVideoModal {
    padding: 0.75rem;
  }

  #cyberVideoModal > div {
    max-width: 100% !important;
    border-radius: 0.75rem;
  }

  /* Command Palette no Mobile */
  #commandPaletteModal > div {
    width: 95% !important;
    max-height: 85vh;
  }

  /* Oculta docks fixos flutuantes que possam cobrir texto em tela pequena */
  .floating-share-dock {
    display: none !important;
  }
}


