/* ====================
   About section – scoped styles only
   (works with views/partials/about.ejs)
==================== */

/* Local palette (warm, blue-free) */
#about {
  --about-ink: #2a2623;
  --about-muted: #6f6a60;
  --about-line: rgba(60, 45, 25, 0.1);
  --about-amber: #c5860a;
  --about-olive: #6e7b57;

  --about-radius: 22px;
  --about-shadow: 0 12px 28px rgba(80, 50, 10, 0.08);
}

/* Optional container wrapper */
.about-shell {
  position: relative;
}

/* Card-like frame and inner padding */
#about.card-frame {
  position: relative;
  background: #fbeac2; /* Egységes krémes háttér minden dobozban is! */
  border: 1px solid var(--about-line);
  border-radius: var(--about-radius);
  box-shadow: var(--about-shadow);
  overflow: clip;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px); /* Safari támogatás */
}

#about.pad {
  padding: clamp(1.25rem, 2.6vw, 2.2rem) clamp(1.25rem, 3vw, 2.6rem) clamp(1.6rem, 3.6vw, 2.8rem);
}

/* ---------- Media block ---------- */
#about .about-media {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: calc(var(--about-radius) - 6px);
  overflow: hidden;
  box-shadow: var(--about-shadow);
  background: #fbeac2; /* Egységes, meleg háttér */
}

#about .about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;   /* KÉP FELÜL */
  z-index: 1;           /* KÉP FELÜL */
}

/* Skeleton while loading */
#about .skeleton {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #fbeac2 0%, #faecd3 50%, #fbeac2 100%);
  background-size: 200% 100%;
  animation: about-shimmer 1.2s infinite linear;
  z-index: 0;           /* SKELETON ALUL */
}

@keyframes about-shimmer {
  to {
    background-position: -200% 0;
  }
}

#about .about-media img.broken {
  opacity: 0;
}

#about .about-media.broken {
  background: repeating-linear-gradient(45deg, #fbeac2 0 12px, #faecd3 12px 24px);
}

#about .about-media.broken::before {
  content: '\f127  Bild lädt nicht';
  font-family: 'Font Awesome 6 Free', sans-serif; /* Fallback font hozzáadva */
  font-weight: 900;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #8b8172;
  font-size: 0.95rem;
  text-align: center; /* Szöveg középre igazítás */
  padding: 1rem; /* Padding kis képernyőkön */
}

#about .media-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  font-size: 0.82rem;
  padding: 0.38rem 0.65rem;
  color: var(--about-ink);
  background: #fbeac2;
  border: 1px solid var(--about-line);
  border-radius: 999px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px); /* Safari támogatás */
  word-break: break-word; /* Hosszú szövegek tördelése */
  max-width: calc(100% - 24px); /* Ne lógjon ki */
}

#about .overline {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--about-muted);
  font-weight: 600;
  font-size: 0.8rem;
  margin: 0;
}

#about .headline {
  color: var(--about-ink);
  font-weight: 800;
  line-height: 1.08;
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  margin: 0.25rem 0 0.6rem;
  word-wrap: break-word; /* Hosszú szavak tördelése */
  hyphens: auto; /* Automatikus elválasztás */
}

/* Brand word: no blue; warm underline band */
#about .headline .brand {
  color: inherit;
  text-decoration: none;
  box-shadow: inset 0 -10px 0 rgba(197, 134, 10, 0.16);
  padding: 0 0.2rem;
  border-radius: 0.25rem;
  transition: box-shadow 0.2s ease; /* Animáció hover-nél */
}

#about .headline .brand:hover {
  box-shadow: inset 0 -14px 0 rgba(197, 134, 10, 0.24); /* Hover effekt */
}

#about .lede {
  color: #9e5812;
  font-size: clamp(1.02rem, 1.2vw, 1.15rem);
  line-height: 1.6; /* Jobb olvashatóság */
  margin-bottom: 1rem;
  max-width: 58ch;
  word-wrap: break-word; /* Hosszú szavak tördelése */
}

#about .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.25rem 0 1rem;
}

#about .chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  font-size: 0.85rem;
  background: #fbeac2;
  border: 1px solid var(--about-line);
  color: #4a463f;
  white-space: nowrap; /* Egyben maradjon a chip szövege */
}

#about .chip i {
  color: var(--about-olive);
  flex-shrink: 0; /* Ikon ne zsugorodjon */
}

#about .keypoints {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.25rem;
  color: #4a463f;
}

#about .keypoints li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.35rem 0;
  word-wrap: break-word; /* Hosszú szövegek tördelése */
}

#about .keypoints i {
  width: 1.25rem;
  flex-shrink: 0; /* Ikon mindig ugyanakkora maradjon */
  text-align: center;
  color: var(--about-olive);
  margin-top: 0.15rem;
}

@media (min-width: 992px) {
  #about .keypoints {
    columns: 2;
    column-gap: 2.4rem;
  }

  #about .keypoints li {
    break-inside: avoid;
  }
}

#about .btn-amber {
  --bs-btn-bg: var(--about-amber);
  --bs-btn-border-color: var(--about-amber);
  --bs-btn-hover-bg: color-mix(in oklab, var(--about-amber), black 8%);
  --bs-btn-hover-border-color: color-mix(in oklab, var(--about-amber), black 8%);
  --bs-btn-color: #1a130b;

  border-radius: 999px;
  padding: 0.9rem 1.3rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 14px 28px rgba(197, 134, 10, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease; /* Animáció */
  min-height: 44px; /* Touch-friendly minimum */
  display: inline-flex; /* Középre igazítás szövegnél */
  align-items: center;
  justify-content: center;
}

#about .btn-amber:hover {
  transform: translateY(-2px); /* Lift effekt */
}

#about .btn-amber:active {
  transform: translateY(0); /* Visszaugrik */
}

#about .btn-soft {
  --bs-btn-bg: transparent;
  --bs-btn-color: var(--about-ink);
  --bs-btn-border-color: var(--about-line);
  --bs-btn-hover-bg: #fbeac2;
  --bs-btn-hover-border-color: rgba(70, 50, 20, 0.18);

  border-radius: 999px;
  padding: 0.9rem 1.25rem;
  transition: transform 0.2s ease, background 0.2s ease; /* Animáció */
  min-height: 44px; /* Touch-friendly minimum */
  display: inline-flex; /* Középre igazítás szövegnél */
  align-items: center;
  justify-content: center;
}

#about .btn-soft:hover {
  transform: translateY(-1px); /* Finom lift effekt */
}

#about a:focus-visible,
#about .btn:focus-visible {
  outline: 3px solid rgba(197, 134, 10, 0.45);
  outline-offset: 2px;
  box-shadow: none;
  text-decoration: none;
}

#about.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

#about.reveal.in {
  opacity: 1;
  transform: none;
}

@media (max-width: 991.98px) {
  #about .about-media {
    margin-bottom: 0.5rem;
  }
}

/* Touch eszközök: nagyobb gombok */
@media (hover: none) and (pointer: coarse) {
  #about .btn-amber,
  #about .btn-soft {
    min-height: 48px;
    padding: 1rem 1.5rem;
  }
  
  #about .media-badge {
    font-size: 0.9rem;
    padding: 0.45rem 0.75rem;
  }
}

/* Kis képernyők: gombok teljes szélességűek */
@media (max-width: 576px) {
  #about .btn-amber,
  #about .btn-soft {
    width: 100%;
  }
  
  #about .chips {
    gap: 0.4rem;
  }
  
  #about .chip {
    font-size: 0.8rem;
    padding: 0.35rem 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  #about .about-media img {
    transition: none !important;
  }

  #about.reveal {
    transition: none !important;
  }
  
  #about .btn-amber,
  #about .btn-soft,
  #about .headline .brand {
    transition: none !important;
  }
}

/* Sötét mód: maradjon meleg és világos */
@media (prefers-color-scheme: dark) {
  #about.card-frame {
    background: #fbeac2 !important;
  }
  
  #about .about-media,
  #about .chip,
  #about .media-badge {
    background: #fbeac2 !important;
  }
  
  #about .headline,
  #about .keypoints,
  #about .chip {
    color: var(--about-ink) !important;
  }
}

/* Separator – minden szekció után */
.section-separator {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto 48px;
  height: 2px;
  background: linear-gradient(90deg, #e3c176 0%, #ffe07a 100%);
  opacity: 0.39;
  border-radius: 2px;
}

@media (max-width: 600px) {
  .section-separator {
    height: 1px;
    margin-bottom: 32px;
  }
}
