@import url("https://fonts.googleapis.com/css2?family=Encode+Sans:wght@400;700&display=swap");

/* Email Form Styles */
.email-collect-form {
  max-width: 400px;
  margin: auto;
  margin-bottom: 24px;
  font-family: "Encode Sans", Arial, sans-serif;
}
.email-collect-heading {
  font-size: 1.25em;
  color: #007bff;
  font-weight: 700;
  margin-bottom: 8px;
}
.email-collect-label {
  font-size: 1em;
  color: #444;
  font-weight: 600;
  margin-bottom: 4px;
  display: block;
}
.email-collect-input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1em;
  margin-bottom: 12px;
}
.email-collect-button {
  padding: 10px 0;
  width: 100%;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1em;
  font-family: inherit;
  cursor: pointer;
}
.email-collect-result {
  margin-top: 12px;
  font-size: 0.95em;
  color: #007bff;
}

:root {
  --bg-color: rgba(25, 46, 51, 1);
  --text-color: #e3e4e6;
  --heading-color: #fff;
  --link-color: #48937aff;
  --link-hover-color: #ff6fff;
  --border-color: #3a3a3f;
  --note-bg-color: #27272a;
  --note-border-color: #555;
  --button-bg: #f0f0f0;
  --button-text: #161618;
  --button-hover-bg: #dcdcdc;
  --code-bg: #2a2a2e;
  --code-text: #d4d4d4;
  --code-example-bg: #1e3a2e;
  --code-example-border: #2e8b57;
}

html {
  box-sizing: border-box;
}
*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  position: relative;
  color: var(--text-color);
  font-family: "Encode Sans", Arial, Helvetica, sans-serif;
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  /* Simple dark blue to blue gradient - no animations for better performance */
  background: linear-gradient(
    135deg,
    #001122 0%,
    #01274cff 50%,
    #010203ff 100%
  );
}

/* Remove animated overlay - keep CSS debug indicator only */

/* Remove particle system entirely for better performance */

/* Remove all particle-related media queries */

/* Simple responsive design - no performance-heavy animations */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

.main-content {
  max-width: 900px;
  margin: 32px auto;
  padding: 28px 36px;
  background: rgba(25, 46, 51, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(4px) saturate(80%);
  -webkit-backdrop-filter: blur(4px) saturate(80%);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.02);
  position: relative;
  z-index: 5;
}

.top-button-container {
  text-align: right;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 25px;
}

.top-button {
  display: inline-block;
  background: linear-gradient(90deg, #ffffff 0%, #f0f0f0 100%);
  color: var(--button-text);
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95em;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.top-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
  background: linear-gradient(90deg, #fff 0%, #ffe8f3 40%, #ffd6a5 100%);
  text-decoration: none;
}

.top-button:hover {
  background-color: var(--button-hover-bg);
  text-decoration: none;
}

.breadcrumbs {
  font-size: 0.9em;
  color: #aaa;
  margin-bottom: 15px;
}
.breadcrumbs a {
  color: #aaa;
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: var(--link-hover-color);
  text-decoration: underline;
}

/* Headings (h1 - h5) with playful light gradients for dark backgrounds */
h1,
h2,
h3,
h4,
h5 {
  font-family: "Encode Sans", Arial, Helvetica, sans-serif;
  font-weight: 700;
  margin-top: 1.5em;
  margin-bottom: 0.8em;
  line-height: 1.3;
  color: var(--heading-color); /* fallback */
}

h1 {
  font-size: 2.3em;
  margin-top: 0;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.3em;
  display: block;
  /* vivid green -> cyan -> yellow */
  background: linear-gradient(
    90deg,
    #00ff88 0%,
    #00e6ff 40%,
    #fff700 80%,
    #ffb300 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 700;
}

h2 {
  font-size: 1.8em;
  margin-bottom: 0.7em;
  /* blue -> purple -> magenta */
  background: linear-gradient(90deg, #00cfff 0%, #7d5fff 50%, #ff00c8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

h3 {
  font-size: 1.4em;
  font-weight: 700;
  /* playful rainbow stripe */
  background: linear-gradient(
    90deg,
    #ff6b6b 0%,
    #ffb86b 20%,
    #fff57a 40%,
    #b7ff9a 60%,
    #7de3ff 80%,
    #caa3ff 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

h4 {
  font-size: 1.15em;
  margin-bottom: 0.6em;
  /* teal -> green -> yellow */
  background: linear-gradient(90deg, #00e6d0 0%, #00ff88 50%, #fff700 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 700;
}

h5 {
  font-size: 1em;
  margin-bottom: 0.5em;
  /* subtle pastel rainbow */
  background: linear-gradient(
    90deg,
    #fff9d9 0%,
    #ffd6f0 40%,
    #d6f7ff 70%,
    #eaffd6 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 700;
}

p {
  margin-bottom: 1em;
}

a {
  color: var(--link-color);
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--link-hover-color);
  text-decoration: underline;
}

.info-box {
  background-color: var(--note-bg-color);
  color: var(--text-color);
  padding: 15px 20px;
  margin-left: 0;
  margin-top: 20px;
  margin-bottom: 20px;
  border-left: 4px solid var(--note-border-color);
  border-radius: 4px;
}
.info-box p:first-child {
  font-weight: 600;
  margin-top: 0;
}
.info-box p:last-child {
  margin-bottom: 0;
}

.code-format-explanation {
  background-color: var(--code-example-bg);
  color: var(--text-color);
  padding: 15px 20px;
  margin-top: 15px;
  margin-bottom: 15px;
  border-left: 4px solid var(--code-example-border);
  border-radius: 4px;
  font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
  font-size: 0.9em;
}
pre code {
  display: block;
  background-color: var(--code-bg);
  color: var(--code-text);
  padding: 15px;
  border-radius: 4px;
  overflow-x: auto;
  font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
  font-size: 0.9em;
  white-space: pre-wrap;
  word-wrap: break-word;
  margin-top: 5px;
  margin-bottom: 10px;
}

code:not(pre > code) {
  background-color: var(--code-bg);
  color: var(--code-text);
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-size: 0.85em;
}

ul,
ol {
  padding-left: 25px;
  margin-bottom: 1em;
}
li {
  margin-bottom: 0.5em;
}

.gradient-thoughts {
  background: linear-gradient(90deg, #ff0040 0%, #00cfff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
}

.worth-checking {
  background: linear-gradient(90deg, #00e6d0 10%, #bfff00 60%, #fff700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
  font-weight: 300;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 0 #fff, 0 2px 0 #bfff00;
  border-radius: 2px;
  filter: none;
}

.gradient2thoughts {
  background: linear-gradient(90deg, #000000 0%, #1a1a2e 100%);
  color: #fff;
  display: inline-block;
  font-weight: 300;
  letter-spacing: 0.5px;
  padding: 8px 16px;
  border-radius: 6px;
  filter: none;
}

.model-card {
  background-color: var(--note-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 15px;
  margin-bottom: 15px;
}

.model-card-red {
  background: linear-gradient(135deg, #462e36ff 0%, #29030cff 80%);
  color: #fff;
  border: 1px solid #ff0040ff;
  border-radius: 6px;
  padding: 18px 22px;
  margin: 22px 0;
  box-shadow: 0 2px 12px rgba(120, 0, 40, 0.12);
}

.disclaimer {
  background-color: var(--note-bg-color);
  color: var(--text-color);
  padding: 15px 20px;
  margin: 20px 0;
  border-left: 4px solid var(--note-border-color);
  border-radius: 4px;
}
.share-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 2em;
  margin-bottom: 2em;
}
.share-text {
  font-size: 1.2em;
  color: #9f9f9f;
  font-weight: 500;
  text-align: center;
}

.grok-accordion {
  background-color: rgba(39, 39, 42, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  margin: 20px 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.grok-accordion:hover {
  background-color: rgba(39, 39, 42, 1);
  border-color: #555;
}

.grok-accordion-header {
  padding: 15px 20px;
  cursor: pointer;
  background-color: rgba(35, 35, 42, 0.9);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.grok-accordion-header:hover {
  background-color: rgba(35, 35, 42, 1);
  border-bottom-color: var(--border-color);
}

.grok-accordion-arrow {
  font-size: 1.2em;
  transition: transform 0.3s ease;
  color: #aaa;
}

.grok-accordion.active .grok-accordion-arrow {
  transform: rotate(180deg);
}

.grok-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  background-color: rgba(39, 39, 42, 0.9);
}

.grok-accordion.active .grok-accordion-content {
  max-height: 500px;
  padding: 15px 20px;
}

.image-accordion {
  background-color: rgba(39, 39, 42, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  margin: 20px 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.image-accordion:hover {
  background-color: rgba(39, 39, 42, 1);
  border-color: #555;
}

.image-accordion-header {
  padding: 15px 20px;
  background-color: rgba(35, 35, 42, 0.9);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.image-accordion-header:hover {
  background-color: rgba(35, 35, 42, 1);
  border-bottom-color: var(--border-color);
}

.image-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  background-color: rgba(39, 39, 42, 0.9);
}

.image-accordion.active .image-accordion-content {
  max-height: 500px;
  padding: 15px 20px;
}

.claude-ai-link {
  background-color: rgba(39, 39, 42, 0.8);
  padding: 10px 15px;
  border-radius: 4px;
  margin: 10px 0;
  border-left: 3px solid var(--link-color);
}

/* Navigation button styles */
.nav-container {
  text-align: center;
  margin-bottom: 20px;
}

.nav-button {
  background: linear-gradient(45deg, #ff6b35, #f7931e);
  background-clip: border-box;
  -webkit-background-clip: border-box;
  -webkit-text-fill-color: #ffffff;
  color: #ffffff;
  font-size: 1.3em;
  font-weight: bold;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  border: 2px solid #ffffff;
  display: inline-block;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.nav-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  text-decoration: none;
  color: #ffffff;
}

.nav-link {
  font-size: 1.2em;
  color: #aaa;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--link-hover-color);
  text-decoration: underline;
}

/* Animated border box for attention grabbing */
.animated-border-box {
  position: relative;
  padding: 20px;
  margin: 30px 0;
  border-radius: 12px;
  background: rgba(25, 46, 51, 0.5);
  overflow: hidden;
}

.animated-border-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px dashed #ffffffff;
  border-radius: 12px;
  animation: borderAnimation 2s linear infinite;
  pointer-events: none;
}

@keyframes borderAnimation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Hacker News Banner */
.hn-banner {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(45deg, #ff6b35, #f7931e);
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 0.9em;
  z-index: 1000;
  animation: slideInRight 1s ease-out;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.hn-banner a {
  color: white;
  text-decoration: none;
}

.hn-banner a:hover {
  text-decoration: underline;
}

@keyframes slideInRight {
  from {
    right: -300px;
    opacity: 0;
  }
  to {
    right: 20px;
    opacity: 1;
  }
}

/* Trending Badge Styles */

.hn-badge {
  position: fixed;
  top: 32px;
  right: 32px;
  min-width: 300px;
  padding: 12px 20px;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  animation: spinSlow 8s ease-out;
  animation-fill-mode: forwards;
}

.hn-badge:hover {
  background: rgba(0, 0, 0, 0.9);
}

@keyframes spinSlow {
  0% {
    transform: rotate(0deg);
    animation-timing-function: cubic-bezier(
      0.47,
      0,
      0.745,
      0.715
    ); /* easeOutSine */
  }
  80% {
    transform: rotate(360deg);
    animation-timing-function: cubic-bezier(
      0.39,
      0.575,
      0.565,
      1
    ); /* smooth out */
  }
  100% {
    transform: rotate(370deg);
  }
}

.hn-badge > a,
.hn-badge > a:visited {
  color: transparent;
  background: linear-gradient(
    90deg,
    #ff0000,
    #ff7f00,
    #ffff00,
    #00ff00,
    #0000ff,
    #4b0082,
    #9400d3
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  display: block;
  text-align: center;
}

.hn-badge > a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: transparent;
}
