/* ═══════════════════════════════════════════
   PONAS IEVAUSKAS BLOG — Dark Theme
   ═══════════════════════════════════════════ */

:root {
  --bg: #0a0a0f;
  --bg-card: #12121a;
  --bg-hover: #1a1a28;
  --border: #1e1e30;
  --text: #e0e0f0;
  --text-muted: #8888aa;
  --accent: #7c5cfc;
  --accent-glow: rgba(124, 92, 252, 0.15);
  --green: #4ade80;
  --pink: #f472b6;
  --cyan: #22d3ee;
  --radius: 12px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; transition: 0.2s; }
a:hover { color: #a78bfa; }

/* ─── Navigation ─── */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

nav .logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}
nav .logo span { color: var(--accent); }

nav .links { display: flex; gap: 1.5rem; }
nav .links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
}
nav .links a:hover { color: var(--text); }
nav .links a.active { color: var(--accent); }
nav .links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* ─── Main Container ─── */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* ─── Hero ─── */
.hero {
  text-align: center;
  padding: 4rem 0 3rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--accent), var(--pink), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero .status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.hero .status .dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ─── Cards ─── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 30px var(--accent-glow);
  transform: translateY(-2px);
}

.card h2 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.card h2 a { color: var(--text); }
.card h2 a:hover { color: var(--accent); }

.card .meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.card .tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  background: var(--accent-glow);
  color: var(--accent);
  border-radius: 100px;
  font-weight: 500;
}

.card p { color: var(--text-muted); font-size: 0.95rem; }

/* ─── Section Titles ─── */
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-title::before {
  content: '✦';
  color: var(--accent);
  font-size: 1rem;
}

/* ─── Blog Post Page ─── */
.post-header {
  margin-bottom: 2rem;
}
.post-header h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
}
.post-header .meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  gap: 1rem;
}

.post-content {
  font-size: 1.05rem;
  color: #d0d0e0;
}

.post-content h2 { font-size: 1.5rem; margin: 2rem 0 1rem; color: var(--text); }
.post-content h3 { font-size: 1.2rem; margin: 1.5rem 0 0.75rem; color: var(--text); }
.post-content p { margin-bottom: 1.2rem; }
.post-content ul, .post-content ol { margin: 1rem 0; padding-left: 1.5rem; }
.post-content li { margin-bottom: 0.4rem; }
.post-content code {
  background: var(--bg-hover);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  border: 1px solid var(--border);
}
.post-content pre {
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}
.post-content pre code {
  background: none;
  border: none;
  padding: 0;
}
.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.5rem 1rem;
  margin: 1.5rem 0;
  background: var(--accent-glow);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-muted);
}
.post-content img {
  max-width: 100%;
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

/* ─── Projects Grid ─── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.project-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 30px var(--accent-glow);
  transform: translateY(-2px);
}

.project-card .icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.project-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.project-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; }
.project-card .tech {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

/* ─── About ─── */
.about-section {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.about-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--pink));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  flex-shrink: 0;
  border: 2px solid var(--border);
}

.about-text h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.about-text p { color: var(--text-muted); margin-bottom: 1rem; }

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}
.social-links a {
  padding: 0.4rem 1rem;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: 0.2s;
}
.social-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-glow);
}

/* ─── Footer ─── */
footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
  max-width: 800px;
  margin: 0 auto;
}

/* ─── 404 ─── */
.not-found {
  text-align: center;
  padding: 6rem 0;
}
.not-found h1 {
  font-size: 5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.not-found p {
  color: var(--text-muted);
  margin: 1rem 0 2rem;
}
.not-found a {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: var(--accent);
  color: white;
  border-radius: 100px;
  font-weight: 600;
}

/* ─── Responsive ─── */
@media (max-width: 600px) {
  nav { flex-direction: column; gap: 1rem; padding: 1rem; }
  .hero h1 { font-size: 2rem; }
  .container { padding: 2rem 1.25rem; }
  .about-section { flex-direction: column; align-items: center; text-align: center; }
  .projects-grid { grid-template-columns: 1fr; }
}
