/* =============================
   Modern Dark Mode for Pebble Docs
   Smooth, clean, night-inspired
============================= */

/* Base body */
body {
  background: linear-gradient(135deg, #0f0f1e 0%, #1a1a2e 100%);
  color: #e8e8e8;
  font-family:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    sans-serif;
  font-size: 16px;
  line-height: 1.7;
  padding: 3rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Links */
a {
  color: #a78bfa;
  text-decoration: none;
  transition: all 0.2s ease;
  border-bottom: 1px solid transparent;
}
a:hover {
  color: #c4b5fd;
  border-bottom: 1px solid #a78bfa;
  text-decoration: none;
}

/* Headings with gradient underlines instead of lines */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: #f5f5f5;
  line-height: 1.3;
  margin-top: 2.5em;
  margin-bottom: 0.8em;
  scroll-margin-top: 80px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* H1: Large with subtle gradient accent */
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #f5f5f5 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

/* H2: Gradient bottom border */
h2 {
  font-size: 1.875rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid transparent;
  background: linear-gradient(90deg, #a78bfa 0%, transparent 100%) bottom/100%
    2px no-repeat;
  margin-bottom: 1.2rem;
}

/* H3: Left accent bar */
h3 {
  font-size: 1.5rem;
  padding-left: 1rem;
  border-left: 3px solid #a78bfa;
  margin-bottom: 1rem;
}

/* H4-H6: Subtle spacing */
h4 {
  font-size: 1.25rem;
  color: #d4d4d4;
}

h5,
h6 {
  font-size: 1.1rem;
  color: #b8b8b8;
}

/* Paragraphs & lists */
p,
ul,
ol {
  margin-bottom: 1.3rem;
  font-size: 16px;
  color: #d4d4d4;
}

ul,
ol {
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Strong text */
strong {
  color: #f5f5f5;
  font-weight: 600;
}

/* Code blocks: Night-inspired with subtle glow */
pre {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #e0e0e0;
  padding: 1.5rem;
  border-radius: 12px;
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.9rem;
  overflow-x: auto;
  line-height: 1.6;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.15);
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

pre:hover {
  box-shadow:
    0 6px 25px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(167, 139, 250, 0.2);
  border-color: rgba(167, 139, 250, 0.25);
}

pre code {
  background: transparent;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
}

/* Inline code */
code {
  background: rgba(167, 139, 250, 0.15);
  color: #e0a0ff;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.9em;
  border: 1px solid rgba(167, 139, 250, 0.2);
}

/* Blockquotes: Elegant card style */
blockquote {
  background: rgba(167, 139, 250, 0.05);
  border-left: 4px solid #a78bfa;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  color: #d4d4d4;
  font-style: italic;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

blockquote p {
  margin-bottom: 0.5rem;
}

blockquote p:last-child {
  margin-bottom: 0;
}

/* Horizontal rules: Subtle gradient */
hr {
  border: none;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(167, 139, 250, 0.5),
    transparent
  );
  margin: 3rem 0;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  overflow: hidden;
}

th {
  background: rgba(167, 139, 250, 0.15);
  color: #f5f5f5;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
}

td {
  padding: 0.75rem 1rem;
  border-top: 1px solid rgba(167, 139, 250, 0.1);
}

tr:hover {
  background: rgba(167, 139, 250, 0.05);
}

/* Images */
img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  margin: 1rem 0;
}

/* Navigation at top */
nav ul {
  display: flex;
  gap: 1.5rem;
  padding: 1rem 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(167, 139, 250, 0.2);
  list-style: none;
}

nav ul li {
  margin-bottom: 0;
}

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

/* Selection color */
::selection {
  background: rgba(167, 139, 250, 0.3);
  color: #ffffff;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
  background: #a78bfa;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #c4b5fd;
}

/* Hide GitHub elements */
#header,
.repository-content .file-navigation {
  display: none !important;
}

/* Footer styling */
em {
  color: #b8b8b8;
  font-style: italic;
}
