/*
Theme Name: Keliauk Laisvai
Theme URI: https://keliaujamelaisvai.lt
Description: Keliauk Laisvai blog tema
Version: 2.0
Author: Keliauk Laisvai
*/

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600&display=swap');

:root {
  --bg: oklch(0.985 0.012 85);
  --fg: oklch(0.18 0.025 50);
  --card: oklch(0.995 0.008 85);
  --primary: oklch(0.22 0.035 55);
  --primary-fg: oklch(0.985 0.012 85);
  --muted: oklch(0.45 0.03 60);
  --accent: oklch(0.68 0.14 55);
  --border: oklch(0.88 0.02 75);
  --dark: oklch(0.18 0.025 50);
}

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

html { height: 100%; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 { font-family: 'DM Serif Display', serif; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── NAV ── */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.4s, border-color 0.4s;
}
.site-header.scrolled {
  background: oklch(0.985 0.012 85 / 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1rem;
  font-weight: 600;
}
.nav-logo-icon {
  width: 2.25rem;
  height: 2.25rem;
  background: var(--primary);
  color: var(--primary-fg);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: oklch(0.18 0.025 50 / 0.65);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--fg); }
.nav-cta {
  background: var(--primary) !important;
  color: var(--primary-fg) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: transform 0.2s;
}
.nav-cta:hover { transform: scale(1.03); }

/* ── PAGE WRAPPER ── */
.page-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.page-content {
  flex: 1;
  padding-top: 7rem;
  padding-bottom: 4rem;
}

/* ── BADGE ── */
.blog-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  background: oklch(0.995 0.008 85 / 0.6);
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.blog-badge-dot {
  width: 0.375rem;
  height: 0.375rem;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── BLOG LIST ── */
.blog-header {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem 2.5rem;
}
.blog-header h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.blog-header h1 em {
  font-style: italic;
  color: var(--accent);
}
.blog-header p {
  margin-top: 1.25rem;
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--muted);
}

/* ── POSTS GRID ── */
.posts-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px)  { .posts-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .posts-grid { grid-template-columns: repeat(3,1fr); } }

/* ── POST CARD ── */
.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--card);
  transition: transform 0.3s, box-shadow 0.3s;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -10px oklch(0.18 0.025 50 / 0.1);
}
.post-card-image {
  position: relative;
  height: 13rem;
  overflow: hidden;
}
.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}
.post-card:hover .post-card-image img { transform: scale(1.05); }
.post-card-cat {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: oklch(0.985 0.012 85 / 0.9);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  backdrop-filter: blur(4px);
}
.post-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.post-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.3;
}
.post-card-excerpt {
  margin-top: 0.5rem;
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--muted);
}
.post-card-meta {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
}
.post-card-read {
  font-weight: 500;
  color: var(--fg);
  transition: color 0.2s;
}
.post-card-read:hover { color: var(--accent); }

/* ── SINGLE POST ── */
.single-wrap {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.single-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 2rem;
  transition: color 0.2s;
}
.single-back:hover { color: var(--fg); }
.single-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
}
.single-date {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.single-content {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.single-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--fg);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.single-content p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.single-content img {
  width: 100%;
  border-radius: 1rem;
  margin: 2rem 0;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--dark);
  color: oklch(0.95 0.012 85);
  padding: 5rem 1.5rem 3rem;
  width: 100%;
}
.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  gap: 3.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3,1fr); } }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1rem;
  font-weight: 600;
}
.footer-logo-icon {
  width: 2.25rem;
  height: 2.25rem;
  background: var(--accent);
  color: oklch(0.99 0.01 85);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.footer-desc {
  margin-top: 1.25rem;
  font-size: 1rem;
  line-height: 1.75;
  color: oklch(0.95 0.012 85 / 0.65);
}
.footer-label {
  font-size: 0.75rem;
  color: oklch(0.95 0.012 85 / 0.55);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  margin-bottom: 1rem;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-links a {
  font-size: 0.875rem;
  color: oklch(0.95 0.012 85 / 0.75);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1280px;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid oklch(1 0 0 / 0.1);
  font-size: 0.75rem;
  color: oklch(0.95 0.012 85 / 0.45);
}

/* ── MOBILE MENU ── */
.mobile-menu-btn {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: oklch(0.985 0.012 85 / 0.7);
  cursor: pointer;
  backdrop-filter: blur(4px);
}
.mobile-menu {
  border-top: 1px solid var(--border);
  background: oklch(0.985 0.012 85 / 0.95);
  backdrop-filter: blur(16px);
}
.mobile-menu ul {
  list-style: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.mobile-menu ul li a {
  display: block;
  padding: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 0.5rem;
}
.mobile-menu ul li a:hover {
  background: oklch(0.94 0.02 80);
}
@media (max-width: 767px) {
  .nav-desktop { display: none; }
  .mobile-menu-btn { display: grid; }
  .nav-inner { padding: 1rem 1.25rem; }
}
