/* Google Fonts */
/* @import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=JetBrains+Mono:wght@400;600&display=swap"); */

@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;600&family=JetBrains+Mono:wght@400;600&display=swap");

body {
  font-family: "Sora", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #e0e0e0;
  background-color: #0f0f12;
  margin: 0;
  padding: 0;
}

.post-cover {
  position: relative;
  margin: 1.5rem 0 2rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 25px rgba(0, 170, 255, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-cover img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border-radius: 12px;
  /* Removed brightness filter to make images pop */
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s ease, box-shadow 0.3s ease;
}

.post-cover:hover img {
  transform: scale(1.02);
  box-shadow: 0 10px 40px rgba(0, 170, 255, 0.25); /* Enhanced blue glow */
}

/* Overlay text */
.cover-source-overlay {
  position: absolute;
  bottom: 8px;
  right: 12px;
  background: rgba(15, 15, 18, 0.6);
  backdrop-filter: blur(3px);
  color: #aaa;
  font-size: 0.8rem;
  font-style: italic;
  padding: 4px 8px;
  border-radius: 4px;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.cover-source-overlay:hover {
  opacity: 1;
}

.cover-source-overlay a {
  color: #9fd1ff;
  text-decoration: none;
  border-bottom: 1px dotted rgba(159, 209, 255, 0.4);
}

.cover-source-overlay a:hover {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.6);
}

h1,
h2,
h3,
h4 {
  font-family: "Sora", sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #00aaff;
}

.navbar {
  background-color: #131318;
  padding: 0.5rem 2rem; /* Reduced thickness by 20% */
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #1f1f2a;
}

.navbar h1 a {
  color: #00aaff;
  text-decoration: none;
}

.navbar nav a {
  margin-left: 1rem;
  color: #e0e0e0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.navbar nav a:hover {
  color: #00aaff;
}

.content {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

h2,
h3 {
  color: #00aaff;
}

.post-date {
  color: #888;
  font-size: 0.9rem;
}

a {
  color: #7aa6ff; /* softer electric blue/purple tone */
  text-decoration: none;
  border-bottom: 1px dotted rgba(122, 166, 255, 0.3);
  transition: color 0.2s ease, border-color 0.2s ease;
}

a:hover {
  color: #9fd1ff;
  border-bottom-color: rgba(159, 209, 255, 0.7);
  text-decoration: none;
}

h1 a,
h2 a,
h3 a {
  color: #00aaff;
  border-bottom: none;
}

/* --- Enhanced Blockquote Style --- */
blockquote {
  position: relative;
  background: rgba(20, 25, 30, 0.8);
  border-left: 4px solid #00aaff;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  font-size: 17px;
  color: #cfd8dc;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 170, 255, 0.15);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

blockquote::before {
  content: "❝";
  position: absolute;
  top: -10px;
  left: 10px;
  font-size: 2rem;
  color: #00aaff;
  opacity: 0.4;
  padding-top: 5px;
}

blockquote:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 170, 255, 0.25);
}

blockquote p {
  margin: 5px;
}

/* Inline code (`like this`) */
code {
  background-color: rgba(40, 45, 50, 0.8);
  color: #e4e8ef;
  /*color: #00c8ff;*/
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  border: 1px solid rgba(0, 170, 255, 0.2);
}

/* Block code (```multi-line```) */
pre code {
  display: block;
  background: #111318;
  color: #e4e8ef;
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
  border-radius: 12px;
  overflow-x: auto;
  line-height: 1.6;
  font-size: 0.85rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Add slight highlight when hovered */
pre code:hover {
  border-color: rgba(0, 170, 255, 0.3);
  box-shadow: 0 0 20px rgba(0, 170, 255, 0.15);
  background: #14171c;
}

/* Optional: make the scrollbar minimal */
pre code::-webkit-scrollbar {
  height: 6px;
}
pre code::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}
pre code::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   Syntax Highlighting — Monokai-inspired (for dark Unreal-style theme)
   ========================================================================== */
.highlight {
  background: #111318;
  color: #f8f8f2;
}

/* --- Comments --- */
.highlight .cm,  /* Comment.Multiline */
.highlight .cp,  /* Comment.Preproc */
.highlight .c1,  /* Comment.Single */
.highlight .cs {
  /* Comment.Special */
  color: #75715e;
  font-style: italic;
}

/* --- Generic --- */
.highlight .gd {
  color: #f92672;
  background: rgba(255, 0, 0, 0.08);
} /* Deleted */
.highlight .gi {
  color: #a6e22e;
  background: rgba(0, 255, 0, 0.08);
} /* Inserted */
.highlight .ge {
  font-style: italic;
} /* Emphasized */
.highlight .gs {
  font-weight: bold;
} /* Strong */
.highlight .gr,
.highlight .gt {
  color: #f92672;
} /* Error / Traceback */
.highlight .gh,
.highlight .gu {
  color: #66d9ef;
  font-weight: bold;
} /* Headings/Subheadings */
.highlight .go,
.highlight .gp {
  color: #75715e;
} /* Output/Prompt */

/* --- Keywords --- */
.highlight .kc,  /* Keyword.Constant */
.highlight .kd,  /* Keyword.Declaration */
.highlight .kn,  /* Keyword.Namespace */
.highlight .kp,  /* Keyword.Pseudo */
.highlight .kr,  /* Keyword.Reserved */
.highlight .kt {
  /* Keyword.Type */
  color: #66d9ef;
}

/* --- Literals --- */
.highlight .m,   /* Literal.Number */
.highlight .mf,  /* Literal.Number.Float */
.highlight .mh,  /* Literal.Number.Hex */
.highlight .mi,  /* Literal.Number.Integer */
.highlight .mo,  /* Literal.Number.Oct */
.highlight .il {
  /* Literal.Number.Integer.Long */
  color: #ae81ff;
}

/* --- Strings --- */
.highlight .s,   /* Literal.String */
.highlight .sb,  /* Literal.String.Backtick */
.highlight .sc,  /* Literal.String.Char */
.highlight .sd,  /* Literal.String.Doc */
.highlight .s1,  /* Literal.String.Single */
.highlight .s2,  /* Literal.String.Double */
.highlight .se,  /* Literal.String.Escape */
.highlight .sh,  /* Literal.String.Heredoc */
.highlight .si,  /* Literal.String.Interpol */
.highlight .sx,  /* Literal.String.Other */
.highlight .sr,  /* Literal.String.Regex */
.highlight .ss {
  /* Literal.String.Symbol */
  color: #e6db74;
}

/* --- Names --- */
.highlight .na {
  color: #a6e22e;
} /* Attribute */
.highlight .nb {
  color: #66d9ef;
} /* Builtin */
.highlight .nc {
  color: #a6e22e;
  font-weight: bold;
} /* Class */
.highlight .no {
  color: #fd971f;
} /* Constant */
.highlight .nd {
  color: #fd971f;
} /* Decorator */
.highlight .ni {
  color: #66d9ef;
} /* Entity */
.highlight .ne {
  color: #f92672;
  font-weight: bold;
} /* Exception */
.highlight .nf {
  color: #a6e22e;
} /* Function */
.highlight .nl {
  color: #f8f8f2;
} /* Label */
.highlight .nn {
  color: #f8f8f2;
} /* Namespace */
.highlight .nt {
  color: #f92672;
} /* Tag */
.highlight .nv,  /* Variable */
.highlight .vc,  /* Variable.Class */
.highlight .vg,  /* Variable.Global */
.highlight .vi {
  /* Variable.Instance */
  color: #f8f8f2;
}

/* --- Operators, Punctuation, Whitespace --- */
.highlight .ow {
  color: #f92672;
} /* Operator.Word */
.highlight .o {
  color: #f92672;
} /* Operator */
.highlight .p {
  color: #f8f8f2;
} /* Punctuation */
.highlight .w {
  color: #888888;
} /* Whitespace */

/* --- Builtin Pseudo --- */
.highlight .bp {
  color: #66d9ef;
}

.highlight {
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.highlight:hover {
  background: #14171c;
  box-shadow: 0 0 20px rgba(0, 170, 255, 0.15);
}

/* --- Post Detail Styles --- */
.post-layout {
    display: flex;
    justify-content: center;
    padding: 2rem 0 4rem;
}

.post-container {
    max-width: 800px;
    width: 100%;
    background: rgba(20, 25, 30, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.3);
}

.post-header {
    margin-bottom: 2rem;
    text-align: center;
}

.post-meta {
    font-family: "JetBrains Mono", monospace;
    color: #8892b0;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.meta-divider {
    margin: 0 0.5rem;
    color: rgba(255, 255, 255, 0.1);
}

.post-title-hero {
    font-size: 2.5rem;
    margin: 0;
    line-height: 1.2;
    /*background: linear-gradient(135deg, #fff 0%, #00aaff 100%);*/
    background: #00aaff;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 5px 15px rgba(0, 170, 255, 0.15);
}

/* Override back link style inside post footer */
.post-footer {
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
}

/* Adjustments for smaller screens */
@media (max-width: 768px) {
    .post-container {
        padding: 1.5rem;
        border-radius: 0;
        background: transparent;
        border: none;
        backdrop-filter: none;
        box-shadow: none;
    }
    
    .post-title-hero {
        font-size: 2rem;
    }
}


.disclaimer {
  font-size: 0.8rem;
  color: #777;
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid #1f1f2a;
  line-height: 1.5;
}

/* --- About Page Styles --- */
.about-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 3rem;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2a2a35 0%, #1a1a20 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    border: 2px solid rgba(0, 170, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.1);
}

.about-bio {
    font-size: 1.1rem;
    color: #cfd8dc;
    max-width: 600px;
    line-height: 1.8;
}

.connect-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.connect-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
    font-weight: 600;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Override default a tag border */
    width: 100%;
    box-sizing: border-box;
}

.btn-social:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    color: #fff;
    border-color: rgba(0, 170, 255, 0.5);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-resume {
    background: linear-gradient(90deg, rgba(0, 170, 255, 0.1) 0%, rgba(0, 170, 255, 0.2) 100%);
    border-color: rgba(0, 170, 255, 0.3);
    color: #00aaff;
    font-weight: 600;
}

.btn-resume:hover {
    background: linear-gradient(90deg, rgba(0, 170, 255, 0.2) 0%, rgba(0, 170, 255, 0.3) 100%);
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.25);
    text-shadow: 0 0 8px rgba(0, 170, 255, 0.4);
}
