/* ===== ALAP BEÁLLÍTÁSOK, TIPOGRÁFIA ===== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

:root {
  --bg-light: #f5efe4;
  --bg-card: #ffffff;
  --bg-accent: #ffd570;
  --bg-accent-soft: #fff5d6;
  --text-main: #1f1b18;
  --text-muted: #5e5450;
  --text-soft: #7b6a5a;
  --border-soft: rgba(0, 0, 0, 0.06);
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.06);
  --radius-lg: 18px;
  --radius-md: 12px;
  --transition-fast: 0.25s ease;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  background: var(--bg-light);
  color: var(--text-main);
  line-height: 1.6;
}

/* papír-textúra hangulat az egész oldalra */

body,
.paper-texture {
  background: #f5efe4;
  background-image:
    radial-gradient(circle at top left, #ffffff 0, transparent 40%),
    radial-gradient(circle at bottom right, #f0e6d8 0, transparent 45%);
}

/* globális link stílus */

a {
  color: #7e3cff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* konténer */

.container {
  max-width: 1100px;
  padding: 0 1.75rem;
  margin: 0 auto;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  padding: 4.5rem 0 4rem;
}

.section-intro {
  max-width: 640px;
  color: var(--text-muted);
}

/* ===== FEJLÉC, NAV, LOGÓ ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 239, 228, 0.98);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.75rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* logó */

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-mark {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 22px;
  letter-spacing: 0.08em;
}

.logo-text {
  font-weight: 600;
  font-size: 1rem;
}

/* nav */

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 2px;
  background: #7e3cff;
  border-radius: 999px;
  transition: width var(--transition-fast);
}

.nav-link:hover::after {
  width: 100%;
}

/* lámpát fel – téma váltó */

.theme-toggle {
  margin-left: 1rem;
}

.theme-toggle button {
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  background: #2c163f;
  color: #fbe5ff;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.theme-toggle button span {
  font-size: 0.9rem;
}

/* ===== HERO ===== */

.hero {
  padding: 4rem 0 3rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  gap: 3.5rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.3rem, 3.9vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1.2rem;
}

.hero p {
  max-width: 540px;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* gombok */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast),
    color var(--transition-fast);
}

.btn.primary {
  background: linear-gradient(135deg, #ffb726, #ff7b00);
  color: #1a1204;
  box-shadow: 0 16px 40px rgba(255, 160, 0, 0.45);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 45px rgba(255, 160, 0, 0.55);
}

.btn.ghost {
  background: #ffffff;
  color: var(--text-main);
  box-shadow: 0 0 0 1px rgba(15, 12, 10, 0.06);
}

.btn.ghost:hover {
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
}

/* hero jobb oldal – profil + publikációk */

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.profile-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.4rem 1.1rem;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.profile-photo {
  width: 190px;
  height: 190px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  margin: 0 auto 0.9rem;
}

.profile-card figcaption {
  font-weight: 600;
}

/* legutóbbi publikációk */

.hero-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.4rem 1.3rem;
  box-shadow: var(--shadow-soft);
}

.hero-card-title {
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.8rem;
  color: var(--text-soft);
}

.hero-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-list li + li {
  margin-top: 0.55rem;
}

.hero-list a {
  font-size: 0.9rem;
}

/* ===== SUTTOGÓ SOR – QUOTE BAR ===== */

.quote-bar {
  padding: 0.75rem 0 0.25rem;
  
}

.quote-bar .container {
  display: flex;
  justify-content: center;   /* <<< ez húzza középre az idézetet */
}

.quote-text {
  margin: 0;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-soft);
  text-align: center;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 1;
  transition: opacity 0.6s ease;
}

.dark-theme .quote-text {
  color: #cbbde5;
}

.fade-out {
  opacity: 0;
}

.quote-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  display: inline-block;
  transform-origin: center;
  opacity: 0.8;
}

.dark-theme .quote-dot {
  background: #f1d2ff;
}

/* fröccsenő animáció váltáskor */
.dot-pulse {
  animation: dot-pulse 0.7s ease-out;
}

@keyframes dot-pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  60% {
    transform: scale(1.8);
    opacity: 0.3;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

/* ===== VERSEK – KÁRTYÁK ===== */

#writing h2 {
  margin-bottom: 0.4rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.7rem;
  margin-top: 2.4rem;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.4rem 1.1rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.09);
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.card-meta {
  margin: 0 0 0.55rem;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.card-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.4rem;
}

/* details – elolvasom */

.poem-details {
  margin: 0;
}

.card-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: #7e3cff;
  cursor: pointer;
  list-style: none;
}

.card-link::-webkit-details-marker {
  display: none;
}

.poem-text {
  margin-top: 0.9rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 0.95rem;
  white-space: pre-wrap;
}

/* Kategória szűrő / címkék */

.tag-filter {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.tag-filter-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
  margin-right: 0.25rem;
}

.tag-btn {
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.8);
  padding: 0.25rem 0.9rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background var(--transition-fast),
              color var(--transition-fast),
              box-shadow var(--transition-fast),
              transform var(--transition-fast);
}

.tag-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.tag-btn.active {
  background: linear-gradient(135deg, #ffb726, #ff7b00);
  color: #1a1204;
  box-shadow: 0 12px 28px rgba(255, 160, 0, 0.45);
}

/* címkék a kártyákon */

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.6rem;
}

.card-tag {
  font-size: 0.75rem;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.03);
  color: var(--text-soft);
}

/* dark mode változat */

.dark-theme .tag-btn {
  background: #130d22;
  border-color: rgba(255, 255, 255, 0.12);
  color: #e7dbff;
}

.dark-theme .tag-btn.active {
  background: linear-gradient(135deg, #ffb726, #ff7b00);
  color: #1a1204;
  box-shadow: 0 12px 28px rgba(255, 160, 0, 0.55);
}

.dark-theme .card-tag {
  background: rgba(255, 255, 255, 0.06);
  color: #cbbde5;
}


/* ===== SZÍNHÁZ SZEKCIÓ ===== */

#theatre .section-intro {
  max-width: 640px;
}

.theatre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
  margin-top: 2.4rem;
}

.theatre-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem 1.3rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.theatre-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.09);
}

.theatre-card h3 {
  margin: 0;
}

.theatre-meta {
  font-size: 0.88rem;
  color: var(--text-soft);
}

.theatre-excerpt {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.theatre-readmore {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ===== KÁLLOY MOLNÁR PÉTER – IN MEMORIAM ===== */

.inmemoriam {
  margin-top: 3.5rem;
  display: flex;
  justify-content: center;
}

.inmemoriam-inner {
  width: 100%;
  max-width: 850px;
  border: 3px solid #000;
  border-radius: 10px;
  padding: 2.2rem 2rem;
  background: #fdfdfd;
  color: var(--text-main);
  text-align: center;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.08);
}

.inmemoriam-photo {
  width: 100%;
  max-width: 620px;
  display: block;
  margin: 0 auto 0.7rem;
  border-radius: 6px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
  border: none;
}

.inmemoriam-credit {
  font-size: 0.85rem;
  color: #444;
  font-style: italic;
  margin-bottom: 1.5rem;
}

/* dark mode – in memoriam */

.dark-theme .inmemoriam-inner {
  background: #0c0b0e;
  color: #eee;
  border-color: #fff;
}

.dark-theme .inmemoriam-credit {
  color: #c9c9c9;
}

.dark-theme .inmemoriam-photo {
  box-shadow: 0 8px 28px rgba(255, 255, 255, 0.08);
}

/* ===== KÖTETEK, RÓLAM, KAPCSOLAT – csak alapok ===== */

.books-grid,
.contact-list {
  margin-top: 2rem;
  padding-left: 1.1rem;
}

/* ===== JOGI & ADATVÉDELMI OLDAL STÍLUS ===== */

.legal-page {
  max-width: 780px;
  margin: 4rem auto 5rem auto;
  padding: 2.5rem 2.25rem;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.legal-page::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  pointer-events: none;
}

.legal-page h1 {
  font-size: clamp(1.9rem, 3vw, 2.2rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.legal-lead {
  font-size: 0.95rem;
  color: var(--text-soft);
  margin-bottom: 2rem;
}

/* dropcap az első bekezdésre */

.legal-page p:not(.legal-lead):first-of-type::first-letter {
  font-size: 3.1rem;
  float: left;
  line-height: 0.9;
  padding-right: 0.25rem;
  padding-top: 0.1rem;
  font-weight: 600;
  color: #b57a4b;
  font-family: "Georgia", "Times New Roman", serif;
}

.legal-page p {
  margin: 0 0 1rem 0;
  line-height: 1.7;
  font-size: 1rem;
}

.legal-page ul {
  margin: 0 0 1.5rem 1.2rem;
  padding-left: 0.8rem;
}

.legal-page li {
  margin-bottom: 0.4rem;
}

.legal-page hr {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  margin: 1.8rem 0 1.5rem 0;
}

.legal-page a {
  color: #b56832;
  text-decoration: none;
  border-bottom: 1px dotted rgba(181, 104, 50, 0.5);
}

.legal-page a:hover {
  border-bottom-style: solid;
}

.legal-page p:last-of-type {
  margin-top: 1.5rem;
  font-weight: 600;
}

@media (max-width: 768px) {
  .legal-page {
    margin: 2.5rem 1rem 3.5rem 1rem;
    padding: 2rem 1.4rem;
  }

  .legal-page h1 {
    font-size: 1.6rem;
  }
}

/* ===== FOOTER + KÉZÍRÁSOS ALÁÍRÁS ===== */

.site-footer {
  text-align: center;
  padding: 2.5rem 0 3rem;
  opacity: 0.95;
}

.site-footer p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.site-footer .signature {
  width: 240px;
  max-width: 70%;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.08));
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.site-footer .signature:hover {
  opacity: 1;
  transform: scale(1.03);
}

/* animált aláírás */

.site-footer .signature #signature-outline {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: signature-draw 2.8s ease forwards;
}

.site-footer .signature #signature-fill {
  opacity: 0;
  animation: signature-fade 1.4s ease forwards;
  animation-delay: 2.3s;
}

@keyframes signature-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes signature-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ===== COOKIE BANNER ===== */

.cookie-banner {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 18px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  z-index: 9999;
  backdrop-filter: blur(4px);
  opacity: 0;
  transform: translateY(100%);
  transition: 0.5s ease;
}

.cookie-banner.show {
  opacity: 1;
  transform: translateY(0);
}

.cookie-banner p {
  margin: 0;
  max-width: 80%;
  line-height: 1.5;
}

.cookie-banner a {
  color: #ffd570;
  text-decoration: underline;
}

.cookie-banner button {
  background: #ffd570;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}

.cookie-banner button:hover {
  background: #ffcc3c;
}

/* ===== ÉJSZAKAI MÓD / DARK THEME ===== */

.dark-theme body,
.dark-theme {
  background: #050309;
  color: #f4edf8;
}

.dark-theme .site-header {
  background: rgba(6, 3, 16, 0.97);
  border-bottom-color: rgba(255, 255, 255, 0.04);
}

.dark-theme .logo-mark {
  border-color: rgba(255, 255, 255, 0.4);
}

.dark-theme .nav-link {
  color: #f5ecff;
}

.dark-theme .hero {
  background: radial-gradient(circle at top, #1b1034 0, #050309 55%);
  color: #f7f0ff;
}

.dark-theme .hero p {
  color: #d3c7ec;
}

.dark-theme .hero-card,
.dark-theme .profile-card,
.dark-theme .card,
.dark-theme .theatre-card {
  background: #130d22;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

.dark-theme .card-text,
.dark-theme .theatre-excerpt,
.dark-theme .section-intro {
  color: #d0c4ea;
}

.dark-theme .card-meta,
.dark-theme .hero-card-title,
.dark-theme .theatre-meta {
  color: #a497d0;
}

.dark-theme .section {
  background: radial-gradient(circle at top, #120b25 0, #050309 55%);
}

.dark-theme #theatre {
  background: radial-gradient(circle at top, #180e32 0, #050309 55%);
}

/* aláírás színek dark mode-ban */

.dark-theme .site-footer .signature #signature-outline,
.dark-theme .site-footer .signature #signature-fill {
  stroke: #f8e3c4;
  fill: #f8e3c4;
}

.dark-theme .site-footer .signature {
  filter: drop-shadow(0 0 6px rgba(255, 210, 140, 0.4));
}

.dark-theme .cookie-banner {
  background: rgba(15, 10, 30, 0.96);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-side {
    max-width: 420px;
  }
}

@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .nav-list {
    flex-wrap: wrap;
    row-gap: 0.4rem;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero-actions {
    gap: 0.75rem;
  }

  .profile-photo {
    width: 160px;
    height: 160px;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .cookie-banner p {
    max-width: 100%;
  }
}

.search-box {
  margin: 2rem 0 1rem;
  text-align: center;
}

.search-box input {
  width: 100%;
  max-width: 380px;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.15);
  font-size: 1rem;
  transition: .3s;
}

.search-box input:focus {
  border-color: #7e3cff;
  outline: none;
  box-shadow: 0 0 12px rgba(126,60,255,.25);
}

.dark-theme .search-box input {
  background: #1a1328;
  border-color: rgba(255,255,255,0.25);
  color: #eee;
}
