/* =====================
   Globalno
   ===================== */
body {
  background-color: #fdf6ec;
  color: #333;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
  padding: 2.5rem 0;
}

/* =====================
   Navbar
   ===================== */
.navbar-brand {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.nav-link { font-size: 0.95rem; }

/* =====================
   Hero
   ===================== */
.hero {
  padding: 3.5rem 0 3rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  margin-bottom: 3rem;
}
.hero-tag {
  display: inline-block;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em;
  background: #d1e8ff; color: #0a3d6b;
  padding: 3px 10px; border-radius: 99px; margin-bottom: 1rem;
}
.hero-title { font-size: 2.2rem; font-weight: 700; line-height: 1.25; margin-bottom: 1rem; }
.hero-sub   { font-size: 1.05rem; color: #555; max-width: 440px; margin-bottom: 1.5rem; }

.author-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 14px; padding: 1.25rem; text-align: center;
}
.author-avatar {
  width: 60px; height: 60px; border-radius: 50%;
  background: #f0ece4; border: 1px solid rgba(0,0,0,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 700; color: #666;
  margin: 0 auto 0.75rem;
}
.author-avatar-lg { width: 72px; height: 72px; font-size: 1.5rem; }
.author-name  { font-size: 0.95rem; font-weight: 600; margin-bottom: 2px; }
.author-role  { font-size: 0.8rem; color: #888; margin-bottom: 1rem; }
.author-stat  { background: #f8f4ef; border-radius: 8px; padding: 8px 4px; text-align: center; }
.stat-num     { display: block; font-size: 1.2rem; font-weight: 700; }
.stat-label   { font-size: 0.7rem; color: #999; }

/* =====================
   Section header
   ===================== */
.section-header {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 1.25rem;
}
.section-title { font-size: 1.2rem; font-weight: 700; }
.section-link  { font-size: 0.85rem; color: #888; text-decoration: none; }
.section-link:hover { color: #333; }

/* =====================
   Post kartice
   ===================== */
.post-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1) !important;
  border-radius: 12px !important;
  padding: 1.1rem 1.25rem;
  text-decoration: none; color: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
  height: 100%;
}
.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1) !important;
  color: inherit;
}
.post-card-featured { flex-direction: row; gap: 1.25rem; align-items: flex-start; }

.post-tag {
  display: inline-block;
  font-size: 0.7rem; font-weight: 700;
  padding: 2px 9px; border-radius: 99px; margin-bottom: 8px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.tag-javascript { background: #faeeda; color: #633806; }
.tag-node\.js   { background: #eaf3de; color: #27500a; }
.tag-css        { background: #eeedfe; color: #3c3489; }
.tag-express    { background: #e1f5ee; color: #085041; }
.tag-alati      { background: #f0ece4; color: #5a4a3a; }
.tag-ostalo     { background: #f0ece4; color: #5a5a56; }

.post-card-title   { font-size: 0.95rem; font-weight: 700; line-height: 1.4; margin-bottom: 6px; }
.post-card-date    { font-size: 0.75rem; color: #aaa; margin-bottom: 6px; }
.post-card-edited  { font-size: 0.7rem; color: #bbb; margin-bottom: 4px; }
.post-card-excerpt { font-size: 0.85rem; color: #666; line-height: 1.6; }

/* =====================
   Page header
   ===================== */
.page-header {
  display: flex; justify-content: space-between;
  align-items: flex-start; margin-bottom: 1.75rem;
  flex-wrap: wrap; gap: 1rem;
}
.page-title    { font-size: 1.6rem; font-weight: 700; margin-bottom: 4px; }
.page-subtitle { font-size: 0.9rem; color: #888; }

.empty-state { text-align: center; padding: 3rem 1rem; color: #888; }

/* =====================
   Pojedinačni post
   ===================== */
.post-article { max-width: 720px; }
.back-link { display: inline-block; font-size: 0.85rem; color: #888; text-decoration: none; margin-bottom: 1rem; }
.back-link:hover { color: #333; }

.post-title { font-size: 1.8rem; font-weight: 700; line-height: 1.3; margin: 0.5rem 0 0.75rem; }
.post-meta  { font-size: 0.8rem; color: #aaa; display: flex; gap: 6px; flex-wrap: wrap; }

.post-body {
  font-size: 1rem; line-height: 1.85;
  border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 2rem; margin-bottom: 2.5rem;
}
.post-body p  { margin-bottom: 1.25rem; }
.post-body h2 { font-size: 1.3rem; font-weight: 700; margin: 2rem 0 0.75rem; }
.post-body h3 { font-size: 1.1rem; font-weight: 700; margin: 1.5rem 0 0.5rem; }
.post-body code {
  font-family: 'Fira Code', monospace; font-size: 0.875rem;
  background: #f8f4ef; padding: 1px 5px; border-radius: 4px;
}
.post-body pre {
  background: #f8f4ef; border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px; padding: 1.25rem; overflow-x: auto; margin: 1.5rem 0;
}
.post-body pre code { background: none; padding: 0; }
.post-footer  { border-top: 1px solid rgba(0,0,0,0.08); padding-top: 1.5rem; }
.delete-form  { display: inline; }

/* =====================
   Forme
   ===================== */
.form-page   { max-width: 660px; }
.form-header { margin-bottom: 1.75rem; }

/* =====================
   About
   ===================== */
.about-page  { max-width: 620px; }
.about-hero  { text-align: center; margin-bottom: 2.5rem; }
.about-role  { font-size: 1rem; color: #888; margin-top: 4px; }
.about-body  { font-size: 1rem; line-height: 1.85; color: #555; margin-bottom: 2rem; }
.about-body p + p { margin-top: 1rem; }

/* =====================
   Kontakt
   ===================== */
.contact-card {
  display: flex; align-items: center; gap: 1rem;
  background: #fff; border: 1px solid rgba(0,0,0,0.1);
  border-radius: 12px; padding: 1rem 1.25rem;
  text-decoration: none; color: inherit;
  transition: border-color 0.15s; margin-bottom: 10px;
}
.contact-card:hover { border-color: rgba(0,0,0,0.25); color: inherit; }
.contact-card-icon {
  width: 42px; height: 42px; border-radius: 50%;
  background: #f8f4ef;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; color: #888; flex-shrink: 0;
}
.contact-card-title { font-size: 0.9rem; font-weight: 600; }
.contact-card-sub   { font-size: 0.8rem; color: #888; }

/* =====================
   Footer
   ===================== */
.footer-main {
  background: #333; color: #ccc;
  padding: 1.25rem 0; margin-top: auto; font-size: 0.85rem;
}
.footer-link { color: #ccc; text-decoration: none; }
.footer-link:hover { color: #fff; }

/* =====================
   404 stranica
   ===================== */
.not-found-code {
  font-size: 6rem;
  font-weight: 700;
  color: #e0dbd3;
  line-height: 1;
  margin-bottom: 1rem;
}
.not-found-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.not-found-sub   { color: #888; font-size: 1rem; }
