/* TradHellas Responsive Left Sidebar Layout */
:root {
  --sidebar-w: 260px;
  --sidebar-bg: #2d1822; /* Warm, elegant reddish-slate background */
  --sidebar-text: #f3e8ee;
  --sidebar-muted: #bda4b1;
  --sidebar-border: rgba(255, 255, 255, 0.08);
  --primary: #9b2c3e; /* Rich wine / burgundy accent */
  --primary-hover: #b8364c;
  --text-main: #0f172a;
  --text-body: #334155;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  /* Single clean modern typography across all pages - no script or decorative fonts */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

html, body {
  background-color: var(--bg-main);
  color: var(--text-body);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* Image & Media display fixes - Ensure all images are 100% visible */
img, img[loading] {
  opacity: 1 !important;
  max-width: 100%;
  height: auto;
  display: inline-block;
  vertical-align: middle;
}

figure.post__image {
  margin: 1rem 0;
  display: block;
}

figure.post__image img {
  border-radius: 4px;
}

/* Page container */
.site-layout {
  display: flex;
  min-height: 100vh;
}

/* Mobile top bar (hidden on desktop) */
.mobile-topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  background-color: var(--sidebar-bg);
  color: #ffffff;
  padding: 0.6rem 1rem;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.mobile-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
}

.mobile-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 4px;
}

.mobile-menu-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.2s;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Left Sidebar */
.site-sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background-color: var(--sidebar-bg);
  color: var(--sidebar-text);
  height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 90;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
}

.sidebar-header {
  padding: 1.5rem 1.25rem 1.25rem;
  text-align: center;
  border-bottom: 1px solid var(--sidebar-border);
}

.site-logo-img {
  max-width: 140px;
  height: auto;
  display: block;
  margin: 0 auto 0.75rem auto;
  background: #ffffff;
  padding: 6px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.sidebar-brand {
  text-decoration: none;
  color: #ffffff;
  display: block;
}

.brand-title {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
}

.brand-subtitle {
  display: block;
  font-size: 0.72rem;
  color: var(--sidebar-muted);
  margin-top: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Language selector tabs with flags (FR, EL, EN) */
.lang-selector {
  display: flex;
  gap: 0.35rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--sidebar-border);
  background: rgba(0, 0, 0, 0.15);
}

.lang-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.4rem 0.2rem;
  font-size: 0.76rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s;
  white-space: nowrap;
}

.flag-img {
  width: 16px;
  height: 11px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.lang-tab:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

/* Navigation Menu */
.sidebar-nav {
  flex: 1;
  padding: 1rem 0;
}

.nav-group {
  margin-bottom: 1.25rem;
}

.nav-heading {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--sidebar-muted);
  padding: 0.35rem 1.25rem;
  text-transform: uppercase;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list li a {
  display: block;
  padding: 0.5rem 1.25rem;
  color: #e2d9df;
  font-size: 0.88rem;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.15s ease;
}

.nav-list li a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  border-left-color: #d17a8c;
}

.nav-list li a.is-active {
  background: rgba(155, 44, 62, 0.3);
  color: #ffffff;
  border-left-color: #d17a8c;
  font-weight: 600;
}

.sidebar-footer {
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--sidebar-border);
  font-size: 0.72rem;
  color: var(--sidebar-muted);
}

/* Main Content Area */
.main-wrapper {
  flex: 1;
  min-width: 0;
  padding: 2.5rem 3.5rem;
}

.content-card {
  max-width: 900px;
  background: var(--bg-card);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  padding: 2.5rem 3rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.content-header {
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.85rem;
}

.content-header h1 {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.content-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-body);
}

.content-body p {
  margin-bottom: 1.25rem;
}

.content-body ul, .content-body ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.content-body li {
  margin-bottom: 0.5rem;
}

.content-body a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-body a:hover {
  color: var(--primary-hover);
}

/* Tables in content */
.content-body table {
  width: 100% !important;
  max-width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.content-body table td, .content-body table th {
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border-color);
}

.content-body table tr:nth-child(even) {
  background-color: #f8fafc;
}

/* Backdrop */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 85;
}

/* Responsive / Mobile styles */
@media (max-width: 820px) {
  .mobile-topbar {
    display: flex;
  }

  .site-layout {
    flex-direction: column;
  }

  .site-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
  }

  .site-sidebar.is-open {
    transform: translateX(0);
  }

  .sidebar-backdrop.is-open {
    display: block;
  }

  .main-wrapper {
    padding: 1.25rem;
  }

  .content-card {
    padding: 1.5rem 1.25rem;
    border-radius: 6px;
  }

  .content-header h1 {
    font-size: 1.6rem;
  }
}

/* Language Visibility Rules: Default (French) */
.menu-fr {
  display: block;
}
.menu-el {
  display: none;
}
.menu-en {
  display: none;
}

.lang-tab-fr {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}
.lang-tab-el, .lang-tab-en {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

/* Greek active */
body.is-greek .menu-fr {
  display: none !important;
}
body.is-greek .menu-el {
  display: block !important;
}
body.is-greek .menu-en {
  display: none !important;
}
body.is-greek .lang-tab-fr, body.is-greek .lang-tab-en {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #cbd5e1 !important;
}
body.is-greek .lang-tab-el {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #ffffff !important;
}

/* English active */
body.is-english .menu-fr {
  display: none !important;
}
body.is-english .menu-el {
  display: none !important;
}
body.is-english .menu-en {
  display: block !important;
}
body.is-english .lang-tab-fr, body.is-english .lang-tab-el {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #cbd5e1 !important;
}
body.is-english .lang-tab-en {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #ffffff !important;
}
