/* Shared blog page layout and styling */
:root {
  --bg: #070b14;
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.70);
  --muted2: rgba(255, 255, 255, 0.55);
  --line: rgba(255, 255, 255, 0.12);
  --brand: #7c3aed;
  --brand2: #06b6d4;
  --max: 1120px;
  --content-max: 860px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html:lang(el) body {
  font-family: "Noto Sans", Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

body {
  margin: 0;
  font-family: Inter, "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 800px at 20% -10%, rgba(124, 58, 237, 0.35), transparent 60%),
    radial-gradient(900px 700px at 85% 0%, rgba(6, 182, 212, 0.25), transparent 55%),
    radial-gradient(900px 700px at 50% 120%, rgba(124, 58, 237, 0.18), transparent 55%),
    var(--bg);
  overflow-x: hidden;
  line-height: 1.75;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Main page wrapper */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7, 11, 20, 0.55);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.logo {
  width: 34px;
  height: 34px;
  background: url('images/logo.png') center/cover no-repeat;
  transform: scale(1.8);
  transform-origin: center;
}

/* Content area */
.content {
  flex: 1;
  max-width: var(--content-max);
  margin: 0 auto;
  width: 100%;
  padding: 40px 20px;
}

article h1 {
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.meta {
  color: var(--muted2);
  font-size: 14px;
  margin-bottom: 26px;
}

article h2 {
  font-size: 24px;
  margin: 36px 0 12px;
  letter-spacing: -0.01em;
}

article h3 {
  font-size: 19px;
  margin: 26px 0 10px;
  letter-spacing: -0.01em;
}

article p {
  color: var(--muted);
  margin: 14px 0;
}

article ul,
article ol {
  color: var(--muted);
  margin: 14px 0;
  padding-left: 22px;
}

article li {
  margin: 8px 0;
}

.highlight {
  background: rgba(124, 58, 237, 0.15);
  border-left: 3px solid var(--brand);
  padding: 14px 18px;
  border-radius: 10px;
  margin: 20px 0;
  color: var(--muted);
}

/* Footer */
footer {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted2);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

footer a {
  color: var(--brand);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Back link */
.back-link {
  color: var(--brand);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.back-link:hover {
  text-decoration: underline;
}

/* Language links */
/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 3px;
  flex-shrink: 0;
}

.lang-switcher button {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .18s ease;
  font-family: inherit;
  white-space: nowrap;
}

.lang-switcher button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.lang-switcher button.active {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #fff;
}

.lang-links {
  display: flex;
  gap: 10px;
}

.lang-links a {
  color: var(--muted2);
  text-decoration: none;
  font-size: 13px;
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 10px;
}

.lang-links a:hover {
  color: var(--text);
  border-color: rgba(124, 58, 237, 0.5);
}

/* Back link */
.back-link {
  display: inline-block;
  color: var(--brand);
  font-size: 14px;
  padding: 8px 0;
  transition: opacity 0.2s ease;
}

.back-link:hover {
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
  article h1 {
    font-size: 28px;
  }

  article h2 {
    font-size: 20px;
  }

  .header-wrap {
    flex-direction: column;
    gap: 12px;
  }

  footer {
    flex-direction: column;
  }
}
