/*
Theme Name: Ion Platon Blog
Author: Ion Platon
Author URI: https://ionplaton.com
Version: 1.1.0
*/

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

:root {
  --dark:    #1a1a1a;
  --gray:    #666666;
  --muted:   hsl(0, 0%, 88%);
  --light:   #f5f5f3;
  --border:  #e5e5e3;
  --white:   #ffffff;
  --display: 'Instrument Serif', serif;
  --body:    'Inter', sans-serif;
}

body {
  font-family: var(--body);
  background: var(--white);
  color: var(--dark);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

/* ── HERO WRAP ────────────────────────────────────────────── */
.hero-wrap {
  position: relative;
  height: 60vh;
  min-height: 420px;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  z-index: 0;
}

.hero-overlay {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Gradient fade → white */
.hero-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: linear-gradient(180deg, transparent 0%, #ffffff 100%);
  z-index: 20;
  pointer-events: none;
}

/* ── NAVIGATION (inside hero) ─────────────────────────────── */
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.site-logo {
  font-family: var(--display);
  font-size: 1.75rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.site-logo sup { font-size: 10px; vertical-align: super; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.nav-links a:hover { color: var(--white); }

/* Liquid-glass "Know me!" button in nav */
.nav-cta-glass {
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  border-radius: 999px;
  padding: 8px 18px;
  flex-shrink: 0;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: transform 0.18s;
}
.nav-cta-glass:hover { transform: scale(1.03); }

/* ── LANGUAGE SWITCHER ────────────────────────────────────── */
.lang-switcher {
  position: relative;
  flex-shrink: 0;
}

/* The trigger button — same liquid-glass as React */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: transform 0.18s;
  white-space: nowrap;
}
.lang-toggle:hover { transform: scale(1.03); }

.lang-flag { font-size: 16px; line-height: 1; }
.lang-code { font-size: 13px; }
.lang-arrow { font-size: 10px; opacity: 0.8; }

/* Dropdown panel */
.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: rgba(15, 20, 30, 0.80);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 14px;
  padding: 4px;
  min-width: 170px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 300;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
.lang-dropdown.open { display: block; }

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 8px;
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: background 0.15s;
}
.lang-option:hover     { background: rgba(255, 255, 255, 0.10); color: var(--white); }
.lang-option.lang-active { background: rgba(255, 255, 255, 0.18); font-weight: 600; }

/* ── HERO TEXT ────────────────────────────────────────────── */
.hero-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px 40px;
}

.hero-heading {
  font-family: var(--display);
  color: var(--white);
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -2px;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.55);
  max-width: 1000px;
}
.hero-heading em { font-style: normal; }
.hero-muted { color: var(--muted); }

.hero-sub {
  color: var(--white);
  max-width: 600px;
  margin-top: 2rem;
  font-size: 1rem;
  line-height: 1.65;
  text-shadow: 0 1px 10px rgba(0,0,0,0.95), 0 2px 40px rgba(0,0,0,0.85), 0 0 80px rgba(0,0,0,0.6);
}

/* Liquid-glass hero CTA */
.hero-cta-btn {
  display: inline-block;
  margin-top: 2.5rem;
  padding: 18px 56px;
  border-radius: 999px;
  font-size: 1rem;
  font-family: var(--body);
  color: var(--white);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: transform 0.2s;
}
.hero-cta-btn:hover { transform: scale(1.03); }

/* ── ARTICLE PAGE ─────────────────────────────────────────── */
.article-wrap {
  max-width: 740px;
  margin: 0 auto;
  padding: 64px 24px 100px;
}

.article-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 18px;
  text-decoration: none;
  transition: color 0.18s;
}
.article-category:hover { color: var(--dark); }

.article-title {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--dark);
  margin-bottom: 24px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #999;
  font-size: 13px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}
.article-meta .dot { opacity: 0.4; }

/* ── CONTENT TYPOGRAPHY ───────────────────────────────────── */
.entry-content { font-size: 17px; line-height: 1.85; color: #2a2a2a; }
.entry-content p { margin-bottom: 1.6em; }

.entry-content h2 {
  font-family: var(--display);
  font-size: 1.85rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.8px;
  color: var(--dark);
  margin: 2.5em 0 0.75em;
}

.entry-content h3 {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--dark);
  margin: 2em 0 0.6em;
}

.entry-content h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin: 1.5em 0 0.5em;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.5em;
  margin-bottom: 1.6em;
}
.entry-content li { margin-bottom: 0.5em; }

.entry-content figure { margin: 2.5em 0; }
.entry-content figure img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}
.entry-content figcaption {
  text-align: center;
  color: var(--gray);
  font-size: 13px;
  margin-top: 10px;
  line-height: 1.5;
}

.entry-content blockquote {
  border-left: 3px solid var(--dark);
  padding: 6px 0 6px 24px;
  margin: 2em 0;
  color: var(--gray);
  font-style: italic;
  font-size: 1.1em;
}

.entry-content strong { font-weight: 600; color: var(--dark); }

.entry-content a {
  color: var(--dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.entry-content a:hover { color: var(--gray); }

.entry-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5em 0;
}

.entry-content .alignwide {
  margin-left: -80px;
  margin-right: -80px;
}
.entry-content .alignfull {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
}
.entry-content .alignwide img,
.entry-content .alignfull img { border-radius: 0; }

/* ── FOOTER ───────────────────────────────────────────────── */
.site-footer {
  background: var(--light);
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 32px 36px;
}

/* ── Newsletter strip ─────────────────────────────────────── */
.footer-newsletter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  padding-bottom: 56px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--border);
}

.newsletter-heading {
  font-family: var(--display);
  color: var(--dark);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.newsletter-sub {
  color: var(--gray);
  font-size: 14px;
}

.newsletter-form { display: flex; flex-direction: column; gap: 8px; }

.newsletter-fields {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.newsletter-input {
  padding: 12px 20px;
  border-radius: 999px;
  border: 1.5px solid #d1d1ce;
  font-size: 14px;
  width: clamp(200px, 26vw, 280px);
  outline: none;
  background: var(--white);
  color: var(--dark);
  font-family: var(--body);
  transition: border-color 0.2s;
}
.newsletter-input:focus { border-color: var(--dark); }

.newsletter-btn {
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--dark);
  color: var(--white);
  border: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--body);
  transition: opacity 0.2s;
  white-space: nowrap;
}
.newsletter-btn:hover:not(:disabled) { opacity: 0.8; }
.newsletter-btn:disabled { opacity: 0.6; cursor: default; }

.newsletter-feedback { font-size: 13px; padding-left: 6px; }
.newsletter-success {
  color: #15803d;
  font-weight: 500;
  padding: 12px 20px;
  background: #dcfce7;
  border-radius: 999px;
  font-size: 14px;
}
.newsletter-error { color: #dc2626; }

/* ── Footer grid ──────────────────────────────────────────── */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand-name {
  font-family: var(--display);
  font-size: 1.8rem;
  color: var(--dark);
  margin-bottom: 14px;
}
.footer-brand-name sup { font-size: 10px; }

.footer-brand p {
  color: var(--gray);
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 18px;
}

.footer-brand-link {
  color: var(--dark);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid #ccc;
  padding-bottom: 2px;
  transition: border-color 0.2s;
}
.footer-brand-link:hover { border-color: var(--dark); }

.footer-col h4 {
  color: var(--dark);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  color: var(--gray);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--dark); }

.footer-contact-email {
  color: var(--gray);
  font-size: 14px;
  text-decoration: none;
  display: block;
  margin-bottom: 24px;
  transition: color 0.2s;
}
.footer-contact-email:hover { color: var(--dark); }

.footer-socials { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-socials a {
  color: var(--gray);
  display: flex;
  align-items: center;
  transition: color 0.2s, transform 0.2s;
}
.footer-socials a:hover { color: var(--dark); transform: translateY(-2px); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p { color: #999; font-size: 13px; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-wrap { height: 55vh; }
}
@media (max-width: 600px) {
  .nav-inner { padding: 16px 20px; }
  .hero-wrap { height: 50vh; min-height: 360px; }
  .hero-heading { letter-spacing: -1px; }
  .hero-cta-btn { padding: 14px 36px; }
  .article-wrap { padding: 40px 20px 80px; }
  .footer-inner { padding: 48px 20px 32px; }
  .entry-content .alignwide { margin-left: 0; margin-right: 0; }
  .newsletter-input { width: 100%; }
  .footer-newsletter { flex-direction: column; align-items: flex-start; }
}
