/* ============================================
   drlymperopoulou.gr - Shared Styles
   Clean, minimal CSS matching original site fidelity
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #673de6;
  --color-dark: #1d1e20;
  --color-gray-light: #f2f3f6;
  --color-light: #fff;
  --color-hero-bg: var(--color-light);
  --shadow-color: rgba(0, 0, 0, 0.1);
  --timeline-spine: #aaaaaa;
  --timeline-circle: #68579c;
  --underline-color: rgba(29, 30, 32, 0.3);
  --footer-gradient-start: rgb(104, 87, 156);
  --footer-gradient-end: rgb(39, 26, 87);
  --footer-border-color: rgba(255, 255, 255, 0.1);
  /* Spacing scale — defined for future use, hardcoded values remain for now */
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;
  --font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Lato', sans-serif;
  --max-width: 1224px;
  --header-height: 113px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-dark);
  background: var(--color-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-dark);
  text-decoration: underline;
  text-decoration-color: var(--underline-color);
  text-underline-offset: 2px;
  transition: color 0.2s, text-decoration-color 0.2s;
}

a:hover {
  color: var(--color-dark);
  text-decoration-color: var(--color-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--color-light);
  z-index: 100;
  padding: 0 24px;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-color) 0 6px 14px 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-logo {
  text-decoration: none;
}

.site-logo img {
  height: 53px;
  width: auto;
}

/* Language Switcher */
.lang-switcher {
  position: relative;
}

.lang-switcher__button {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 24px;
}

.lang-switcher__button span {
  text-transform: uppercase;
}

.lang-switcher__button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.lang-switcher__button svg {
  width: 10px;
  height: 7px;
}

.lang-switcher__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 10;
  background: var(--color-light);
  border-radius: 5px;
  box-shadow: var(--shadow-color) 0 2px 14px 0;
  list-style: none;
  padding: 16px 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s, visibility 0.2s;
}

.lang-switcher.is-open .lang-switcher__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lang-switcher__dropdown li a {
  display: block;
  padding: 4px 0;
  color: var(--color-dark);
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 24px;
  height: 32px;
  text-decoration: none;
}

.lang-switcher__dropdown li a:hover {
  color: var(--color-dark);
}

/* --- Hero Section --- */
.hero {
  background: var(--color-hero-bg);
  color: var(--color-dark);
  padding: 50px 24px 0;
}

.hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}

.hero__content {
  overflow-wrap: break-word;
  word-break: break-word;
}

.hero__content h1 {
  font-size: 48px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 48px;
  color: var(--color-dark);
}

.hero__text {
  font-size: 18px;
  line-height: 1.5;
  color: var(--color-dark);
  margin-bottom: 32px;
  text-align: justify;
}

.hero__list {
  list-style: disc;
  padding-left: 40px;
}

.hero__list li {
  font-size: 18px;
  line-height: 1.5;
  color: var(--color-dark);
  margin-bottom: 0;
}

/* portrait is visible on mobile (single-column grid, first in DOM) */

/* --- Mobile Styles --- */
@media (max-width: 768px) {
  /* Logo: match original mobile size (250x38px) */
  .site-logo img {
    height: 38px;
    width: auto;
  }

  /* Hero title: reduce font size on mobile */
  .hero__content h1 {
    font-size: 36px;
  }

  /* Hero portrait: centered, constrained width */
  .hero__portrait img {
    max-width: 328px;
    margin: 0 auto 32px;
  }

  /* Biography: portrait first on mobile */
  .biography__portrait {
    order: -1;
  }

  /* Footer: extra spacing between contact and address blocks on mobile */
  .footer__contact {
    padding-bottom: 10px;
  }
}

.hero__portrait img {
  width: 100%;
}

@media (min-width: 769px) {
  .hero__inner {
    grid-template-columns: 400px 1fr;
    gap: 48px;
  }
}

/* --- Section Divider --- */
.h-divider {
  margin: 80px auto 50px;
  width: 80%;
  max-width: calc(var(--max-width) * 0.8);
  position: relative;
}

.h-divider .shadow {
  overflow: hidden;
  height: 20px;
}

.h-divider .shadow::after {
  content: '';
  display: block;
  margin: -25px auto 0;
  width: 100%;
  height: 25px;
  border-radius: 125px/12px;
  box-shadow: 0 0 8px black;
}

/* --- Biography Section --- */
.biography {
  padding: 0 24px 80px;
  background: var(--color-light);
}

.biography__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}

/* Portrait column: image centered, text paragraphs stretch full width */
.biography__portrait {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.biography__portrait img {
  align-self: center;
  width: 434px;
  max-width: 100%;
  height: 450px;
  object-fit: cover;
  margin-bottom: 7px;
}

.biography__portrait .biography__paragraph {
  margin-bottom: 0;
}

/* --- Timeline --- */
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* The vertical spine (centered) */
.timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background-color: var(--timeline-spine);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
}

/* Container around content - alternating left/right */
.tl-container {
  padding: 10px 24px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

/* Circle on the spine (shared) */
.tl-container::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  background-color: var(--timeline-circle);
  border: 6px solid var(--timeline-circle);
  top: 20px;
  border-radius: 50%;
  z-index: 1;
}

/* Left containers - positioned on left half */
.tl-left {
  left: 0;
  padding-right: 31px;
}

/* Left container circle - on right edge (touching spine) */
.tl-left::after {
  right: -12px;
}

/* Left container arrow - pointing RIGHT toward spine */
.tl-left::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  right: 23px;
  border: medium solid var(--color-gray-light);
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent var(--color-gray-light);
}

/* Right containers - positioned on right half */
.tl-right {
  left: 50%;
  padding-left: 31px;
}

/* Right container circle - on left edge (touching spine) */
.tl-right::after {
  left: -12px;
}

/* Right container arrow - pointing LEFT toward spine */
.tl-right::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  left: 23px;
  border: medium solid var(--color-gray-light);
  border-width: 10px 10px 10px 0;
  border-color: transparent var(--color-gray-light) transparent transparent;
}

/* Content box with grey background */
.tl-content {
  padding: 10px 15px;
  background-color: var(--color-gray-light);
  position: relative;
  border-radius: 6px;
  font-family: var(--font-family);
}

/* Date - styled as title (bold, bigger font, matching original h2) */
.timeline__date {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-dark);
  margin-bottom: 8px;
}

/* Entry text */
.timeline__text {
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-dark);
}

.timeline__text a,
.biography__paragraph a {
  color: var(--color-dark);
  text-decoration: underline;
  text-decoration-color: var(--underline-color);
  text-underline-offset: 2px;
}

.timeline__text a:hover,
.biography__paragraph a:hover {
  text-decoration-color: var(--color-dark);
}

/* --- Mobile: single column, spine on left --- */
@media screen and (max-width: 600px) {
  .timeline::after {
    left: 54px;
    margin-left: 0;
  }

  .tl-container {
    width: 100%;
    padding-left: 77px;
    padding-right: 25px;
  }

  /* All arrows point left (toward spine on left) */
  .tl-container::before {
    left: 67px;
    right: auto;
    border: medium solid var(--color-gray-light);
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--color-gray-light) transparent transparent;
  }

  /* All circles at same position on left */
  .tl-left::after,
  .tl-right::after {
    left: 22px;
    right: auto;
  }

  /* Right containers behave like left containers */
  .tl-right {
    left: 0%;
  }

  .timeline__date {
    font-size: 14px;
  }
}

/* Biography paragraph text */
.biography__paragraph {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 32px;
  color: var(--color-dark);
  text-align: justify;
}

@media (min-width: 769px) {
  .biography__inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* --- Contact Section --- */
.contact {
  padding: 75px 24px;
  background: var(--color-gray-light);
}

.contact__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.contact__content h2 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 26px;
  color: var(--color-dark);
}

.contact__info {
  margin-bottom: 24px;
}

.contact__label {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-dark);
}

.contact__value {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-dark);
}

.contact__value a {
  color: var(--color-dark);
  text-decoration: underline;
  text-decoration-color: var(--underline-color);
  text-underline-offset: 2px;
}

.contact__note {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-dark);
  margin-top: 16px;
}

.contact__map {
  overflow: hidden;
}

.contact__map iframe {
  width: 100%;
  height: 350px;
  border: 0;
  display: block;
}

@media (min-width: 769px) {
  .contact__inner {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
  }

  .contact__map iframe {
    height: 450px;
  }
}

/* --- Footer --- */
.site-footer {
  background: linear-gradient(0deg, var(--footer-gradient-start), var(--footer-gradient-end));
  color: var(--color-light);
  padding: 48px 24px 24px;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.footer__name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.footer__title {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 16px;
}

.footer__contact-item {
  font-size: 16px;
  margin-bottom: 8px;
  opacity: 0.8;
}

.footer__contact-item a {
  color: var(--color-light);
  opacity: 0.8;
  text-decoration: none;
}

.footer__contact-item a:hover {
  opacity: 1;
}

.footer__linkedin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-light);
  opacity: 0.8;
  font-size: 16px;
  text-decoration: none;
}

.footer__linkedin:hover {
  opacity: 1;
}

.footer__linkedin svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer__contact-label,
.footer__address-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.5;
  margin-bottom: 8px;
}

.footer__address {
  font-size: 16px;
  opacity: 0.7;
  line-height: 1.5;
}

.footer__copyright {
  text-align: center;
  padding-top: 24px;
  margin-top: 32px;
  border-top: 1px solid var(--footer-border-color);
  font-size: 14px;
  opacity: 0.5;
}

@media (min-width: 769px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 64px; /* matches contact__inner gap for right-column alignment with map */
  }

  .footer__right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* --- 404 Page --- */
.page-404 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background: linear-gradient(135deg, var(--footer-gradient-start), var(--footer-gradient-end));
  color: #fff;
}

.page-404 h1 {
  font-size: 6rem;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 16px;
}

.page-404 p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 24px;
}

.page-404 a {
  color: #fff;
  opacity: 0.8;
  margin: 0 8px;
  text-decoration: none;
}

.page-404 a:hover {
  opacity: 1;
}

/* --- Focus Visible --- */
a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
