/* Buttons */
.btn {
  /* Base button styles, minimal as most are inline or tech-btn */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  /* Adjusted to match Thejus page buttons */
  border-radius: var(--radius-sm);
  /* Changed to small radius */
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 1px solid var(--blue);
  /* Default to blue border */
  background-color: white;
  color: var(--blue);
  font-family: var(--tech);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn:hover {
  background-color: var(--blue);
  color: white;
}

/* Primary variant for buttons */
.btn--primary {
  background-color: var(--blue);
  color: white;
}

.btn--primary:hover {
  background-color: var(--blue-dim);
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Advanced Modal Specific Buttons */
.tech-btn {
  background: transparent;
  border: 1px solid var(--blue);
  color: var(--blue);
  padding: 8px 12px;
  font-family: var(--tech);
  font-size: 12px;
  cursor: pointer;
  text-align: left;
  display: flex;
  justify-content: space-between;
  border-radius: var(--radius-sm);
}

.tech-btn:hover {
  background: var(--blue);
  color: white;
}

.tech-btn.primary {
  background: var(--blue);
  color: white;
}

/* Code Blocks */
/* Code Blocks */
pre {
  background-color: var(--bg-code);
  /* Always dark for code */
  color: var(--text-code);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  margin: var(--space-md) 0;
  font-family: 'JetBrains Mono', monospace;
  border: 1px solid var(--border);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  animation: fadeIn 0.6s ease-out forwards;
}

.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

/* --------------------
   Thejus-LIKE CUSTOMIZATIONS
   (Brand / hero / diagram tweaks)
   -------------------- */

.brand-tech {
  font-family: var(--tech);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 1.05rem;
  color: var(--text-main);
}

.hero-title {
  font-family: var(--tech);
  font-size: 2.5rem;
  line-height: 0.95;
  text-transform: none;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

/* Pixel-brand heading (Press Start 2P) */
.brand-pixel {
  font-family: 'Press Start 2P', var(--tech);
  font-size: 24px;
  /* thinner appearance */
  line-height: 2;
  color: var(--accent);
  letter-spacing: 2px;
  margin: 0;
  text-transform: uppercase;
  display: inline-block;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transform: translateZ(0);
  text-shadow: none;
}

@media (max-width: 680px) {
  .brand-pixel {
    font-size: 18px;
  }
}


/* Small clear button, used on mini canvases */
.btn-small-clear {
  background: white;
  border: 1px solid var(--blue);
  color: var(--blue);
  font-family: var(--tech);
  font-size: 0.8rem;
  padding: 6px 10px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-sm);
}

.btn-small-clear:hover {
  background: var(--blue);
  color: white;
}

.diagram-container {
  border: 1px solid rgba(31, 92, 255, .12);
  padding: var(--space-lg);
  background-color: #f6f9ff;
  background-image: radial-gradient(rgba(31, 92, 255, .06) .8px, transparent .8px);
  background-size: 12px 12px;
  min-height: 240px;
}

.section-divider {
  height: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 24px 0;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
}

.section-divider::before {
  /* Decorative breaker pattern: :⋮:⋮ repeating */
  content: ":⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮    :⋮:⋮";
  display: block;
  width: 100%;
  font-family: var(--tech);
  font-size: 12px;
  line-height: 1;
  text-align: center;
  color: var(--text-sub);
  white-space: nowrap;
  overflow: hidden;
  letter-spacing: -2px;
  opacity: 1;
}

@media (max-width: 720px) {
  .section-divider {
    height: 16px;
    margin: 16px 0;
  }
}

/* Chips with a more technical / uppercase feel */
.chip {
  display: inline-flex;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  background-color: var(--bg);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-transform: uppercase;
  font-family: var(--tech);
  letter-spacing: 0.06em;
}

.chip:hover,
.chip.active {
  border-color: var(--blue);
  color: var(--blue);
  background-color: rgba(31, 92, 255, 0.06);
}


/* Table of Contents / Problem list styles */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--tech);
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
}

.category-title {
  font-family: var(--tech);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
  color: var(--accent);
}

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

.problem-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  font-family: var(--serif);
  font-size: 1rem;
}

.problem-list li a {
  color: var(--text-main);
  text-decoration: none;
  font-family: var(--serif);
}

.problem-list li a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.entry-leader {
  flex: 1;
  height: 6px;
  margin: 0 10px;
  background-image: radial-gradient(currentColor 40%, transparent 41%);
  background-size: 6px 6px;
  background-repeat: repeat-x;
  background-position: 0 50%;
  opacity: 0.25;
  color: var(--accent);
}

.entry-value {
  font-family: var(--tech);
  font-weight: normal; /* Reduced weight */
  color: var(--text-sub); /* Use subtle text color */
  white-space: nowrap;
  font-size: 0.65rem; /* Matches mobile feeling */
  padding: 2px 8px;
  background: var(--bg-card-elevated); /* Slight elevated bg */
  border: 1px solid var(--border); /* Visible border */
  border-radius: 4px; /* Slightly rounder than radius-sm if needed */
  text-transform: capitalize; /* "Medium" instead of "MEDIUM" */
  letter-spacing: 0.5px;
}

.btn-expand {
  display: none !important;
}
/* Site Footer Styles - Minimalist with Content */
.site-footer {
    margin-top: 120px;
    padding-bottom: 80px;
    text-align: center;
    background: transparent;
    border-top: none;
    font-family: var(--font-mono-sys);
}

.footer-filler {
    font-family: var(--font-mono-sys);
    font-size: 10px;
    color: var(--text-sub);
    letter-spacing: 4px;
    opacity: 0.3;
    margin-bottom: 32px;
    user-select: none;
}

.footer-brand-minimal {
    font-family: 'Press Start 2P', monospace; /* Match Header DSA. */
    font-size: 24px;
    line-height: 1;
    color: var(--accent); /* Same as DSA. logo */
    text-transform: uppercase;
    display: inline-block;
    cursor: default;
    margin-top: 40px;
}

.footer-tagline {
    font-size: 10px;
    color: var(--text-sub);
    letter-spacing: 2px;
    margin-bottom: 12px;
    text-transform: uppercase;
    opacity: 0.8;
}

.footer-description {
    font-size: 10px;
    color: var(--text-sub);
    max-width: 400px;
    margin: 0 auto 24px;
    line-height: 1.6;
    opacity: 0.6;
}

.footer-copyright {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 9px;
    color: var(--text-sub);
    opacity: 0.4;
    letter-spacing: 1px;
}
