/* ============================================================
   O mně – specifické styly
   ============================================================ */

/* ── ABOUT HERO – dvousloupcový layout ── */
.about-hero {
  padding-top: 8rem;
  min-height: auto;
  padding-bottom: 4rem;
}

.about-hero .about-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.about-hero .page-hero-content {
  position: relative;
  transform: none;
  text-align: left;
  padding: 0;
  max-width: none;
}

.about-hero .breadcrumb {
  justify-content: flex-start;
}

.about-hero .hero-eyebrow {
  text-align: left;
}

.about-hero .page-h1 {
  text-align: left;
}

.about-hero .hero-buttons {
  justify-content: flex-start;
}

/* ── IMAGE COMPARISON SLIDER ── */
.img-compare {
  max-width: 420px;
  margin: 0 auto;
  position: relative;
}

.img-compare-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 2px solid rgba(200, 150, 12, 0.35);
  box-shadow:
    0 0 0 1px rgba(200, 150, 12, 0.08),
    0 0 30px rgba(200, 150, 12, 0.06),
    inset 0 0 40px rgba(0, 0, 0, 0.3);
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
}

/* Rohové ornamenty */
.img-compare-wrapper::before,
.img-compare-wrapper::after {
  content: '◆';
  position: absolute;
  font-size: 0.5rem;
  color: var(--gold);
  opacity: 0.5;
  z-index: 15;
  pointer-events: none;
}
.img-compare-wrapper::before {
  top: 6px; left: 6px;
}
.img-compare-wrapper::after {
  bottom: 6px; right: 6px;
}

.img-compare-under {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.img-compare-over {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
}

.img-compare-over img {
  /* CSS fallback: overlay div je 50% wrapperu, takže 200% = šířka wrapperu.
     JS přepíše na přesnou px hodnotu po načtení obrázků. */
  width: 200%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

/* Vertikální dělicí čára */
.img-compare-line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: rgba(200, 150, 12, 0.6);
  z-index: 5;
  pointer-events: none;
  transform: translateX(-50%);
}

/* Kosočtverec uprostřed čáry — orámovaný, se šipkami */
.img-compare-diamond-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  background: var(--midnight, #0A0510);
  border: 2px solid rgba(200, 150, 12, 0.7);
  transform: translate(-50%, -50%) rotate(45deg);
  z-index: 6;
  pointer-events: none;
  transition: background 0.3s, border-color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.img-compare-diamond-arrows {
  transform: rotate(-45deg);
  font-size: 0.5rem;
  color: var(--pale-gold, #E8DCC8);
  letter-spacing: 0.15em;
  line-height: 1;
  white-space: nowrap;
}

.img-compare:hover .img-compare-diamond-handle,
.img-compare:active .img-compare-diamond-handle {
  background: rgba(200, 150, 12, 0.25);
  border-color: var(--gold);
}

/* Skryté – staré elementy */
.img-compare-diamonds { display: none; }
.img-compare-handle { display: none; }

/* Neviditelný drag zone */
.img-compare-slider {
  position: absolute;
  top: 0;
  left: 50%;
  width: 40px;
  height: 100%;
  transform: translateX(-50%);
  z-index: 10;
  cursor: ew-resize;
  background: transparent;
}

/* ── ABOUT SECTIONS ── */
.about-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
  text-align: center;
}

/* ── STŘÍDAVÉ POZADÍ ── */
.about-bg-purple {
  max-width: none;
  padding: 5rem calc((100% - 900px) / 2 + 2rem);
  background: linear-gradient(180deg, var(--midnight) 0%, var(--deep-purple) 50%, var(--midnight) 100%);
}

/* ── ORNAMENT-DIVIDER — transparentní pozadí ── */
.about-section ~ .ornament-divider,
.about-hero ~ .ornament-divider {
  background: transparent;
}

/* ── INTRO ── */
.about-intro-text {
  text-align: center;
}

.about-intro-text p {
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--ghost);
  opacity: 0.88;
  margin-bottom: 1rem;
  text-align: left;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ── STORY CARDS ── */
.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
  text-align: left;
}

.story-card {
  background: rgba(200, 150, 12, 0.03);
  border: 1px solid rgba(200, 150, 12, 0.1);
  padding: 2rem;
  position: relative;
}

.story-card-wide {
  grid-column: 1 / -1;
}

.story-suit {
  font-size: 1.4rem;
  color: var(--gold);
  opacity: 0.5;
  display: block;
  margin-bottom: 0.8rem;
}

.story-card p {
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--ghost);
  opacity: 0.85;
  margin-bottom: 0.5rem;
}

.story-card p:last-child {
  margin-bottom: 0;
}

.story-highlight {
  font-style: italic;
  color: var(--rose) !important;
  font-size: 1.05rem !important;
  opacity: 1 !important;
}

/* ── BLOCKQUOTE ── */
.about-quote {
  margin: 3rem auto;
  padding: 2rem 2.5rem;
  border-left: 3px solid var(--gold);
  background: rgba(200, 150, 12, 0.03);
  max-width: 700px;
  text-align: left;
}

.about-quote p {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--pale-gold);
  margin-bottom: 0.5rem;
}

.about-quote cite {
  font-family: 'Lora', serif;
  font-size: 0.85rem;
  color: var(--ghost);
  opacity: 0.6;
  font-style: normal;
  display: block;
  margin-top: 0.5rem;
}

/* ── ACHIEVEMENT CARDS ── */
.about-achievements {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
  text-align: left;
}

.achievement-card {
  background: rgba(200, 150, 12, 0.03);
  border: 1px solid rgba(200, 150, 12, 0.1);
  padding: 2rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.achievement-card:hover {
  border-color: rgba(200, 150, 12, 0.25);
  box-shadow: 0 0 30px rgba(200, 150, 12, 0.05);
}

.achievement-visual {
  margin-bottom: 1.2rem;
  padding: 0.8rem;
  background: rgba(200, 150, 12, 0.03);
  border: 1px solid rgba(200, 150, 12, 0.08);
}

.achievement-visual svg {
  width: 100%;
  height: auto;
  display: block;
}

.achievement-visual-img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.achievement-icon {
  font-size: 1.4rem;
  color: var(--gold);
  opacity: 0.5;
  display: block;
  margin-bottom: 0.8rem;
}

.achievement-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--pale-gold);
  margin-bottom: 0.8rem;
  letter-spacing: 0.05em;
}

.achievement-card p {
  font-family: 'Lora', serif;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--ghost);
  opacity: 0.85;
}

.achievement-card strong {
  color: var(--pale-gold);
  font-weight: 600;
}

/* ── ACHIEVEMENT SHOWCASE (Luxor dopis) ── */
.achievement-showcase {
  margin: 3rem 0;
  padding: 0;
  border: 1px solid rgba(200, 150, 12, 0.15);
  background: rgba(200, 150, 12, 0.02);
  overflow: hidden;
}

.achievement-showcase img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.achievement-showcase:hover img {
  transform: scale(1.02);
}

.achievement-showcase figcaption {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--ghost);
  opacity: 0.5;
  padding: 1rem 1.5rem;
  text-align: center;
  border-top: 1px solid rgba(200, 150, 12, 0.1);
}

/* ── LIGHTBOX TRIGGER ── */
.lightbox-trigger {
  display: block;
  cursor: zoom-in;
  position: relative;
}

.lightbox-hint {
  font-style: normal;
  opacity: 0.4;
  font-size: 0.75rem;
}

/* ── LIGHTBOX OVERLAY ── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 5, 16, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: zoom-out;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay .lightbox-img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  border: 1px solid rgba(200, 150, 12, 0.2);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: 1px solid rgba(200, 150, 12, 0.3);
  color: var(--ghost, #E8DCC8);
  font-size: 2rem;
  width: 48px;
  height: 48px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, color 0.3s;
  z-index: 10000;
}

.lightbox-close:hover {
  border-color: var(--gold, #C8960C);
  color: var(--gold, #C8960C);
}

/* ── STATS ── */
.about-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
  padding: 2rem;
  border: 1px solid rgba(200, 150, 12, 0.1);
  background: rgba(200, 150, 12, 0.02);
}

.about-stat {
  text-align: center;
}

.about-stat-number {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 900;
  color: var(--pale-gold);
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.about-stat-label {
  font-family: 'Lora', serif;
  font-size: 0.8rem;
  color: var(--ghost);
  opacity: 0.6;
  letter-spacing: 0.05em;
}

/* ── EDUCATION SECTION ── */
.about-education {
  margin-top: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.about-education .about-intro-text-p {
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--ghost);
  opacity: 0.88;
  text-align: left;
  margin-bottom: 2rem;
}

.education-images {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: start;
}

.education-image {
  border: 1px solid rgba(200, 150, 12, 0.15);
  background: rgba(200, 150, 12, 0.02);
  overflow: hidden;
}

.education-image a {
  display: block;
  cursor: zoom-in;
}

.education-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.education-image:hover img {
  transform: scale(1.03);
}

.education-image figcaption {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 0.8rem;
  color: var(--ghost);
  opacity: 0.5;
  padding: 0.8rem 1rem;
  text-align: center;
  border-top: 1px solid rgba(200, 150, 12, 0.1);
}

.education-linkedin {
  margin-top: 1rem;
}

/* ── CTA ── */
.about-cta-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .about-hero .about-hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
  }

  .about-hero .page-hero-content {
    text-align: center;
  }

  .about-hero .hero-buttons {
    justify-content: center;
  }

  .about-cta-links {
    justify-content: center;
  }

  .img-compare {
    max-width: 320px;
  }

  .about-section {
    padding: 3rem 1.2rem;
  }

  .about-bg-purple {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }

  .about-story {
    grid-template-columns: 1fr;
  }

  .about-achievements {
    grid-template-columns: 1fr;
  }

  .about-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .about-quote {
    padding: 1.5rem;
  }

  .story-card,
  .achievement-card {
    padding: 1.5rem;
  }

  .education-images {
    grid-template-columns: 1fr;
  }
}
