/* ─── RESET & VARS ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }


:root {
  --bg:        #0d1117;
  --bg2:       #161b22;
  --bg3:       #1c2128;
  --border:    #30363d;
  --text:      #e6edf3;
  --text-muted:#8b949e;
  --accent:    #58a6ff;
  --accent2:   #3fb950;
  --danger:    #f85149;
  --warning:   #d29922;
  --purple:    #bc8cff;
  --font-mono: 'JetBrains Mono', monospace;
  --font-sans: 'Inter', sans-serif;
  --radius:    8px;
  --shadow:    0 4px 24px rgba(0,0,0,0.4);
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }
body { 
  background: #0d1117 !important; 
  color: #e6edf3 !important; 
  font-family: 'Inter', sans-serif !important; 
  line-height: 1.7; 
  font-size: 16px;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: #79c0ff; }

img { max-width: 100%; display: block; }
code { font-family: var(--font-mono); font-size: 0.875em; }

/* ─── CONTAINER ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ─── MAIN CONTENT ─── */
.main-content { min-height: calc(100vh - 200px); }

/* ─── NAVBAR ─── */
.navbar {
  background: rgba(13,17,23,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  padding: 0;
}
.nav-inner { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; font-size: 1.3rem; font-weight: 700; color: var(--text); text-decoration: none; transition: color var(--transition); }
.brand:hover { color: var(--accent); }
.brand-icon { color: var(--accent); font-family: var(--font-mono); font-size: 1.4rem; }
.brand-name { font-weight: 700; color: var(--text); }
.accent { color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.nav-link { color: var(--text-muted); font-size: 0.9rem; text-decoration: none; padding: 8px 12px; border-radius: var(--radius); transition: all var(--transition); position: relative; }
.nav-link:hover { color: var(--text); background: rgba(88,166,255,0.1); transform: translateY(-1px); }
.nav-link.active { color: var(--accent); background: rgba(88,166,255,0.15); }
.nav-link.active::after {
  content: '';
  position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; background: var(--accent); border-radius: 50%;
}

.search-form { display: flex; gap: 4px; }
.search-form input {
  background: var(--bg2); border: 1px solid var(--border);
  color: var(--text); padding: 7px 14px; border-radius: var(--radius);
  font-size: 0.875rem; width: 220px; outline: none;
  transition: border-color var(--transition);
}
.search-form input:focus { border-color: var(--accent); }
.search-form button {
  background: var(--bg2); border: 1px solid var(--border);
  color: var(--text-muted); padding: 7px 12px; border-radius: var(--radius);
  cursor: pointer; transition: all var(--transition);
}
.search-form button:hover { border-color: var(--accent); color: var(--accent); }

.nav-toggle { 
  display: none; 
  background: none; 
  border: none; 
  color: var(--text); 
  font-size: 1.2rem; 
  cursor: pointer; 
  padding: 8px; 
  border-radius: var(--radius);
  transition: all var(--transition);
}
.nav-toggle:hover { color: var(--accent); background: rgba(88,166,255,0.1); }
.nav-toggle.active { color: var(--accent); }

.hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  margin: 4px 0;
  transition: all 0.3s ease;
}

.nav-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* ─── HERO ─── */
.hero {
  background: linear-gradient(135deg, var(--bg) 0%, #0f2027 50%, #0d1117 100%);
  border-bottom: 1px solid var(--border);
  padding: 80px 0;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(88,166,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero-badge {
  display: inline-block; background: rgba(88,166,255,0.1);
  border: 1px solid rgba(88,166,255,0.3); color: var(--accent);
  padding: 4px 14px; border-radius: 20px; font-size: 0.8rem;
  margin-bottom: 16px; font-family: var(--font-mono);
}
.hero-title { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700; line-height: 1.2; margin-bottom: 16px; }
.hero-summary { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin-bottom: 24px; }
.hero-meta { display: flex; gap: 20px; margin-bottom: 28px; font-size: 0.875rem; color: var(--text-muted); flex-wrap: wrap; }
.hero-meta .tag { font-size: 0.8rem; }

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-block; background: var(--accent); color: #fff;
  padding: 10px 24px; border-radius: var(--radius); font-weight: 600;
  border: none; cursor: pointer; transition: all var(--transition);
}
.btn-primary:hover { background: #79c0ff; color: #0d1117; transform: translateY(-1px); }

.btn-outline {
  display: inline-block; border: 1px solid var(--border); color: var(--text-muted);
  padding: 8px 18px; border-radius: var(--radius); font-size: 0.875rem;
  cursor: pointer; transition: all var(--transition); background: transparent;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ─── TAGS ─── */
.tag {
  display: inline-block; background: rgba(88,166,255,0.1);
  border: 1px solid rgba(88,166,255,0.25); color: var(--accent);
  padding: 4px 12px; border-radius: 20px; font-size: 0.8rem;
  transition: all var(--transition);
}
.tag:hover { background: rgba(88,166,255,0.2); }
.tag-sm { padding: 2px 10px; font-size: 0.75rem; }

/* Source badges */
.source-badge {
  display: inline-block; padding: 2px 10px; border-radius: 4px;
  font-size: 0.7rem; font-family: var(--font-mono); font-weight: 600; text-transform: uppercase;
}
.source-github { background: rgba(63,185,80,0.15); color: var(--accent2); border: 1px solid rgba(63,185,80,0.3); }
.source-stackoverflow { background: rgba(210,153,34,0.15); color: var(--warning); border: 1px solid rgba(210,153,34,0.3); }
.source-reddit { background: rgba(248,81,73,0.15); color: var(--danger); border: 1px solid rgba(248,81,73,0.3); }
.source-leetcode { background: rgba(188,140,255,0.15); color: var(--purple); border: 1px solid rgba(188,140,255,0.3); }
.source-ai_generated { background: rgba(88,166,255,0.1); color: var(--accent); border: 1px solid rgba(88,166,255,0.25); }

/* ─── SECTIONS ─── */
.section { padding: 60px 0; }
.section-dark { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-header { display: flex; align-items: center; gap: 16px; margin-bottom: 36px; }
.section-header h2 { font-size: 1.5rem; }
.section-line { flex: 1; height: 1px; background: var(--border); }

/* ─── POSTS GRID ─── */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }

.post-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: all var(--transition); position: relative; overflow: hidden;
}
.post-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--purple));
  transform: scaleX(0); transition: transform var(--transition); transform-origin: left;
}
.post-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow); }
.post-card:hover::before { transform: scaleX(1); }

.post-card-top { flex: 1; }
.post-card-meta { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; align-items: center; }
.post-card-title { font-size: 1.05rem; font-weight: 600; margin-bottom: 10px; line-height: 1.4; }
.post-card-title a { color: var(--text); }
.post-card-title a:hover { color: var(--accent); }
.post-card-summary { color: var(--text-muted); font-size: 0.875rem; line-height: 1.6; }

.post-card-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.post-stats { display: flex; gap: 14px; font-size: 0.8rem; color: var(--text-muted); }
.post-stats span { display: flex; align-items: center; gap: 4px; }
.read-more { color: var(--accent); font-size: 0.875rem; font-weight: 600; }
.read-more:hover { color: #79c0ff; }

/* ─── POPULAR LIST ─── */
.popular-list { display: flex; flex-direction: column; gap: 12px; }
.popular-item { display: flex; align-items: center; gap: 16px; padding: 14px 16px; background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); transition: all var(--transition); }
.popular-item:hover { border-color: var(--accent); transform: translateX(4px); }
.popular-num { font-size: 1.5rem; font-weight: 700; color: var(--border); font-family: var(--font-mono); min-width: 32px; }
.popular-info { flex: 1; }
.popular-title { display: block; font-size: 0.9rem; font-weight: 500; margin-bottom: 4px; }
.popular-views { font-size: 0.8rem; color: var(--text-muted); }

/* ─── POST LAYOUT ─── */
.post-layout { display: grid; grid-template-columns: 1fr 300px; gap: 48px; padding-top: 48px; padding-bottom: 48px; align-items: start; }

.post-article { background: var(--bg); }
.post-header { margin-bottom: 40px; }
.post-header-meta { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.post-title { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; line-height: 1.3; margin-bottom: 16px; color: var(--text); }
.post-summary { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 20px; line-height: 1.7; }
.post-meta-row { display: flex; gap: 20px; font-size: 0.875rem; color: var(--text-muted); flex-wrap: wrap; margin-bottom: 16px; }
.post-meta-row span { display: flex; align-items: center; gap: 6px; }
.post-tags { display: flex; gap: 8px; flex-wrap: wrap; }

/* ─── POST CONTENT ─── */
.post-content { font-size: 1rem; line-height: 1.85; }
.post-content h2 { font-size: 1.5rem; color: var(--text); margin: 40px 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.post-content h3 { font-size: 1.2rem; color: var(--accent); margin: 28px 0 12px; }
.post-content p { margin-bottom: 20px; }
.post-content ul, .post-content ol { margin: 16px 0 20px 24px; }
.post-content li { margin-bottom: 8px; }
.post-content blockquote { border-left: 3px solid var(--accent); padding: 12px 20px; background: var(--bg2); margin: 24px 0; border-radius: 0 var(--radius) var(--radius) 0; color: var(--text-muted); font-style: italic; }
.post-content a { color: var(--accent); border-bottom: 1px dashed rgba(88,166,255,0.4); }
.post-content a:hover { border-bottom-style: solid; }
.post-content strong { color: var(--text); font-weight: 600; }

/* Code blocks */
.post-content pre {
  background: #010409 !important; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; margin: 24px 0;
  overflow-x: auto; position: relative; font-family: var(--font-mono);
}
.post-content pre::before {
  content: attr(data-lang);
  position: absolute; top: 8px; right: 12px;
  font-size: 0.7rem; color: var(--text-muted); font-family: var(--font-mono);
  text-transform: uppercase;
}
.post-content code {
  background: rgba(88,166,255,0.1); color: var(--accent);
  padding: 2px 6px; border-radius: 4px; font-family: var(--font-mono); font-size: 0.9em;
}
.post-content pre code { 
  background: none; 
  color: #e6edf3; 
  padding: 0; 
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Inline code improvements */
.post-content p > code, .post-content li > code {
  background: rgba(88,166,255,0.15);
  border: 1px solid rgba(88,166,255,0.3);
  color: var(--accent);
}

/* Pygments Syntax Highlighting - GitHub Dark Theme */
.highlight { background: #010409 !important; border-radius: var(--radius); }
.highlight pre { 
  background: #010409 !important; 
  margin: 0; 
  padding: 0;
  border: none;
}

/* Pygments token colors */
.highlight .hll { background-color: #404040 }
.highlight .c { color: #999999; font-style: italic } /* Comment */
.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
.highlight .g { color: #d1d1d1 } /* Generic */
.highlight .k { color: #66d9ef } /* Keyword */
.highlight .l { color: #ae81ff } /* Literal */
.highlight .n { color: #f8f8f2 } /* Name */
.highlight .o { color: #f92672 } /* Operator */
.highlight .p { color: #f8f8f2 } /* Punctuation */
.highlight .cm { color: #999999; font-style: italic } /* Comment.Multiline */
.highlight .cp { color: #999999; font-style: italic } /* Comment.Preproc */
.highlight .c1 { color: #999999; font-style: italic } /* Comment.Single */
.highlight .cs { color: #999999; font-style: italic } /* Comment.Special */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .kc { color: #66d9ef } /* Keyword.Constant */
.highlight .kd { color: #66d9ef } /* Keyword.Declaration */
.highlight .kn { color: #f92672 } /* Keyword.Namespace */
.highlight .kp { color: #66d9ef } /* Keyword.Pseudo */
.highlight .kr { color: #66d9ef } /* Keyword.Reserved */
.highlight .kt { color: #66d9ef } /* Keyword.Type */
.highlight .ld { color: #e6db74 } /* Literal.Date */
.highlight .m { color: #ae81ff } /* Literal.Number */
.highlight .s { color: #e6db74 } /* Literal.String */
.highlight .na { color: #a6e22e } /* Name.Attribute */
.highlight .nb { color: #f8f8f2 } /* Name.Builtin */
.highlight .nc { color: #a6e22e } /* Name.Class */
.highlight .no { color: #66d9ef } /* Name.Constant */
.highlight .nd { color: #a6e22e } /* Name.Decorator */
.highlight .ni { color: #f8f8f2 } /* Name.Entity */
.highlight .ne { color: #a6e22e } /* Name.Exception */
.highlight .nf { color: #a6e22e } /* Name.Function */
.highlight .nl { color: #f8f8f2 } /* Name.Label */
.highlight .nn { color: #f8f8f2 } /* Name.Namespace */
.highlight .nx { color: #a6e22e } /* Name.Other */
.highlight .py { color: #f8f8f2 } /* Name.Property */
.highlight .nt { color: #f92672 } /* Name.Tag */
.highlight .nv { color: #f8f8f2 } /* Name.Variable */
.highlight .ow { color: #f92672 } /* Operator.Word */
.highlight .w { color: #f8f8f2 } /* Text.Whitespace */
.highlight .mf { color: #ae81ff } /* Literal.Number.Float */
.highlight .mh { color: #ae81ff } /* Literal.Number.Hex */
.highlight .mi { color: #ae81ff } /* Literal.Number.Integer */
.highlight .mo { color: #ae81ff } /* Literal.Number.Oct */
.highlight .sb { color: #e6db74 } /* Literal.String.Backtick */
.highlight .sc { color: #e6db74 } /* Literal.String.Char */
.highlight .sd { color: #e6db74 } /* Literal.String.Doc */
.highlight .s2 { color: #e6db74 } /* Literal.String.Double */
.highlight .se { color: #ae81ff } /* Literal.String.Escape */
.highlight .sh { color: #e6db74 } /* Literal.String.Heredoc */
.highlight .si { color: #e6db74 } /* Literal.String.Interpol */
.highlight .sx { color: #e6db74 } /* Literal.String.Other */
.highlight .sr { color: #e6db74 } /* Literal.String.Regex */
.highlight .s1 { color: #e6db74 } /* Literal.String.Single */
.highlight .ss { color: #e6db74 } /* Literal.String.Symbol */
.highlight .bp { color: #f8f8f2 } /* Name.Builtin.Pseudo */
.highlight .vc { color: #f8f8f2 } /* Name.Variable.Class */
.highlight .vg { color: #f8f8f2 } /* Name.Variable.Global */
.highlight .vi { color: #f8f8f2 } /* Name.Variable.Instance */
.highlight .il { color: #ae81ff } /* Literal.Number.Integer.Long */

/* ─── ABOUT PAGE ─── */
.page-header {
  text-align: center;
  margin-bottom: 60px;
  padding: 60px 0;
  background: linear-gradient(135deg, var(--bg) 0%, #0f2027 50%, #0d1117 100%);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.page-header h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text);
}

.page-summary {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.about-content {
  max-width: 1000px;
  margin: 0 auto;
}

.about-section {
  margin-bottom: 80px;
}

.about-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-section p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.feature-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  transition: all var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
}

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}

.feature-card p {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-top: 32px;
}

.tech-category h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--accent);
}

.tech-category ul {
  list-style: none;
  padding: 0;
}

.tech-category li {
  padding: 8px 0;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.tech-category li:last-child {
  border-bottom: none;
}

.team-content {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  margin-top: 32px;
}

.developer-profile {
  margin: 32px 0;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
  padding: 32px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.profile-avatar {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  flex-shrink: 0;
  overflow: hidden;
  border: 3px solid var(--border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-avatar:hover .profile-img {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(88,166,255,0.4);
}

.profile-info h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.profile-title {
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 600;
}

.profile-bio {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

.contact-info {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-top: 24px;
}

.contact-info h4 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.contact-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.contact-item div {
  flex: 1;
  min-width: 0; /* Allows text to break properly */
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--accent);
  margin-top: 4px;
  flex-shrink: 0;
}

.contact-item strong {
  color: var(--text);
  font-weight: 600;
}

.contact-item a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
  word-wrap: break-word;
  overflow-wrap: break-word;
  display: inline-block;
  max-width: 100%;
}

.contact-item a:hover {
  color: #79c0ff;
  text-decoration: underline;
}

.team-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  margin-top: 32px;
}

.value-item h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.value-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

.contact-links {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* ─── REACTION BAR ─── */
.reaction-bar { display: flex; align-items: center; gap: 12px; padding: 20px 0; border-top: 1px solid var(--border); margin-top: 40px; }
.reaction-label { color: var(--text-muted); font-size: 0.9rem; }
.reaction-btn {
  display: flex; align-items: center; gap: 8px; padding: 10px 20px;
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text-muted); cursor: pointer; transition: all var(--transition); font-size: 0.9rem;
}
.reaction-btn:hover { border-color: var(--accent2); color: var(--accent2); }
.reaction-btn.active { background: rgba(63,185,80,0.1); border-color: var(--accent2); color: var(--accent2); }
.reaction-btn.dislike-btn:hover { border-color: var(--danger); color: var(--danger); }
.reaction-btn.dislike-active { background: rgba(248,81,73,0.1); border-color: var(--danger); color: var(--danger); }

/* ─── SHARE BAR ─── */
.share-bar { display: flex; align-items: center; gap: 10px; padding: 16px 0; font-size: 0.875rem; color: var(--text-muted); }
.share-btn { padding: 6px 14px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg2); color: var(--text-muted); cursor: pointer; font-size: 0.8rem; transition: all var(--transition); display: inline-flex; align-items: center; gap: 6px; }
.share-btn:hover { border-color: var(--accent); color: var(--accent); }
.share-twitter:hover { border-color: #1da1f2; color: #1da1f2; }
.share-linkedin:hover { border-color: #0077b5; color: #0077b5; }

/* ─── SIDEBAR ─── */
.post-sidebar { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 20px; }
.sidebar-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; transition: all var(--transition); }
.sidebar-card:hover { border-color: var(--accent); }
.sidebar-card h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 14px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.sidebar-card p { color: var(--text-muted); font-size: 0.875rem; line-height: 1.5; margin-bottom: 12px; }

/* TOC */
#toc { display: flex; flex-direction: column; gap: 4px; }
#toc a { font-size: 0.8rem; color: var(--text-muted); padding: 4px 0; border-left: 2px solid transparent; padding-left: 10px; transition: all var(--transition); }
#toc a.toc-h3 { padding-left: 20px; font-size: 0.75rem; }
#toc a:hover, #toc a.active { border-left-color: var(--accent); color: var(--accent); }

/* Related posts */
.related-post { display: flex; justify-content: space-between; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--border); gap: 10px; color: var(--text); }
.related-post:last-child { border-bottom: none; }
.related-post:hover .related-title { color: var(--accent); }
.related-title { font-size: 0.8rem; line-height: 1.4; }
.related-meta { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; }

/* ─── COMMENTS ─── */
.comments-section { background: var(--bg2); border-top: 1px solid var(--border); padding: 60px 0; margin-top: 60px; }
.comments-inner { max-width: 800px; }
.comments-inner h2 { font-size: 1.3rem; margin-bottom: 32px; color: var(--text); }

.comment { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; transition: all var(--transition); }
.comment:hover { border-color: var(--accent); }
.comment-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.comment-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--purple)); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; color: #fff; flex-shrink: 0; }
.comment-header strong { color: var(--text); }
.comment-date { font-size: 0.75rem; color: var(--text-muted); display: block; }
.comment-body { font-size: 0.9rem; line-height: 1.6; color: var(--text); }
.no-comments { color: var(--text-muted); margin-bottom: 32px; text-align: center; padding: 40px; background: var(--bg3); border-radius: var(--radius); border: 1px solid var(--border); }

.comment-form-wrap { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--border); }
.comment-form-wrap h3 { margin-bottom: 24px; font-size: 1.1rem; color: var(--text); }
.comment-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.875rem; color: var(--text-muted); font-weight: 500; }
.form-group input, .form-group textarea {
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text); padding: 10px 14px; border-radius: var(--radius);
  font-family: var(--font-sans); font-size: 0.9rem; outline: none;
  transition: border-color var(--transition); resize: vertical;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent); }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }

/* ─── MISC ─── */
.page-header { padding: 48px 0 32px; }
.page-header h1 { font-size: 2rem; margin-bottom: 16px; color: var(--text); }
.page-header p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 24px; }
.search-form-lg { display: flex; gap: 10px; margin-top: 16px; }
.search-form-lg input { flex: 1; background: var(--bg2); border: 1px solid var(--border); color: var(--text); padding: 12px 16px; border-radius: var(--radius); font-size: 1rem; outline: none; }
.search-form-lg input:focus { border-color: var(--accent); }
.search-form-lg button { background: var(--accent); color: white; border: none; padding: 12px 24px; border-radius: var(--radius); font-weight: 600; cursor: pointer; transition: all var(--transition); }
.search-form-lg button:hover { background: #79c0ff; }
.result-count { color: var(--text-muted); margin-bottom: 24px; font-size: 0.9rem; }

.empty-state { 
  text-align: center; 
  padding: 80px 20px; 
  grid-column: 1 / -1; 
  background: var(--bg2); 
  border: 1px solid var(--border); 
  border-radius: var(--radius); 
  margin: 40px 0;
}
.empty-state i { font-size: 3rem; color: var(--border); margin-bottom: 16px; display: block; }
.empty-state h3 { font-size: 1.2rem; margin-bottom: 8px; color: var(--text); }
.empty-state p { color: var(--text-muted); margin-bottom: 24px; line-height: 1.6; }
.empty-state code { background: var(--bg3); padding: 4px 10px; border-radius: 4px; font-family: var(--font-mono); font-size: 0.85rem; color: var(--accent); }

.pagination { 
  display: flex; 
  justify-content: center; 
  align-items: center; 
  gap: 16px; 
  margin-top: 40px; 
  padding: 20px 0;
}
.pagination span { 
  color: var(--text-muted); 
  font-size: 0.9rem; 
  padding: 8px 16px; 
  background: var(--bg2); 
  border-radius: var(--radius); 
  border: 1px solid var(--border);
}

/* ─── LOADING & ANIMATIONS ─── */
.loading { 
  text-align: center; 
  padding: 40px; 
  color: var(--text-muted); 
}
.loading::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top: 2px solid var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 10px;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ─── NOTIFICATION STYLES ─── */
.notification {
  position: fixed;
  top: 80px;
  right: 20px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  max-width: 300px;
  z-index: 1000;
  box-shadow: var(--shadow);
  transform: translateX(400px);
  transition: transform var(--transition);
}
.notification.show {
  transform: translateX(0);
}
.notification.success { border-color: var(--accent2); background: rgba(63,185,80,0.1); }
.notification.error { border-color: var(--danger); background: rgba(248,81,73,0.1); }
.notification.info { border-color: var(--accent); background: rgba(88,166,255,0.1); }

/* ─── FOOTER ─── */
.footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 60px 0 0; margin-top: 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { color: var(--text-muted); font-size: 0.875rem; max-width: 280px; }
.footer-links h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 16px; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--text-muted); font-size: 0.875rem; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); text-align: center; padding: 20px; font-size: 0.8rem; color: var(--text-muted); }
.footer-bottom a { color: var(--text-muted); }

/* ─── ANIMATIONS ─── */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .search-form { display: none; }
  .nav-toggle { display: block; }
  .nav-right { 
    display: none; 
    position: absolute; 
    top: 64px; 
    left: 0; 
    right: 0; 
    background: var(--bg2); 
    border: 1px solid var(--border); 
    border-top: none; 
    padding: 16px; 
    flex-direction: column; 
    gap: 12px;
    box-shadow: var(--shadow);
    animation: slideDown 0.3s ease-out;
  }
  .nav-right.active { display: flex; }
  .nav-link { 
    padding: 12px 16px; 
    font-size: 1rem;
    border-radius: var(--radius);
    text-align: center;
  }
  .nav-link.active::after {
    display: none;
  }
  .footer-inner { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0; }
  .hero-title { font-size: 2rem; }
  .page-header { padding: 32px 0; }
  .page-header h1 { font-size: 1.5rem; }
  .search-form-lg { flex-direction: column; }
  .search-form-lg input { margin-bottom: 10px; }
  .notification { right: 10px; left: 10px; max-width: none; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero { padding: 32px 0; }
  .hero-title { font-size: 1.5rem; }
  .post-card { padding: 16px; }
  .section { padding: 40px 0; }
  .page-header { padding: 24px 0; }
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ─── SELECTION ─── */
::selection { background: rgba(88,166,255,0.3); }
