/*
Theme Name:   Gergely Edó – Divi Child
Theme URI:    https://gergelyedo.com
Description:  Divi child theme – Gergely Edó személyes szerzői oldal
Author:       Gergely Edó
Template:     Divi
Version:      1.0.0
License:      GNU General Public License v2 or later
Text Domain:  gergely-edo-divi
*/

/* ── CSS VÁLTOZÓK ───────────────────────────────────────────── */
:root {
  --bg:        #f5ede0;
  --bg2:       #ede0ce;
  --text:      #1a1208;
  --muted:     #6b5840;
  --accent:    #8b5c1a;
  --accent2:   #6b450e;
  --card-bg:   #e8dac8;
  --nav-bg:    rgba(245,237,224,0.95);
  --border:    rgba(139,92,26,0.2);
  --glow:      rgba(139,92,26,0.08);
}

/* ── ALAP ────────────────────────────────────────────────────── */
body {
  font-family: 'Outfit', sans-serif !important;
  background: var(--bg) !important;
  color: var(--text) !important;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── NAVIGÁCIÓ ───────────────────────────────────────────────── */
#main-header,
#top-header {
  background: var(--nav-bg) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border) !important;
}
#main-header .et_pb_row {
  padding: 0 clamp(1.5rem, 5vw, 4rem) !important;
}
.et_pb_menu .nav li a,
#top-menu li a {
  color: var(--muted) !important;
  font-size: 0.82rem !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  font-family: 'Outfit', sans-serif !important;
}
.et_pb_menu .nav li a:hover,
#top-menu li a:hover {
  color: var(--accent2) !important;
}
.logo_container a,
.et_pb_logo img {
  color: var(--accent) !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
}

/* ── GOMBOK ─────────────────────────────────────────────────── */
.edo-btn,
.et_pb_button {
  display: inline-block !important;
  padding: 0.85rem 2.2rem !important;
  border: 1px solid var(--accent) !important;
  color: var(--accent) !important;
  background: transparent !important;
  font-size: 0.82rem !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  transition: background 0.2s, color 0.2s !important;
  border-radius: 0 !important;
  font-family: 'Outfit', sans-serif !important;
}
.edo-btn:hover,
.et_pb_button:hover {
  background: var(--accent) !important;
  color: var(--bg) !important;
}

/* ── SZEKCIÓK ────────────────────────────────────────────────── */
.et_pb_section {
  padding: clamp(4rem, 8vw, 7rem) 0 !important;
}
.et_pb_row {
  max-width: 1100px !important;
}

/* ── SZEKCIÓ LABEL ───────────────────────────────────────────── */
.edo-section-label {
  font-size: 0.72rem !important;
  letter-spacing: 0.25em !important;
  text-transform: uppercase !important;
  color: var(--accent) !important;
  margin-bottom: 1rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.8rem !important;
}
.edo-section-label::before {
  content: '' !important;
  display: inline-block !important;
  width: 24px !important;
  height: 1px !important;
  background: var(--accent) !important;
}

/* ── HERO SZEKCIÓ ────────────────────────────────────────────── */
#edo-hero.et_pb_section {
  min-height: 100vh !important;
  padding: 0 !important;
  background: var(--bg) !important;
  position: relative;
  overflow: hidden;
}
#edo-hero .et_pb_row {
  max-width: 100% !important;
  width: 100% !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  min-height: 100vh !important;
  padding: 0 !important;
  margin: 0 !important;
}
#edo-hero .et_pb_column:first-child {
  padding: clamp(5rem, 8vw, 9rem) clamp(2rem, 5vw, 6rem) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  position: relative;
  z-index: 2;
}
#edo-hero .et_pb_column:first-child::before {
  content: '';
  position: absolute;
  top: -20%; left: -10%;
  width: 70%; height: 140%;
  background: radial-gradient(ellipse at 40% 50%, var(--glow) 0%, transparent 65%);
  pointer-events: none;
  z-index: -1;
}
#edo-hero .et_pb_column:last-child {
  position: relative !important;
  overflow: hidden !important;
  padding: 0 !important;
}
#edo-hero .et_pb_column:last-child img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
  display: block !important;
  filter: brightness(0.9) !important;
}
#edo-hero .et_pb_column:last-child::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, var(--bg) 0%, transparent 30%, transparent 70%, var(--bg) 100%),
    linear-gradient(to top, var(--bg) 0%, transparent 20%);
  pointer-events: none;
}
.hero-eyebrow-text {
  font-size: 0.75rem !important;
  letter-spacing: 0.25em !important;
  text-transform: uppercase !important;
  color: var(--accent) !important;
  margin-bottom: 1.5rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.8rem !important;
}
.hero-eyebrow-text::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}
#edo-hero h1 {
  font-size: clamp(3rem, 6vw, 5.5rem) !important;
  font-weight: 700 !important;
  line-height: 1.0 !important;
  letter-spacing: -0.02em !important;
  color: var(--text) !important;
  margin-bottom: 1rem !important;
  font-family: 'Outfit', sans-serif !important;
}
#edo-hero h1 span {
  color: var(--accent) !important;
}
.hero-tagline-text {
  font-size: clamp(1.1rem, 2vw, 1.4rem) !important;
  font-weight: 300 !important;
  color: var(--muted) !important;
  margin-bottom: 2.5rem !important;
  font-style: italic !important;
}
.hero-desc-text {
  font-size: 0.95rem !important;
  color: var(--muted) !important;
  max-width: 38ch !important;
  line-height: 1.8 !important;
  margin-bottom: 3rem !important;
}

/* ── ELVÁLASZTÓK ─────────────────────────────────────────────── */
.edo-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
}
.edo-ray-divider {
  width: 100%;
  height: 60px;
  background:
    linear-gradient(135deg, transparent 45%, var(--border) 45%, var(--border) 46%, transparent 46%),
    linear-gradient(to right, transparent, var(--border), transparent);
  background-size: 100% 100%, 100% 1px;
  background-position: center, center;
  background-repeat: no-repeat;
}

/* ── RÓLAM SZEKCIÓ ───────────────────────────────────────────── */
#edo-rolam.et_pb_section {
  background: var(--bg2) !important;
}
.about-grid-wrap {
  display: grid !important;
  grid-template-columns: 1fr 1.6fr !important;
  gap: 5rem !important;
  align-items: start !important;
}
.about-photo-wrap {
  position: relative !important;
}
.about-photo-wrap::before {
  content: '';
  position: absolute;
  inset: -8px -8px 8px 8px;
  border: 1px solid var(--border);
  pointer-events: none;
  z-index: 1;
}
.about-photo-wrap img {
  width: 100% !important;
  display: block !important;
  filter: brightness(0.95) contrast(1.05) !important;
}
.about-text-block p {
  color: var(--muted) !important;
  font-size: 0.95rem !important;
  line-height: 1.9 !important;
  margin-bottom: 1.2rem !important;
}
.about-text-block p:first-of-type {
  font-size: 1.1rem !important;
  color: var(--text) !important;
  font-weight: 400 !important;
}

/* ── KÉPZÉSEK ────────────────────────────────────────────────── */
.credentials-wrap {
  margin-top: 2.5rem;
}
.credentials-wrap h4 {
  font-size: 0.72rem !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  color: var(--accent) !important;
  margin-bottom: 1.2rem !important;
  font-family: 'Outfit', sans-serif !important;
}
.cred-item {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 1rem;
  align-items: baseline;
}
.cred-year {
  min-width: 60px;
  color: var(--accent2);
  font-size: 0.78rem;
  font-weight: 500;
  flex-shrink: 0;
}

/* ── KÖNYVEK SZEKCIÓ ─────────────────────────────────────────── */
#edo-konyvek.et_pb_section {
  background: var(--bg) !important;
}
.books-grid-wrap {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
  gap: 2rem !important;
}
.book-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.book-cover {
  position: relative;
  aspect-ratio: 2/3;
  overflow: hidden;
  background: var(--card-bg);
}
.book-cover img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.4s !important;
}
.book-card:hover .book-cover img {
  transform: scale(1.04) !important;
}
.book-cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
}
.book-initial {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.book-placeholder-title {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
}
.book-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 80%, var(--glow) 0%, transparent 60%);
  pointer-events: none;
  transition: opacity 0.3s;
}
.book-card-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.book-card-sub {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}
.book-card-meta {
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.05em;
}

/* ── KÖNYVBEMUTATÓK ──────────────────────────────────────────── */
#edo-bemutatók.et_pb_section {
  background: var(--bg2) !important;
}
.launches-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.launch-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.launch-item:first-child {
  border-top: 1px solid var(--border);
}
.launch-date {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}
.launch-date span {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}
.launch-info h3 {
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: var(--text) !important;
  margin-bottom: 0.25rem !important;
  font-family: 'Outfit', sans-serif !important;
}
.launch-info p {
  font-size: 0.85rem !important;
  color: var(--muted) !important;
  margin: 0 !important;
}
.launch-tag {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.3rem 0.8rem;
  white-space: nowrap;
}
.launch-tag.upcoming {
  color: var(--accent);
  border-color: var(--accent);
}

/* ── ESEMÉNYEK SZEKCIÓ ───────────────────────────────────────── */
#edo-esemenyek.et_pb_section {
  background: var(--bg) !important;
}
.events-grid-wrap {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  gap: 1.5rem !important;
}
.event-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: border-color 0.2s, transform 0.2s;
}
.event-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.event-date {
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  font-weight: 500;
}
.event-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}
.event-place {
  font-size: 0.82rem;
  color: var(--muted);
}
.event-type {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--border);
  padding: 0.25rem 0.7rem;
  margin-top: 0.4rem;
  align-self: flex-start;
}

/* ── FOOTER ──────────────────────────────────────────────────── */
#main-footer {
  background: var(--bg2) !important;
  border-top: 1px solid var(--border) !important;
}
#main-footer .et_pb_widget,
#main-footer p,
#footer-bottom p {
  color: var(--muted) !important;
  font-size: 0.82rem !important;
  font-family: 'Outfit', sans-serif !important;
}
.footer-name {
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: var(--accent) !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
}

/* ── FADE-IN ANIMÁCIÓ ────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ── RESZPONZÍV ──────────────────────────────────────────────── */
@media (max-width: 980px) {
  #edo-hero .et_pb_row {
    grid-template-columns: 1fr !important;
  }
  #edo-hero .et_pb_column:last-child {
    display: none !important;
  }
  .about-grid-wrap {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .launch-item {
    grid-template-columns: 60px 1fr !important;
  }
  .launch-tag {
    display: none !important;
  }
}
