/*
Theme Name: Umbreon Blog
Theme URI: 
Author: Generated by ChatGPT
Version: 1.3.6
Description: Minimal, dark, typography-first WordPress theme inspired by a static dev blog.
License: GNU General Public License v2 or later
Text Domain: umbreonblog
*/

:root{
  --bg: #0b0b0b;
  --text: #e5e5e5;
  --muted: #888888;
  --accent: #d1d1d1;
  --link: #3dd9da;
  --maxw: 792px;
}

html,body{
  height:100%;
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", system-ui, sans-serif;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

a{ color:var(--link); text-decoration:none; transition:color 0.18s ease; }
a:hover{ color:rgba(61,217,218,0.95); text-shadow:0 0 10px rgba(61,217,218,0.08); }

.site{
  max-width:var(--maxw);
  margin:48px auto;
  padding:0 24px;
  position:relative;
}

/* header */
.site-header{
  margin-bottom:40px;
}
.header-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:24px;
}
.site-title{
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  font-size:28px;
  margin:0 0 6px 0;
  letter-spacing:0.02em;
}
.site-sub{
  color:var(--muted);
  font-size:13px;
  margin:0;
}
.github-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  color:var(--text);
  cursor:pointer;
  pointer-events:auto;
  transition:color 0.2s ease, transform 0.2s ease;
  text-decoration:none;
  position:relative;
  z-index:10;
}
.github-icon:hover{
  color:var(--accent);
  transform:scale(1.1);
  text-decoration:none;
}

/* list of posts - left title, right date */
.posts{ list-style:none; padding:0; margin:0; }
.post-item{
  display:grid;
  grid-template-columns: 1fr auto;
  gap:16px;
  align-items:center;
  padding:12px 0;
  border-bottom:1px solid rgba(255,255,255,0.02);
}
.post-item:last-child{ border-bottom:0; }

.post-title{
  font-size:18px;
  margin:0;
  font-weight:600;
  color:var(--text);
  transition:color 0.2s ease;
  position:relative;
}
.post-title a{ color:#c8c8c8 !important; position:relative; display:inline-block; text-decoration: none; }

/* header links stay white */
.site-header a, .site-title, .site-title a, .github-icon{ color:#ffffff !important; }
.site-sub{ color:#888888 !important; }
.site-header a{ transition: color 0.18s ease, opacity 0.15s ease; }
.site-header a:hover, .site-title a:hover{ color:rgba(255,255,255,0.85) !important; text-shadow:none; }
.github-icon:hover{ color:rgba(255,255,255,0.85) !important; }

/* show loading bar only inside the centered left column (title column) */
.post-item > div:first-child{ position:relative; overflow:hidden; padding-bottom:12px; }
.post-item > div:first-child::after{
  content:'';
  position:absolute;
  left:0;
  bottom:0;
  height:3px;
  width:100%;
  /* solid from left, very subtle fade only on the right edge */
  background: linear-gradient(90deg, var(--link) 0%, var(--link) 94%, rgba(61,217,218,0.15) 100%);
  transform:scaleX(0);
  transform-origin:left;
  transition:transform 0.6s cubic-bezier(.2,.9,.2,1), opacity 0.25s ease;
  opacity:0;
  pointer-events:none;
}
.post-item:hover > div:first-child::after{
  transform:scaleX(1);
  opacity:1;
}

.post-date{
  color:var(--muted);
  font-size:13px;
  white-space:nowrap;
  margin-left:8px;
}

/* single post */
.post-single .entry-title{ font-size:28px; margin:10px 0 6px 0; }
.post-single .entry-meta{ color:var(--muted); font-size:13px; margin-bottom:24px; text-align:right; }
.post-single .entry-content{ line-height:1.7; font-size:16px; color:var(--text); }

/* inside an article/post, keep body text white but links teal */
.post-single .entry-content a{ color:var(--link); }

/* code blocks */
pre, code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", "Courier New", monospace;
  background: rgba(255,255,255,0.02);
  padding:10px;
  border-radius:0;
  color:var(--text);
  overflow:auto;
}

/* pagination */
.pagination{ margin-top:32px; text-align:center; }
.pagination .page-numbers{ color:#ffffff; margin:0 6px; transition:color 0.18s ease; }
.pagination .page-numbers:hover{ color:var(--link); }
.pagination .page-numbers.current{ color:var(--link); }

/* responsive */
@media (max-width:640px){
  .post-item{ grid-template-columns:1fr; }
  .post-date{ text-align:left; margin-top:8px; }
  .site{ margin:28px auto; padding:0 18px; }
  .post-item > div:first-child::after{
    width:100%;
    left:0;
    transform:scaleX(0);
  }
}
