/* Shared blog page layout and styling - Matching main page theme */
:root {
  --bg: #FFFFFF;
  --bg-secondary: #F9FAFB;
  --text: #121723;
  --muted: #788293;
  --muted2: #959cb1;
  --line: #e3e8ef;
  --brand: #4a6cf7;
  --brand-dark: #3759d3;
  --brand-light: #6b8aff;
  --max: 1120px;
  --content-max: 860px;
  --shadow-sm: 0px 2px 3px rgba(7, 7, 77, 0.05);
  --shadow-md: 0px 5px 10px rgba(6, 8, 15, 0.1);
}

* {
  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: 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(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  transition: opacity 0.2s ease;
}

.brand:hover {
  opacity: 0.8;
}

.nav-actions {
  display: flex;
  gap: 10px;
  align-items: 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;
}

/* Blog post content styling */
article a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

article a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

article strong {
  color: var(--text);
  font-weight: 600;
}

article em {
  color: var(--muted);
  font-style: italic;
}

article blockquote {
  border-left: 3px solid var(--brand);
  padding: 16px 20px;
  margin: 20px 0;
  background: rgba(74, 108, 247, 0.03);
  border-radius: 8px;
  color: var(--muted);
}

article blockquote p {
  margin: 8px 0;
}

article .lead {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.7;
  margin: 20px 0;
}

article table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}

article table th,
article table td {
  padding: 12px;
  text-align: left;
  border: 1px solid var(--line);
}

article table th {
  background: rgba(74, 108, 247, 0.05);
  font-weight: 600;
  color: var(--text);
}

article table td {
  color: var(--muted);
}

article table tbody tr:nth-child(even) {
  background: rgba(74, 108, 247, 0.02);
}

.highlight {
  background: rgba(74, 108, 247, 0.08);
  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: 0.25rem;
  background: var(--bg-secondary);
  border-radius: 0.5rem;
  padding: 0.25rem;
  flex-shrink: 0;
}

.lang-switcher button {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  white-space: nowrap;
}

.lang-switcher button:hover {
  color: var(--text);
}

.lang-switcher button.active {
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.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: var(--brand);
}

/* 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;
  }
}
