/* Fájl: styles.css | Date: 2026-10-05 | Version: 1.30 | Model: Gemini 3.7 Flash */

/* ==========================================================================
   FREEDOM IN THE NEWS — 70TH ANNIVERSARY VIRTUAL EXHIBITION
   American Hungarian Library & Historical Society (AHLHS), New York
   ========================================================================== */

:root {
  /* AHLHS Institutional Palette */
  --hl-burgundy: #6c2425;
  --hl-burgundy-hover: #541a1b;
  --hl-burgundy-light: rgba(108, 36, 37, 0.2);
  --hl-gold: #d49f5b;
  --hl-gold-light: rgba(212, 159, 91, 0.15);
  --hl-gold-border: rgba(212, 159, 91, 0.35);

  /* Dark Cinema Theme */
  --bg-cinema: #08090c;
  --bg-surface: #101217;
  --bg-card: #151820;
  --bg-card-hover: #1c202a;
  --border-subtle: #242a36;
  --border-hover: #3a4457;

  /* Typography Colors */
  --text-white: #f8fafc;
  --text-platinum: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Typography */
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Raleway', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Times New Roman', Georgia, serif;
  --font-mono: 'Liberation Mono', monospace, monospace;

  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-cinema);
}

body {
  background-color: var(--bg-cinema);
  color: var(--text-platinum);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* ==========================================================================
   1. AHLHS INSTITUTIONAL HEADER (Exact Match with video56)
   ========================================================================== */
.hl-site-header {
  background-color: #ffffff;
  width: 100%;
  position: relative;
  z-index: 100;
}

.hl-header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 34px 2rem 14px 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.hl-header-brand {
  margin-bottom: 22px;
}

.hl-brand-title-en, .hl-brand-title-hu {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 200;
  line-height: 1.41em;
  letter-spacing: normal;
  margin: 0;
  padding: 0;
}

.hl-brand-title-en a, .hl-brand-title-hu a {
  color: rgb(24, 24, 24);
  text-decoration: none;
  transition: color 0.2s ease;
}

.hl-brand-title-en a:hover, .hl-brand-title-hu a:hover {
  color: var(--hl-burgundy);
}

.hl-header-nav {
  width: 100%;
}

.hl-nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 20px;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.hl-nav-list::-webkit-scrollbar {
  display: none;
}

.hl-nav-item {
  white-space: nowrap;
}

.hl-nav-link {
  font-family: var(--font-heading);
  font-size: 14px;
  line-height: 1.79em;
  font-weight: 400;
  color: #525252;
  text-decoration: none;
  transition: color 0.4s ease 0s;
  display: inline-block;
  position: relative;
}

.hl-nav-link:hover {
  color: var(--hl-burgundy);
}

.hl-nav-active .hl-nav-link,
.hl-nav-link.current {
  color: var(--hl-burgundy) !important;
  font-weight: 600 !important;
  cursor: default;
}

.hl-mobile-toggle {
  display: none;
  position: absolute;
  top: 30px;
  right: 24px;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  cursor: pointer;
  background: none;
  border: none;
}

.hl-bar {
  width: 24px;
  height: 2px;
  background-color: #181818;
  border-radius: 2px;
  transition: var(--transition-fast);
}

.hl-header-divider {
  width: 100%;
  height: 1px;
  background-color: #e2e2e2;
  margin: 0;
}

/* ==========================================================================
   2. HERO SÉTA & KIÁLLÍTÁS FEJLÉC
   ========================================================================== */
.exhibition-hero {
  padding: 60px 24px 36px;
  text-align: center;
  background: radial-gradient(circle at 50% 20%, #151822 0%, var(--bg-cinema) 80%);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-anniv-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--hl-gold-light);
  border: 1px solid var(--hl-gold-border);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--hl-gold);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
  line-height: 1.15;
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--text-platinum);
  font-weight: 300;
  letter-spacing: 0.02em;
  max-width: 800px;
  margin: 0 auto 16px;
}

.hero-meta-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.meta-dot {
  color: var(--hl-gold);
}



/* ==========================================================================
   4. A FALI GALÉRIA RÁCS (Gallery Wall Grid)
   ========================================================================== */
.gallery-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

/* Fali Kártya (Museum Frame Card) */
.frame-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
  cursor: pointer;
  position: relative;
}

.frame-card:hover {
  transform: translateY(-6px);
  border-color: var(--hl-gold-border);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.75), 0 0 20px rgba(212, 159, 91, 0.1);
}

.frame-image-wrapper {
  background: #0d0e12;
  padding: 12px;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 0.82;
}

.frame-card.landscape-frame .frame-image-wrapper {
  aspect-ratio: 1.22;
}

.frame-card img {
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: transform var(--transition-smooth);
}

/* Micro zoom strictly BEHIND the badges */
.frame-card:hover img {
  transform: scale(1.025);
}

.frame-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  pointer-events: none;
  background: rgba(10, 12, 16, 0.94);
  border: 1px solid var(--hl-gold-border);
  color: var(--hl-gold);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.frame-room-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  pointer-events: none;
  background: rgba(10, 12, 16, 0.94);
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
  font-size: 0.70rem;
  padding: 3px 8px;
  border-radius: 4px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.frame-info {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.frame-source {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.frame-date {
  font-size: 0.78rem;
  color: var(--hl-gold);
  font-weight: 600;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.frame-headline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.90rem;
  color: var(--text-platinum);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   5. TELJES KÉPERNYŐS LIGHTBOX MODAL (Cinema Viewer)
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5, 6, 9, 0.96);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

/* Lightbox Header */
.lightbox-header {
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lightbox-counter {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--hl-gold);
}

.lightbox-controls {
  display: flex;
  gap: 12px;
}

.btn-close-modal {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: var(--transition-fast);
}

.btn-close-modal:hover {
  background: var(--hl-burgundy);
}

/* Lightbox Content Area */
.lightbox-content {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 12px;
}

.lightbox-img-wrapper {
  max-width: 90vw;
  max-height: 75vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-img-wrapper img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
}

/* Navigációs nyilak */
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(20, 24, 32, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: var(--transition-fast);
  z-index: 10;
}

.lightbox-arrow:hover {
  background: var(--hl-burgundy);
  border-color: var(--hl-burgundy);
}

.lightbox-arrow.prev {
  left: 20px;
}

.lightbox-arrow.next {
  right: 20px;
}

/* Lightbox Footer Caption */
.lightbox-footer {
  padding: 16px 24px;
  background: #090b10;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.lightbox-caption-source {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.lightbox-caption-headline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.98rem;
  color: var(--text-platinum);
  max-width: 900px;
  margin: 0 auto;
}

/* ==========================================================================
   6. FŐOLDALI ALSÓ RÉSZ (EXACT AHLHS CONTACT & FOOTER COPY FROM VIDEO56)
   ========================================================================== */

.hl-bottom-section {
  background-color: #ffffff;
  border-top: 1px solid #e2e2e2;
  padding: 60px 2rem 40px 2rem;
  width: 100%;
}

.hl-bottom-container {
  max-width: 1400px;
  margin: 0 auto;
}

.hl-contact-heading {
  font-family: var(--font-heading);
  font-size: 43px;
  font-weight: 700;
  color: var(--hl-burgundy);
  margin-bottom: 30px;
  line-height: 1.2;
}

.hl-contact-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  align-items: start;
}

.hl-col-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 400;
  color: #181818;
  margin-bottom: 12px;
  line-height: 1.3;
}

.hl-col-content {
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.6;
  color: #181818;
}

.hl-col-content p {
  margin-bottom: 3px;
}

.hl-col-content a {
  color: #181818;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.hl-col-content a:hover {
  color: var(--hl-burgundy);
}

.hl-social-links {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.hl-social-links a {
  color: #181818;
  transition: transform 0.2s ease, color 0.2s ease;
  display: inline-flex;
}

.hl-social-links a:hover {
  color: var(--hl-burgundy);
  transform: translateY(-2px);
}

.hl-site-footer {
  background-color: #ffffff;
  border-top: 1px solid #f0f0f0;
  padding: 24px 2rem 36px 2rem;
  width: 100%;
}

.hl-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.hl-copyright-text {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.79em;
  color: #181818;
  margin: 0;
}

/* Reszponzivitás (matching video56) */
@media (max-width: 991px) {
  .hl-brand-title-en, .hl-brand-title-hu {
    font-size: 17px;
    line-height: 1.35em;
  }

  .hl-mobile-toggle {
    display: flex;
  }

  .hl-header-nav {
    display: none;
    padding-top: 12px;
    border-top: 1px solid #e2e2e2;
  }

  .hl-header-nav.mobile-open {
    display: block;
  }

  .hl-nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
  }

  .hl-nav-item {
    width: 100%;
  }

  .hl-nav-link {
    width: 100%;
    padding: 0.45rem 0;
  }

  .hl-contact-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hl-contact-heading {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .lightbox-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  .lightbox-arrow.prev {
    left: 8px;
  }
  .lightbox-arrow.next {
    right: 8px;
  }
}

/* ==========================================================================
   7. ÚSZÓ GOMB A LAP TETEJÉRE (Floating Back to Top Button matching Wix)
   ========================================================================== */
.btn-scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--hl-burgundy);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background 0.2s ease;
}

.btn-scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.btn-scroll-top:hover {
  background: var(--hl-burgundy-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(108, 36, 37, 0.55);
}

.btn-scroll-top:active {
  transform: translateY(1px);
}

@media (max-width: 768px) {
  .btn-scroll-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}
