/* Nord Theme CSS for Jekyll Blog */
@import url('https://fonts.googleapis.com/css2?family=Ubuntu+Mono:wght@400;700&display=swap');

/* Nord Color Palette */
:root {
  --nord0: #2e3440;   /* Polar Night - darkest */
  --nord1: #3b4252;   /* Polar Night */
  --nord2: #434c5e;   /* Polar Night */
  --nord3: #4c566a;   /* Polar Night - lightest */
  --nord4: #d8dee9;   /* Snow Storm - darkest */
  --nord5: #e5e9f0;   /* Snow Storm */
  --nord6: #eceff4;   /* Snow Storm - lightest */
  --nord7: #8fbcbb;   /* Frost - teal */
  --nord8: #88c0d0;   /* Frost - light blue */
  --nord9: #81a1c1;   /* Frost - blue */
  --nord10: #5e81ac;  /* Frost - dark blue */
  --nord11: #bf616a;  /* Aurora - red */
  --nord12: #d08770;  /* Aurora - orange */
  --nord13: #ebcb8b;  /* Aurora - yellow */
  --nord14: #a3be8c;  /* Aurora - green */
  --nord15: #b48ead;  /* Aurora - purple */
  --roundness: 3px;   /* Standard border radius for content blocks */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Ubuntu Mono', 'JetBrains Mono', 'Fira Code', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
  background: linear-gradient(135deg, var(--nord0) 0%, var(--nord1) 50%, var(--nord2) 100%);
  color: var(--nord4);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Animated Stars Background */
#stars, #stars2, #stars3 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

#stars {
  background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300"><defs><pattern id="stars" patternUnits="userSpaceOnUse" width="300" height="300"><circle cx="75" cy="75" r="1" fill="white" opacity="0.8"/><circle cx="150" cy="30" r="1" fill="white" opacity="0.6"/><circle cx="225" cy="180" r="1" fill="white" opacity="0.9"/><circle cx="50" cy="200" r="1" fill="white" opacity="0.7"/><circle cx="280" cy="120" r="1" fill="white" opacity="0.5"/></pattern></defs><rect width="100%" height="100%" fill="url(%23stars)"/></svg>') repeat;
  animation: moveStars 15s linear infinite;
}

#stars2 {
  background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"><defs><pattern id="stars2" patternUnits="userSpaceOnUse" width="200" height="200"><circle cx="100" cy="50" r="0.8" fill="white" opacity="0.4"/><circle cx="40" cy="120" r="0.8" fill="white" opacity="0.6"/><circle cx="160" cy="170" r="0.8" fill="white" opacity="0.3"/></pattern></defs><rect width="100%" height="100%" fill="url(%23stars2)"/></svg>') repeat;
  animation: moveStars 45s linear infinite;
}

#stars3 {
  background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="250" height="250"><defs><pattern id="stars3" patternUnits="userSpaceOnUse" width="250" height="250"><circle cx="200" cy="100" r="0.6" fill="white" opacity="0.8"/><circle cx="80" cy="200" r="0.6" fill="white" opacity="0.4"/><circle cx="20" cy="50" r="0.6" fill="white" opacity="0.7"/></pattern></defs><rect width="100%" height="100%" fill="url(%23stars3)"/></svg>') repeat;
  animation: moveStars 90s linear infinite;
}

@keyframes moveStars {
  from { transform: translateY(0px); }
  to { transform: translateY(-300px); }
}

/* Astronaut Animation */
#astronauts {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.astronaut {
  position: absolute;
  background-image: url('../astronaut.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  animation-name: floatUp;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
  opacity: 0.8;
}

@keyframes floatUp {
  from { 
    transform: translateY(0px);
  }
  to { 
    transform: translateY(-100vh);
  }
}

/* Top Navigation */
.top-nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(46, 52, 64, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--nord3);
}

.nav-container {
  max-width: none;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

.nav-title {
  color: var(--nord6);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.2rem;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
}

.nav-title .profile-pic {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--nord1);
  transition: all 0.3s ease;
}

.nav-title:hover {
  color: var(--nord8);
}

.nav-title:hover .profile-pic {
  transform: scale(1.1);
  background-color: var(--nord2);
}

.nav-link {
  color: var(--nord4);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--nord8);
}

.search-icon {
  cursor: pointer;
  transition: opacity 0.3s ease;
  color: var(--nord4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-icon:hover {
  color: var(--nord8);
}

.search-icon svg {
  transition: color 0.3s ease;
}

/* Main Container */
.main-container {
  display: flex;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 100px 2rem 2rem;
  min-height: 100vh;
}

/* Content Area */
.content-area {
  width: 100%;
  max-width: 700px;
}

.profile-section {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}


/* Blog Content */
.blog-content {
  background: rgba(59, 66, 82, 0.6);
  border-radius: var(--roundness);
  padding: 2rem 2.5rem 2.5rem;
  backdrop-filter: blur(10px);
  border: 1px solid var(--nord3);
  box-shadow: 0 10px 40px rgba(46, 52, 64, 0.4);
  line-height: 1.3;
}

.blog-content h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: var(--nord6);
}

.blog-content h2 {
  font-size: 1.7rem;
  margin: 1.5rem 0 0.8rem;
  color: var(--nord5);
}

.blog-content p {
  margin-bottom: 1.2rem;
  color: var(--nord4);
}

.blog-content a {
  color: var(--nord8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-content a:hover {
  color: var(--nord7);
  text-decoration: underline;
}

.blog-content ul,
.blog-content ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.blog-content li {
  margin-bottom: 0;
}

/* Post List Styling */
.post-list {
  list-style: none;
}

.post-preview {
  margin-bottom: 2rem;
}

.post-preview:last-child {
  margin-bottom: 0;
}

.post-preview .blog-content {
  background: var(--nord1);
  border-radius: var(--roundness);
  padding: 2rem 2.5rem 2.5rem;
  backdrop-filter: blur(10px);
  border: 1px solid var(--nord3);
  box-shadow: 0 10px 40px rgba(46, 52, 64, 0.4);
  line-height: 1.3;
}

.post-preview h2 {
  font-size: 1.8rem;
  margin-bottom: 0.3rem;
  margin-top: 0;
}

.post-preview h2 a {
  color: var(--nord6);
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-preview h2 a:hover {
  color: var(--nord8);
}



.post-preview .post-content h1,
.post-preview .post-content h2,
.post-preview .post-content h3,
.post-preview .post-content h4,
.post-preview .post-content h5,
.post-preview .post-content h6 {
  color: var(--nord5);
  margin-top: 0.8rem;
  margin-bottom: 0.8rem;
}

.post-preview .post-content h1:first-child,
.post-preview .post-content h2:first-child,
.post-preview .post-content h3:first-child,
.post-preview .post-content h4:first-child,
.post-preview .post-content h5:first-child,
.post-preview .post-content h6:first-child,
.post-preview .post-content p:first-child {
  margin-top: 0;
}

.post-preview .post-content h1 { font-size: 1.6rem; }
.post-preview .post-content h2 { font-size: 1.5rem; }
.post-preview .post-content h3 { font-size: 1.4rem; }

.post-preview .post-content p {
  margin-bottom: 1rem;
  line-height: 1.3;
  color: var(--nord4);
}

.post-preview .post-content ul,
.post-preview .post-content ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.post-preview .post-content li {
  margin-bottom: 0;
}

.post-preview .post-content code {
  background: var(--nord1);
  color: var(--nord13);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
}

.post-preview .post-content pre {
  background: transparent;
  border-radius: 0;
  padding: 0;
  overflow-x: auto;
  margin: 0;
}

.post-preview .post-content pre code {
  background: none;
  padding: 0;
}

.post-preview .post-content blockquote {
  border-left: 4px solid var(--nord8);
  margin: 1rem 0;
  padding-left: 1rem;
  font-style: italic;
  opacity: 0.9;
}

.post-preview .post-content a {
  color: var(--nord8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-preview .post-content a:hover {
  color: var(--nord7);
  text-decoration: underline;
}

.post-date {
  font-size: 0.9rem;
  color: var(--nord9);
  margin-bottom: 1.2rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 1.2rem;
}

.post-date::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--nord3);
  opacity: 0.3;
}


.share-buttons {
  display: flex;
  gap: 0.8rem;
}

.share-btn {
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--nord4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem;
  border-radius: 4px;
}

.share-btn:hover {
  transform: scale(1.1);
  color: var(--nord8);
  background: rgba(136, 192, 208, 0.1);
}





/* Search Form */
.search-container {
  position: relative;
  display: flex;
  align-items: center;
}

.search-form {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  transition: all 0.3s ease;
}



.search-container input {
  background: rgba(76, 86, 106, 0.9);
  border: 1px solid var(--nord3);
  border-radius: var(--roundness);
  outline: none;
  color: var(--nord6);
  font-size: 0.85rem;
  font-family: inherit;
  padding: 0.6rem 0.8rem;
  width: 0;
  opacity: 0;
  transition: all 0.3s ease;
}

.search-container input::placeholder {
  color: var(--nord3);
}

.search-container:hover input,
.search-container:focus-within input,
.search-container input:not(:placeholder-shown) {
  width: 300px;
  opacity: 1;
  margin-right: 0.5rem;
}

.search-container:focus-within input {
  border-color: var(--nord8);
  background: rgba(76, 86, 106, 1);
  box-shadow: 0 0 0 1px var(--nord8);
}

.search-container .search-icon {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--nord4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem;
  transition: all 0.3s ease;
}

.search-container .search-icon:hover {
  color: var(--nord8);
}

/* Search Results Page */
.search-query {
  margin-bottom: 1.5rem;
  color: var(--nord4);
  font-style: italic;
}

.search-results-page {
  margin-top: 1rem;
}

.search-result {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--nord3);
}

.search-result:last-child {
  border-bottom: none;
}

.search-result h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.6rem;
}

.search-result h2 a {
  color: var(--nord6);
  text-decoration: none;
  transition: color 0.3s ease;
}

.search-result h2 a:hover {
  color: var(--nord8);
}

.search-result-date {
  color: var(--nord9);
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

.search-result-excerpt {
  color: var(--nord4);
  line-height: 1.6;
}

.search-highlight {
  background: rgba(235, 203, 139, 0.3);
  color: var(--nord13);
  padding: 0.1rem 0.2rem;
  border-radius: var(--roundness);
}

.search-hint {
  padding: 2rem;
  text-align: center;
  color: var(--nord3);
  font-style: italic;
}

.no-results {
  padding: 2rem;
  text-align: center;
  color: var(--nord3);
}

.no-results-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--nord4);
}





/* Responsive Design */
@media (max-width: 768px) {
  .main-container {
    padding: 80px 1rem 2rem;
  }
  
  .blog-content {
    padding: 1.5rem;
  }
  

  
  .nav-container {
    padding: 0 1rem;
  }

  /* Search mobile styles */
  .search-container:hover input,
  .search-container:focus-within input,
  .search-container input:not(:placeholder-shown) {
    width: 240px;
  }
}

/* Rouge Syntax Highlighting - Nord Theme */
.code-block-wrapper {
  margin: 0.5rem 0;
  border-radius: var(--roundness);
  overflow: hidden;
  background: var(--nord0);
}

.code-topbar {
  background: var(--nord0);
  padding: 0.5rem 0.75rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  font-size: 0.85rem;
}

.code-copy-btn {
  background: none;
  border: none;
  color: var(--nord4);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.code-copy-btn:hover {
  background: var(--nord2);
  color: var(--nord6);
}

.code-copy-btn.copied {
  color: var(--nord14);
}

.code-copy-btn svg {
  width: 16px;
  height: 16px;
}

.highlight {
  background: var(--nord0);
  border-radius: 0;
  padding: 0.25rem 0.75rem 0.5rem;
  overflow-x: auto;
  margin: 0;
}

.highlight pre {
  margin: 0;
  background: none;
  border: none;
  padding: 0;
}

.highlight code {
  background: none;
  color: var(--nord4);
  padding: 0;
  font-size: 0.9em;
  font-family: 'JetBrains Mono', 'Fira Code', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
}

/* Rouge token colors matching Nord theme */
.highlight .c { color: var(--nord3); font-style: italic; } /* Comment */
.highlight .err { color: var(--nord11); } /* Error */
.highlight .g { color: var(--nord4); } /* Generic */
.highlight .k { color: var(--nord9); font-weight: bold; } /* Keyword */
.highlight .l { color: var(--nord4); } /* Literal */
.highlight .n { color: var(--nord4); } /* Name */
.highlight .o { color: var(--nord9); } /* Operator */
.highlight .x { color: var(--nord4); } /* Other */
.highlight .p { color: var(--nord4); } /* Punctuation */
.highlight .cm { color: var(--nord3); font-style: italic; } /* Comment.Multiline */
.highlight .cp { color: var(--nord9); font-weight: bold; } /* Comment.Preproc */
.highlight .c1 { color: var(--nord3); font-style: italic; } /* Comment.Single */
.highlight .cs { color: var(--nord3); font-weight: bold; font-style: italic; } /* Comment.Special */
.highlight .gd { color: var(--nord11); background-color: rgba(191, 97, 106, 0.1); } /* Generic.Deleted */
.highlight .ge { color: var(--nord4); font-style: italic; } /* Generic.Emph */
.highlight .gr { color: var(--nord11); } /* Generic.Error */
.highlight .gh { color: var(--nord8); font-weight: bold; } /* Generic.Heading */
.highlight .gi { color: var(--nord14); background-color: rgba(163, 190, 140, 0.1); } /* Generic.Inserted */
.highlight .go { color: var(--nord3); } /* Generic.Output */
.highlight .gp { color: var(--nord9); font-weight: bold; } /* Generic.Prompt */
.highlight .gs { color: var(--nord4); font-weight: bold; } /* Generic.Strong */
.highlight .gu { color: var(--nord8); font-weight: bold; } /* Generic.Subheading */
.highlight .gt { color: var(--nord11); } /* Generic.Traceback */
.highlight .kc { color: var(--nord9); font-weight: bold; } /* Keyword.Constant */
.highlight .kd { color: var(--nord9); font-weight: bold; } /* Keyword.Declaration */
.highlight .kn { color: var(--nord9); font-weight: bold; } /* Keyword.Namespace */
.highlight .kp { color: var(--nord9); } /* Keyword.Pseudo */
.highlight .kr { color: var(--nord9); font-weight: bold; } /* Keyword.Reserved */
.highlight .kt { color: var(--nord9); font-weight: bold; } /* Keyword.Type */
.highlight .ld { color: var(--nord14); } /* Literal.Date */
.highlight .m { color: var(--nord15); } /* Literal.Number */
.highlight .s { color: var(--nord14); } /* Literal.String */
.highlight .na { color: var(--nord7); } /* Name.Attribute */
.highlight .nb { color: var(--nord8); } /* Name.Builtin */
.highlight .nc { color: var(--nord8); } /* Name.Class */
.highlight .no { color: var(--nord13); } /* Name.Constant */
.highlight .nd { color: var(--nord10); } /* Name.Decorator */
.highlight .ni { color: var(--nord12); } /* Name.Entity */
.highlight .ne { color: var(--nord11); font-weight: bold; } /* Name.Exception */
.highlight .nf { color: var(--nord8); } /* Name.Function */
.highlight .nl { color: var(--nord13); } /* Name.Label */
.highlight .nn { color: var(--nord7); } /* Name.Namespace */
.highlight .nx { color: var(--nord4); } /* Name.Other */
.highlight .py { color: var(--nord4); } /* Name.Property */
.highlight .nt { color: var(--nord9); } /* Name.Tag */
.highlight .nv { color: var(--nord4); } /* Name.Variable */
.highlight .ow { color: var(--nord9); font-weight: bold; } /* Operator.Word */
.highlight .w { color: var(--nord4); } /* Text.Whitespace */
.highlight .mf { color: var(--nord15); } /* Literal.Number.Float */
.highlight .mh { color: var(--nord15); } /* Literal.Number.Hex */
.highlight .mi { color: var(--nord15); } /* Literal.Number.Integer */
.highlight .mo { color: var(--nord15); } /* Literal.Number.Oct */
.highlight .sb { color: var(--nord14); } /* Literal.String.Backtick */
.highlight .sc { color: var(--nord14); } /* Literal.String.Char */
.highlight .sd { color: var(--nord3); font-style: italic; } /* Literal.String.Doc */
.highlight .s2 { color: var(--nord14); } /* Literal.String.Double */
.highlight .se { color: var(--nord12); } /* Literal.String.Escape */
.highlight .sh { color: var(--nord14); } /* Literal.String.Heredoc */
.highlight .si { color: var(--nord12); } /* Literal.String.Interpol */
.highlight .sx { color: var(--nord14); } /* Literal.String.Other */
.highlight .sr { color: var(--nord14); } /* Literal.String.Regex */
.highlight .s1 { color: var(--nord14); } /* Literal.String.Single */
.highlight .ss { color: var(--nord13); } /* Literal.String.Symbol */
.highlight .bp { color: var(--nord8); } /* Name.Builtin.Pseudo */
.highlight .vc { color: var(--nord4); } /* Name.Variable.Class */
.highlight .vg { color: var(--nord4); } /* Name.Variable.Global */
.highlight .vi { color: var(--nord4); } /* Name.Variable.Instance */
.highlight .il { color: var(--nord15); } /* Literal.Number.Integer.Long */

/* Pagination Styles - Minimal & Subtle */
.pagination {
  margin: 3rem 0 2rem;
  text-align: center;
}

.pagination-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.75rem;
  background: transparent;
  border: none;
  color: var(--nord4);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.pagination-btn:hover:not(.disabled) {
  color: var(--nord6);
}

.pagination-btn.disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

.pagination-pages {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 1rem;
}

.pagination-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  color: var(--nord4);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.9rem;
  transition: color 0.2s ease;
  padding: 0.25rem;
}

.pagination-number:hover:not(.current) {
  color: var(--nord6);
}

.pagination-number.current {
  color: var(--nord8);
  font-weight: 500;
}



/* Responsive Pagination */
@media (max-width: 768px) {
  .pagination-container {
    gap: 0.5rem;
  }
  
  .pagination-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
  }
  
  .pagination-pages {
    margin: 0 0.5rem;
    gap: 0.3rem;
  }
  
  .pagination-number {
    min-width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }
  

}
