@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
 
:root {
  --bg:          #05060c;
  --bg-soft:     rgba(10,12,20,.86);
  --card:        rgba(255,255,255,.04);
  --card2:       rgba(255,255,255,.035);
  --border:      rgba(255,255,255,.10);
  --text:        rgba(255,255,255,.88);
  --text-muted:  rgba(255,255,255,.55);
  --accent1:     #6d5dfc;
  --accent2:     #00d4ff;
  --accent3:     #ff4fa3;
  --grad:        linear-gradient(135deg, rgba(120,80,255,.95), rgba(40,210,255,.70));
  --grad-text:   linear-gradient(90deg, #6d5dfc, #00d4ff, #ff4fa3);
  --font:        'Inter', system-ui, -apple-system, sans-serif;
  --radius:      18px;
  --radius-sm:   10px;
}
 
*, *::before, *::after { box-sizing: border-box; }
 
body {
  font-family: var(--font) !important;
  background: var(--bg) !important;
  color: var(--text) !important;
  -webkit-font-smoothing: antialiased;
}
 
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  opacity: .35;
  pointer-events: none;
  z-index: 0;
}
 
/* Header */
#header {
  background: rgba(5,6,12,.88) !important;
  backdrop-filter: blur(18px) !important;
  border-bottom: 1px solid var(--border) !important;
}
 
/* Logo area */
.site-logo-svg { width: 36px; height: 36px; flex-shrink: 0; }
 
.site-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
 
.site-logo-name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .07em;
  color: rgba(255,255,255,.92);
}
 
.site-logo-sub {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .11em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
 
#header .logo a {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  text-decoration: none !important;
}
 
#header .logo a span { color: var(--text) !important; }
 
/* Nav menu links */
#header .menu a {
  color: var(--text-muted) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  border-radius: var(--radius-sm) !important;
  padding: 6px 12px !important;
  transition: color .2s, background .2s !important;
}
 
#header .menu a:hover {
  color: var(--text) !important;
  background: rgba(255,255,255,.06) !important;
}
 
/* Post list entries */
.post-entry {
  background: linear-gradient(180deg, var(--card) 0%, var(--card2) 100%) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  transition: border-color .2s, transform .2s, box-shadow .2s !important;
}
 
.post-entry:hover {
  border-color: rgba(109,93,252,.45) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 40px rgba(109,93,252,.12) !important;
}
 
.entry-header h2 {
  color: var(--text) !important;
  font-size: 20px !important;
  font-weight: 600 !important;
}
 
.entry-content p { color: var(--text-muted) !important; }
 
.post-meta, .post-meta * { color: var(--text-muted) !important; }
 
/* Tags */
.post-tags a, .terms-tags a {
  color: var(--accent2) !important;
  background: rgba(0,212,255,.08) !important;
  border: 1px solid rgba(0,212,255,.18) !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  padding: 2px 8px !important;
  text-decoration: none !important;
}
 
/* Single post */
.post-title { color: var(--text) !important; }
 
.post-description {
  color: var(--text-muted) !important;
  font-style: italic !important;
}
 
/* Post content */
.post-content {
  font-size: 17px !important;
  line-height: 1.8 !important;
  color: rgba(255,255,255,.82) !important;
}
 
.post-content h2 {
  color: var(--text) !important;
  border-bottom: 1px solid var(--border) !important;
  padding-bottom: 8px !important;
}
 
.post-content h3 { color: var(--text) !important; }
 
.post-content p em {
  color: var(--text-muted) !important;
}
 
.post-content a {
  color: var(--accent2) !important;
  text-decoration-color: rgba(0,212,255,.35) !important;
}
 
.post-content a:hover {
  text-decoration-color: var(--accent2) !important;
}
 
.post-content hr {
  border-color: var(--border) !important;
  margin: 36px 0 !important;
}
 
.post-content blockquote {
  border-left: 3px solid var(--accent1) !important;
  background: rgba(109,93,252,.06) !important;
  color: var(--text-muted) !important;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important;
}
 
.post-content code {
  background: rgba(255,255,255,.06) !important;
  border: 1px solid var(--border) !important;
  color: var(--accent2) !important;
  border-radius: 5px !important;
}
 
.post-content pre {
  background: rgba(0,0,0,.5) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
}
 
.post-content pre code {
  background: none !important;
  border: none !important;
  color: rgba(255,255,255,.82) !important;
}
 
/* Footer */
footer {
  border-top: 1px solid var(--border) !important;
  background: rgba(5,6,12,.95) !important;
}
 
footer, footer a { color: var(--text-muted) !important; }
footer a:hover { color: var(--text) !important; }
 
.footer-inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 32px 24px;
}
 
.footer-links { display: flex; gap: 16px; }
.footer-links a { font-size: 13px; text-decoration: none; transition: color .2s; }
 
/* Pagination */
.pagination a {
  border-color: var(--border) !important;
  background: var(--card) !important;
  color: var(--text-muted) !important;
  border-radius: var(--radius-sm) !important;
}
 
.pagination a:hover {
  border-color: var(--accent1) !important;
  color: var(--text) !important;
}
 
/* Home header */
.page-header h1 {
  background: var(--grad-text) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}
 
/* Search */
#searchbox input {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  border-radius: var(--radius-sm) !important;
}
 
#searchbox input:focus { border-color: var(--accent1) !important; }
 
/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.25); }
 
@media (max-width: 680px) {
  .site-logo-name { font-size: 10px; }
  .site-logo-sub { display: none; }
}
 
/* ============================================================
   KAFELKI — post entries jako glassmorphism cards
   ============================================================ */
 
/* Lista postów — wrapper */
.posts-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
 
/* Każdy artykuł jako karta */
.post-entry {
  background: linear-gradient(180deg, rgba(255,255,255,.05) 0%, rgba(255,255,255,.035) 100%) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  border-radius: 22px !important;
  box-shadow: 0 8px 32px rgba(0,0,0,.45) !important;
  padding: 24px 28px !important;
  transition: border-color .25s, transform .25s, box-shadow .25s !important;
  text-decoration: none !important;
  display: block !important;
  position: relative !important;
  overflow: hidden !important;
}
 
/* Subtelny gradient accent w lewym górnym rogu */
.post-entry::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, #6d5dfc, #00d4ff, #ff4fa3);
  opacity: 0;
  transition: opacity .25s;
}
 
.post-entry:hover::before {
  opacity: 1;
}
 
.post-entry:hover {
  border-color: rgba(109,93,252,.50) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 16px 48px rgba(109,93,252,.15), 0 4px 16px rgba(0,0,0,.4) !important;
}
 
/* Tytuł artykułu w kafelku */
.post-entry .entry-header h2 {
  font-size: 19px !important;
  font-weight: 650 !important;
  color: rgba(255,255,255,.92) !important;
  margin-bottom: 10px !important;
  line-height: 1.35 !important;
  transition: color .2s !important;
}
 
.post-entry:hover .entry-header h2 {
  color: #ffffff !important;
}
 
/* Opis w kafelku */
.post-entry .entry-content p {
  font-size: 15px !important;
  color: rgba(255,255,255,.54) !important;
  line-height: 1.65 !important;
  margin: 0 0 12px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}
 
/* Meta (data, czas czytania) */
.post-entry .post-meta {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-size: 13px !important;
  color: rgba(255,255,255,.38) !important;
  margin-top: 8px !important;
}
 
.post-entry .post-meta * {
  color: rgba(255,255,255,.38) !important;
}
 
/* Separator w meta */
.post-entry .post-meta span::after {
  content: '·';
  margin-left: 10px;
  opacity: .5;
}
 
.post-entry .post-meta span:last-child::after {
  content: '';
}
 
/* Tagi w kafelku */
.post-entry .post-tags {
  margin-top: 14px !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
}
 
.post-entry .post-tags a {
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: .04em !important;
  color: #00d4ff !important;
  background: rgba(0,212,255,.08) !important;
  border: 1px solid rgba(0,212,255,.20) !important;
  border-radius: 6px !important;
  padding: 3px 9px !important;
  text-decoration: none !important;
  transition: background .2s !important;
}
 
.post-entry .post-tags a:hover {
  background: rgba(0,212,255,.15) !important;
}
 
/* Mobile */
@media (max-width: 680px) {
  .post-entry {
    padding: 18px 20px !important;
    border-radius: 16px !important;
  }
  .post-entry .entry-header h2 {
    font-size: 17px !important;
  }
}
