/* PANDAUDIT Custom Styles for Primer CSS */

/* Custom color scheme */
:root {
  --pandaudit-primary: #008AFF;
  --pandaudit-hover: #0085A1;
  --pandaudit-text: #404040;
  --pandaudit-gray: #777777;
  --pandaudit-light-bg: #EAEAEA;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom link colors */
a {
  color: var(--pandaudit-primary);
  text-decoration: none;
}

a:hover {
  color: var(--pandaudit-hover);
  text-decoration: underline;
}

/* Blog post content styling */
.markdown-body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--pandaudit-text);
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
  margin-top: 24px;
  margin-bottom: 16px;
  font-weight: 600;
  line-height: 1.25;
}

.markdown-body h2 {
  padding-bottom: 0.3em;
  border-bottom: 1px solid #eaecef;
}

.markdown-body code {
  padding: 0.2em 0.4em;
  margin: 0;
  font-size: 85%;
  background-color: rgba(27, 31, 35, 0.05);
  border-radius: 3px;
}

.markdown-body pre {
  padding: 16px;
  overflow: auto;
  font-size: 85%;
  line-height: 1.45;
  background-color: #f6f8fa;
  border-radius: 6px;
}

.markdown-body pre code {
  display: inline;
  max-width: auto;
  padding: 0;
  margin: 0;
  overflow: visible;
  line-height: inherit;
  word-wrap: normal;
  background-color: transparent;
  border: 0;
}

/* Table styling */
.markdown-body table {
  border-spacing: 0;
  border-collapse: collapse;
  display: block;
  width: max-content;
  max-width: 100%;
  overflow: auto;
}

.markdown-body table th,
.markdown-body table td {
  padding: 6px 13px;
  border: 1px solid #dfe2e5;
}

.markdown-body table tr {
  background-color: #fff;
  border-top: 1px solid #c6cbd1;
}

.markdown-body table tr:nth-child(2n) {
  background-color: #f6f8fa;
}

/* Blockquote styling */
.markdown-body blockquote {
  padding: 0 1em;
  color: #6a737d;
  border-left: 0.25em solid #dfe2e5;
  margin: 0 0 16px 0;
}

/* Image styling */
.markdown-body img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 16px 0;
}

/* Custom Box colors */
.Box--blue {
  background-color: #f1f8ff;
  border-color: #c8e1ff;
}

/* Gap utilities (Primer CSS compatibility) */
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 16px; }
.gap-4 { gap: 24px; }
.gap-5 { gap: 32px; }

/* Discord button custom styling */
.btn-primary:hover {
  background-color: var(--pandaudit-hover) !important;
  border-color: var(--pandaudit-hover) !important;
}

/* Hero gradient background */
.bg-gradient-to-b {
  background: linear-gradient(to bottom, #f6f8fa, #ffffff);
}

/* Ensure labels have spacing */
.Label {
  margin-right: 4px;
  margin-bottom: 4px;
}

/* Print styles */
@media print {
  nav, footer, .Box:has(.fab.fa-discord) {
    display: none;
  }
  
  .markdown-body {
    font-size: 12pt;
  }
}

/* Responsive typography */
@media (max-width: 768px) {
  .f00-light {
    font-size: 32px !important;
  }
  
  .f1-light {
    font-size: 24px !important;
  }
  
  .f2-light {
    font-size: 20px !important;
  }
}

/* Hover effects for post cards */
.Box:hover {
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s ease;
}

/* Tag links styling */
a.Label:hover {
  text-decoration: none;
  opacity: 0.8;
}
