/* ═══════════════════════════════════════════════════════════
   kryptotax.sk — BLOG
   Dizajn tokeny a komponenty prebrané 1:1 z index.html
   ═══════════════════════════════════════════════════════════ */
:root {
  --bg: #FAFBFD;
  --bg-card: #FFFFFF;
  --bg-dark: #0B1426;
  --bg-dark-2: #111D35;
  --text: #1A2233;
  --text-light: #5A6680;
  --text-lighter: #8A94A6;
  --primary: #1652F0;
  --primary-light: #E8EEFF;
  --primary-dark: #0D3CB8;
  --accent: #00C076;
  --accent-light: #E6FAF2;
  --accent-dark: #00995E;
  --border: #E3E8F0;
  --border-light: #F0F3F8;
  --shadow-sm: 0 1px 3px rgba(11,20,38,0.06);
  --shadow-md: 0 4px 16px rgba(11,20,38,0.08);
  --shadow-lg: 0 12px 40px rgba(11,20,38,0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --font: 'Outfit', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ═══ NAV ═══ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(250,251,253,0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: var(--shadow-sm); }
nav .container { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--bg-dark); }
.nav-logo img { height: 72px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--text-light); transition: color 0.2s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a.nav-plain::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--primary); transition: width 0.25s; }
.nav-links a.nav-plain:hover::after { width: 100%; }
.nav-cta { background: var(--primary); color: #fff !important; padding: 10px 24px; border-radius: 8px; font-weight: 600; font-size: 0.88rem; transition: all 0.2s; }
.nav-cta:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(22,82,240,0.3); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); transition: all 0.3s; }

/* ═══ LANGUAGE SWITCHER ═══ */
.lang-switch { display: flex; align-items: center; gap: 4px; margin-left: 8px; background: var(--border-light); border-radius: 8px; padding: 3px; }
.lang-btn { display: flex; align-items: center; gap: 5px; padding: 5px 10px; border: none; background: none; border-radius: 6px; font-family: var(--font); font-size: 0.8rem; font-weight: 600; cursor: pointer; color: var(--text-light); transition: all 0.2s; line-height: 1; }
.lang-btn.active { background: #fff; color: var(--text); box-shadow: var(--shadow-sm); }
.lang-btn:hover:not(.active) { color: var(--text); }
.lang-btn[aria-disabled="true"] { opacity: 0.4; pointer-events: none; }
.lang-flag { width: 18px; height: 14px; border-radius: 2px; display: inline-block; background-size: cover; background-position: center; flex-shrink: 0; }
.lang-flag.sk { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 600'%3E%3Crect fill='%23fff' width='900' height='600'/%3E%3Crect fill='%230b4ea2' y='200' width='900' height='200'/%3E%3Crect fill='%23ee1c25' y='400' width='900' height='200'/%3E%3Cpath fill='%23fff' d='M100 130h250v340H100z'/%3E%3Cpath fill='%23ee1c25' d='M115 145h220v310H115z'/%3E%3Cpath fill='%23fff' d='M225 200c-30 0-55 20-70 50 15-20 40-30 70-30s55 10 70 30c-15-30-40-50-70-50zm-80 60c0 60 35 110 80 140 45-30 80-80 80-140H145z'/%3E%3Cpath fill='%230b4ea2' d='M225 220c-25 0-50 15-65 40h130c-15-25-40-40-65-40zm-70 55c0 50 30 95 70 120 40-25 70-70 70-120H155z'/%3E%3C/svg%3E"); }
.lang-flag.en { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3CclipPath id='a'%3E%3Cpath d='M0 0v30h60V0z'/%3E%3C/clipPath%3E%3CclipPath id='b'%3E%3Cpath d='M30 15h30v15zv15H0zH0V0zV0h30z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23a)'%3E%3Cpath d='M0 0v30h60V0z' fill='%23012169'/%3E%3Cpath d='M0 0l60 30m0-30L0 30' stroke='%23fff' stroke-width='6'/%3E%3Cpath d='M0 0l60 30m0-30L0 30' clip-path='url(%23b)' stroke='%23C8102E' stroke-width='4'/%3E%3Cpath d='M30 0v30M0 15h60' stroke='%23fff' stroke-width='10'/%3E%3Cpath d='M30 0v30M0 15h60' stroke='%23C8102E' stroke-width='6'/%3E%3C/g%3E%3C/svg%3E"); }

/* ═══ PAGE WRAP (priestor pod fixed nav) ═══ */
.page { padding-top: 88px; min-height: 70vh; }

/* ═══ BLOG HEADER (výpis) ═══ */
.blog-hero { padding: 64px 0 32px; }
.blog-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.02em; color: var(--bg-dark); }
.blog-hero p { color: var(--text-light); font-size: 1.05rem; margin-top: 8px; }

/* ═══ BLOG GRID / KARTY ═══ */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; padding: 24px 0 80px; }
.blog-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.blog-card-meta { font-family: var(--mono); font-size: 0.78rem; color: var(--text-lighter); text-transform: uppercase; letter-spacing: 0.04em; }
.blog-card-title { font-size: 1.3rem; font-weight: 700; line-height: 1.3; color: var(--bg-dark); }
.blog-card-perex { color: var(--text-light); font-size: 0.95rem; }
.blog-card-link { margin-top: auto; color: var(--primary); font-weight: 600; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 6px; }

/* ═══ ČLÁNOK ═══ */
.article { padding: 48px 0 80px; }
.article-back { display: inline-flex; align-items: center; gap: 6px; color: var(--text-light); font-size: 0.88rem; font-weight: 500; margin-bottom: 28px; }
.article-back:hover { color: var(--primary); }
.article-meta { font-family: var(--mono); font-size: 0.82rem; color: var(--text-lighter); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 14px; }
.article h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; color: var(--bg-dark); margin-bottom: 18px; }
.article-perex { font-size: 1.18rem; line-height: 1.6; color: var(--text-light); border-left: 3px solid var(--accent); padding-left: 18px; margin-bottom: 40px; }

.article-body { font-size: 1.05rem; color: var(--text); }
.article-body h2 { font-size: 1.55rem; font-weight: 700; color: var(--bg-dark); margin: 40px 0 14px; letter-spacing: -0.01em; }
.article-body h3 { font-size: 1.2rem; font-weight: 700; color: var(--bg-dark); margin: 28px 0 10px; }
.article-body p { margin-bottom: 18px; }
.article-body ul, .article-body ol { margin: 0 0 18px 22px; }
.article-body li { margin-bottom: 8px; }
.article-body a { color: var(--primary); font-weight: 500; border-bottom: 1px solid var(--primary-light); }
.article-body a:hover { border-bottom-color: var(--primary); }
.article-body strong { font-weight: 700; color: var(--bg-dark); }
.article-body blockquote { border-left: 3px solid var(--primary); background: var(--primary-light); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin: 24px 0; color: var(--text); }
.article-body code { font-family: var(--mono); font-size: 0.9em; background: var(--border-light); padding: 2px 6px; border-radius: 4px; }
.article-body table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 0.95rem; }
.article-body th, .article-body td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; }
.article-body th { background: var(--border-light); font-weight: 600; }

/* CTA blok na konci článku */
.article-cta { margin-top: 56px; background: var(--bg-dark); color: #fff; border-radius: var(--radius-lg); padding: 36px; text-align: center; }
.article-cta h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 10px; }
.article-cta p { color: rgba(255,255,255,0.7); margin-bottom: 22px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; border-radius: 8px; font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: all 0.2s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }

/* ═══ FOOTER ═══ */
footer { background: var(--bg-dark); color: rgba(255,255,255,0.7); padding: 56px 0 32px; }
.footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
.footer-logo img { height: 56px; filter: brightness(0) invert(1); }
.footer-links { display: flex; gap: 32px; list-style: none; }
.footer-links a { font-size: 0.88rem; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-payment { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; }
.footer-payment .usdc-badge { background: rgba(38,161,123,0.15); color: #26A17B; font-size: 0.75rem; font-weight: 600; padding: 3px 10px; border-radius: 100px; }
.footer-bottom { margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08); text-align: center; font-size: 0.82rem; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
  .nav-links { position: fixed; top: 88px; left: 0; right: 0; background: var(--bg); flex-direction: column; padding: 24px; gap: 20px; box-shadow: var(--shadow-md); display: none; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .lang-switch { margin-left: 0; align-self: center; }
  .footer-content { flex-direction: column; text-align: center; }
  .article-cta { padding: 28px 20px; }
}

/* .nav-links a ma vyssiu specificitu ako .lang-btn, takze na podstrankach
   prepisovalo velkost pisma prepinaca na 0.9rem. Na domovskej stranke sú
   jazykove tlacidla <button>, preto tam k tomu nedoslo. Zjednotene na 0.8rem. */
.nav-links .lang-btn { font-size: 0.8rem; }
