:root {
  /* 🌑 Background */
  /* --color-bg-main: #0F172A;        /* deepest background */
  /*--color-bg-secondary: #1E293B;   /* hover / subtle panels */
  /*--color-bg-card: #273449;        /*cards / sections */

  --color-bg-main: #121314;
  --color-bg-secondary: #191a1b;
  --color-bg-card: #191a1b;

  /* ✨ Accent */
  --color-accent: #8B5CF6;         /* primary accent (buttons, highlights) */

  /* 📝 Text */
  --color-text-main: #E2E8F0;      /* main readable text */
  --color-text-highlight: #C4B5FD; /* highlighted / important text */
  --color-text-muted: #94A3B8;     /* secondary / muted text */
}


.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 2rem;
}



body {
  background: var(--color-bg-main);
  color: var(--color-text-main);
  margin: 0;
  padding-top: 120px;
}
p {
  color: var(--color-text-muted);
}
h1 {
  font-size: 2.5rem;
  color: var(--color-accent);
}
h3 {
  font-size: 1.25rem;
  color: var(--color-text-highlight);
}















/* header styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--color-bg-secondary);
  padding: 2rem 1rem 1.5rem;
  z-index: 1000;
  transition: all 0.3s ease;

  border-bottom: 2px solid #2a2b2c;
}
header h1 {
  margin-bottom: 0rem;
}
/* header scroll effect */
header .subtitle {
  opacity: 1;
  max-height: 100px;
  transition: all 0.3s ease;
}
/* collapsed state */
header.shrink .subtitle {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
}
header.shrink {
  padding: 0.5rem 1rem 0.75rem;
}
header a {
  display: block;
  text-decoration: none;
  color: inherit;
}
.header-icon {
  margin-top: 0px;
  height: 80px;  
  width: auto;
  transition: all 0.3s ease;
}
header.shrink .header-icon {
  height: 40px;
  margin-top: 5px;
}


















/* logo styles */
/* size + layout */
.logo {
  width: 60px;
  height: 60px;
  display: block;
}
/* default colours */
.logo {
  --bg: transparent;
  --outer: var(--color-accent);
  --inner: var(--color-bg-secondary);
  --logo: var(--color-accent);
}
/* apply colours */
.logo .background { fill: var(--bg); }
.logo .outer-circle { fill: var(--outer); }
.logo .inner-circle { fill: var(--inner); }
.logo .logo-colour { fill: var(--logo); }


















/* Footer styles */
footer {
  margin-top: 4rem;
  opacity: 0.6;
  font-size: 0.9rem;
  z-index: 100;
}
.mini-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;

  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(8px);

  color: #aaa;
  font-size: 12px;
  text-align: center;

  padding: 6px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);

  letter-spacing: 0.5px;
}
.mini-footer p {
  margin: 0;
  transition: color 0.2s ease;
}

.mini-footer p:hover {
  color: #fff;
}

















/* hero image styles */
.hero-image {
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
}
.hero-image img {
  width: 100%;
  height: 700px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.blog-hero-image {
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 130px;
}
.blog-hero-image img {
  width: 100%;
  height: 700px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}















/* code block styles */
.code-wrapper {
  position: relative;
  margin: 10px 0;
}
/* Collapsible */
details {
  border-radius: 6px;
  overflow: hidden;
}

/* Click header */
summary {
  cursor: pointer;
  padding: 8px 10px;
  background: #2d2d2d;
  color: #fff;
  font-weight: bold;
}

/* Remove default triangle spacing */
summary::-webkit-details-marker {
  display: none;
}

/* Code block */
pre {
  margin: 0;
  font-size: 13px;
  max-height: 300px;
  overflow: auto;
  border-radius: 0 0 6px 6px;
}

/* Copy button */
.copy-btn {
  position: absolute;
  top: 40px; /* adjusted so it sits inside details */
  right: 25px;
  background: #3a3a3a;
  color: white;
  border: none;
  padding: 5px 8px;
  font-size: 12px;
  border-radius: 4px;
  cursor: pointer;
  z-index: 10;
}

.copy-btn:hover {
  background: #555;
}

/* KEY FIX: remove only top margin, keep structure intact */
details {
  margin: 0;
  padding: 0;
}

/* Header */
summary {
  margin: 0;
  padding: 8px 10px;
  background: #2d2d2d;
  color: #fff;
  cursor: pointer;
}

/* KEY FIX: remove only top margin, keep structure intact */
pre[class*="language-"] {
  margin: 0 !important;
  padding: 12px;
  max-height: 600px;
  overflow: auto;
}




.download-btn {
    background: var(--color-accent);
    color: white;
    border: none;
    padding: 10px 16px;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s ease;
}

.download-btn:hover {
    background: var(--color-accent); /* slightly darker purple */
    transform: translateY(-2px);
}









/* text box with image */

/* .text-with-image {
  display: flex;
  align-items: top;  vertically aligns nicely
  gap: 1rem;
} */

.text-with-image {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.text-with-image > div {
  flex: 1;
  min-width: 0;
}

.text-with-image img {
  border-radius: 8px;
  flex-shrink: 0;
  object-fit: cover;
  object-position: 100% 100%; /* h v */
}
.image-row {
  display: flex;
  gap: 10px;
}
.image-row img{
    width: auto;
    height: 300px;
  }

.lone-image {
  width: 100%;
  height: auto;
  border-radius: 8px; 
  margin-top: 10px;
  margin-bottom: 10px;
}






/* tablet */
@media (max-width: 1000px) {
  
  .blog-hero-image img {
    height: auto;
    object-fit: contain;
    background: var(--color-bg-main);
  }

  .text-with-image {
    flex-direction: column;
  }
  .text-with-image img {
    width: 100%;
    height: auto;
    max-width: 900px;
    object-fit: contain;
  }

  .image-row {
    flex-direction: row;
    gap: 10px;
  }
  .image-row img{
    width: 50%;
    height: auto;
    max-width: 900px;
    object-fit: contain;
  }
}

/* phone settings */
@media (max-width: 600px) {
  .header-icon {
      display: none;
  }

  
  .blog-hero-image img {
    height: auto;
    object-fit: contain;
    background: var(--color-bg-main);
  }


  .text-with-image {
    flex-direction: column;
  }
  .text-with-image img {
    width: 100%;
    height: auto;
    max-width: 500px;
    object-fit: contain;
  }
  .image-row {
    flex-direction: row;
    gap: 10px;
  }

  .image-row img{
    width: 50%;
    height: auto;
    max-width: 500px;
    object-fit: contain;
  }
}