/* ==========================================================================
   TUTORIAIS DEBIAN 13 (TRIXIE) - MORAIS.ETI.BR
   Estilo Geral, Componentes & Full Screen Overlay Navigation Accordion
   ========================================================================== */

:root {
  --primary-color: #d70a53;       /* Debian Crimson */
  --primary-hover: #b50745;
  --primary-light: rgba(215, 10, 83, 0.12);
  --secondary-color: #3b82f6;     /* Slate / Tech Blue */
  --secondary-hover: #2563eb;
  --bg-dark: #0f172a;            /* Slate 900 */
  --bg-card: #1e293b;            /* Slate 800 */
  --bg-card-light: #243247;
  --bg-body: #f8fafc;            /* Slate 50 */
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #f1f5f9;
  --border-color: #e2e8f0;
  --border-dark: #334155;
  --code-bg: #090d16;
  --code-text: #38bdf8;
  --code-comment: #94a3b8;
  --font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Menlo, Consolas, Monaco, monospace;
  --transition-speed: 0.3s;
  --overlay-bg: rgba(15, 23, 42, 0.97);
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.7;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* ==========================================================================
   TOPO & HEADER
   ========================================================================== */
.site-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #831843 100%);
  color: #fff;
  border-bottom: 3px solid var(--primary-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 999;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.debian-badge {
  background: var(--primary-color);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 0 12px rgba(215, 10, 83, 0.4);
}

.brand-text h1 {
  font-size: 1.25rem;
  margin: 0;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.brand-text p {
  font-size: 0.8rem;
  margin: 0;
  color: #94a3b8;
}

.btn-menu-trigger {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all var(--transition-speed);
  font-size: 0.9rem;
}

.btn-menu-trigger:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(215, 10, 83, 0.35);
}

/* ==========================================================================
   FULL SCREEN OVERLAY NAVIGATION COM ACCORDION
   ========================================================================== */
.overlay-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--overlay-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s;
}

.overlay-nav.active {
  opacity: 1;
  visibility: visible;
}

.overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border-dark);
  background: rgba(15, 23, 42, 0.8);
}

.overlay-title {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.overlay-title i {
  color: var(--primary-color);
}

.overlay-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.overlay-close:hover {
  background: var(--primary-color);
  color: #fff;
  transform: rotate(90deg);
}

.overlay-search-bar {
  padding: 1rem 2rem;
  background: rgba(30, 41, 59, 0.6);
  border-bottom: 1px solid var(--border-dark);
}

.overlay-search-input {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  display: block;
  background: #0f172a;
  border: 1px solid var(--border-dark);
  color: #f1f5f9;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.overlay-search-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(215, 10, 83, 0.25);
}

.overlay-body {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* Accordion Styling inside Overlay */
.overlay-accordion .accordion-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: 8px !important;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.overlay-accordion .accordion-button {
  background-color: var(--bg-card);
  color: #f1f5f9;
  font-weight: 600;
  font-size: 1rem;
  padding: 1rem 1.25rem;
  box-shadow: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.overlay-accordion .accordion-button:not(.collapsed) {
  background-color: var(--bg-card-light);
  color: #fff;
  border-bottom: 1px solid var(--border-dark);
}

.overlay-accordion .accordion-button::after {
  filter: invert(1);
}

.overlay-accordion .accordion-button i.cat-icon {
  width: 24px;
  color: var(--primary-color);
  font-size: 1.1rem;
}

.overlay-accordion .accordion-body {
  background-color: #0b1120;
  padding: 1rem 1.5rem;
}

/* Sub-accordion / Nested menu */
.nested-accordion .accordion-item {
  background-color: #162032;
  border: 1px solid #23354e;
  margin-bottom: 0.5rem;
}

.nested-accordion .accordion-button {
  background-color: #162032;
  color: #cbd5e1;
  font-size: 0.9rem;
  padding: 0.65rem 1rem;
}

.nested-accordion .accordion-button:not(.collapsed) {
  background-color: #1e293b;
  color: #38bdf8;
}

.nested-accordion .accordion-body {
  background-color: #0d1524;
  padding: 0.75rem 1rem;
}

.tutorial-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tutorial-menu-list li {
  margin-bottom: 0.4rem;
}

.tutorial-menu-list a {
  color: #94a3b8;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  font-size: 0.875rem;
  transition: all 0.15s;
}

.tutorial-menu-list a:hover {
  color: #fff;
  background: rgba(215, 10, 83, 0.18);
  padding-left: 0.9rem;
}

.tutorial-menu-list a i {
  font-size: 0.75rem;
  color: var(--primary-color);
}

.menu-direct-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.25rem;
  background: var(--bg-card);
  color: #f1f5f9;
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 0.75rem;
  transition: all 0.2s;
}

.menu-direct-link:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
  transform: translateX(4px);
}

/* ==========================================================================
   CONTEÚDO PRINCIPAL & PÁGINAS
   ========================================================================== */
.main-wrapper {
  max-width: 1300px;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
}

.page-hero {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #fff;
  padding: 3rem 2.5rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  margin-bottom: 2.5rem;
  border-left: 6px solid var(--primary-color);
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '13';
  position: absolute;
  right: 20px;
  bottom: -25px;
  font-size: 11rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.page-hero h1 {
  font-size: 2.35rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.page-hero p.lead {
  font-size: 1.15rem;
  color: #cbd5e1;
  max-width: 850px;
  margin-bottom: 1.5rem;
}

.meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.meta-tag {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Breadcrumb */
.breadcrumb-custom {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb-custom a {
  color: var(--secondary-color);
  text-decoration: none;
}

.breadcrumb-custom a:hover {
  text-decoration: underline;
}

/* Cards & Seções */
.content-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s, box-shadow 0.2s;
}

.content-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f1f5f9;
}

.section-title i {
  color: var(--primary-color);
}

/* Callouts / Avisos */
.callout {
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
  border-left: 4px solid;
  display: flex;
  gap: 1rem;
}

.callout-info {
  background-color: #eff6ff;
  border-color: #3b82f6;
  color: #1e3a8a;
}

.callout-warning {
  background-color: #fffbeb;
  border-color: #f59e0b;
  color: #92400e;
}

.callout-danger {
  background-color: #fef2f2;
  border-color: #ef4444;
  color: #991b1b;
}

.callout-success {
  background-color: #f0fdf4;
  border-color: #22c55e;
  color: #166534;
}

.callout i {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

/* Blocos de Código e Terminal */
.terminal-block {
  background: var(--code-bg);
  border-radius: 10px;
  margin: 1.5rem 0;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  border: 1px solid #1e293b;
}

.terminal-header {
  background: #161f30;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #23334d;
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.terminal-title {
  color: #94a3b8;
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

.terminal-copy-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #cbd5e1;
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.terminal-copy-btn:hover {
  background: var(--primary-color);
  color: #fff;
}

.terminal-body {
  padding: 1.25rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--code-text);
  overflow-x: auto;
  line-height: 1.6;
}

.terminal-body pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-all;
}

.cmd-prompt-root { color: #f43f5e; font-weight: bold; }
.cmd-prompt-user { color: #10b981; font-weight: bold; }
.cmd-comment { color: var(--code-comment); font-style: italic; }

/* Tabelas Elegantes */
.custom-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.custom-table th {
  background-color: #0f172a;
  color: #fff;
  padding: 0.85rem 1.1rem;
  font-weight: 600;
  text-align: left;
  font-size: 0.9rem;
}

.custom-table td {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.custom-table tr:nth-child(even) {
  background-color: #f8fafc;
}

.custom-table tr:hover {
  background-color: #f1f5f9;
}

/* Steps list */
.step-number-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  margin-right: 0.75rem;
}

/* Rodapé */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 2.5rem 1.5rem;
  margin-top: 4rem;
  border-top: 1px solid var(--border-dark);
}

.footer-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  margin-left: 1.25rem;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary-color);
}

/* Responsividade */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }
  .page-hero {
    padding: 2rem 1.5rem;
  }
  .page-hero h1 {
    font-size: 1.8rem;
  }
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  .footer-links a {
    margin: 0 0.5rem;
  }
}
