/* Wayspark – Cinematic Dark Mode */

:root {
  --wayspark-bg: #050505;
  --wayspark-gold: rgba(212, 175, 55, 0.45);
  --wayspark-gold-strong: rgba(212, 175, 55, 0.7);
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
}

.wayspark-body {
  background-color: var(--wayspark-bg);
  font-family: var(--sans);
}

/* Háttérvideó – 720p forrás, GPU réteg, contain a szaggatás csökkentésére */
.bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  contain: strict;
  isolation: isolate;
}

.bg-video-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.25) 0%, rgba(5, 5, 5, 0.5) 100%);
}

.wayspark-title {
  font-family: var(--serif);
  font-weight: 600;
}

.page-overlay {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.page-overlay > * {
  pointer-events: auto;
}

/* Nyelvválasztó zászlók */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.lang-flag {
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.25rem;
  background: transparent;
  border: none;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s, transform 0.15s;
  border-radius: 2px;
}
.lang-flag:hover {
  opacity: 1;
  transform: scale(1.1);
}
.lang-flag.active {
  opacity: 1;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5);
}

/* Földrész szűrők */
.filter-nav {
  pointer-events: auto;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.875rem;
  min-height: 44px;
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 9999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.filter-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.95);
}

.filter-chip:has(input:checked) {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--wayspark-gold-strong);
  color: rgba(255, 255, 255, 0.98);
}

.filter-chip .filter-checkbox {
  margin: 0;
  accent-color: var(--wayspark-gold-strong);
  cursor: pointer;
}

/* Pördítsd gomb – glassmorphism, szép animáció, mobil tap cél (min 44px) */
.spin-btn {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  padding: 0.875rem 2.25rem;
  min-height: 48px;
  min-width: 140px;
  border-radius: 9999px;
  cursor: pointer;
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  animation: btnEnter 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes btnEnter {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.spin-btn-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.spin-btn-loading[hidden] {
  display: none;
}

.spin-btn.is-loading .spin-btn-text {
  display: none;
}

.spin-btn.is-loading .spin-btn-loading {
  display: inline-flex;
}

.spin-btn.is-loading .spin-btn-loading[hidden] {
  display: inline-flex;
}

.spin-btn-spinner {
  width: 1.125rem;
  height: 1.125rem;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  animation: spinBtnRotate 0.7s linear infinite;
}

@keyframes spinBtnRotate {
  to {
    transform: rotate(360deg);
  }
}

.spin-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: scale(1.03) translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.spin-btn:active {
  transform: scale(0.98) translateY(0);
  transition-duration: 0.1s;
}

.spin-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: scale(1) translateY(0);
}

/* Eredménykártya – belépő animáció */
.result-section {
  width: 100%;
  max-width: 420px;
  margin-top: 1.5rem;
}

.result-section.visible {
  animation: cardEnter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes cardEnter {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.result-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  padding: 1.5rem 1.5rem 1.25rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.result-category {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wayspark-gold-strong);
  margin-bottom: 0.35rem;
}

.result-category:empty {
  display: none;
}

.result-headline {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.98);
  margin-bottom: 1rem;
}

.result-desc {
  font-family: var(--sans);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1.25rem;
}

.result-desc:empty {
  display: none;
}

.result-actions {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.result-btn {
  display: block;
  text-align: center;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}

.result-btn-primary {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.9) 0%, rgba(184, 134, 11, 0.9) 100%);
  color: #0a0a0a;
  border: none;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.35);
}

.result-btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 28px rgba(212, 175, 55, 0.45);
  background: linear-gradient(135deg, rgba(212, 175, 55, 1) 0%, rgba(184, 134, 11, 1) 100%);
}

.result-btn-primary:active {
  transform: translateY(-1px) scale(1);
}

.result-btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
}

.result-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.result-btn-secondary:active {
  transform: translateY(0);
}

/* Impresszum modal */
.impresszum-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.impresszum-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.impresszum-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

.impresszum-content {
  position: relative;
  max-width: 440px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  background: rgba(15, 15, 15, 0.95);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  transform: scale(0.96) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.impresszum-modal.is-open .impresszum-content {
  transform: scale(1) translateY(0);
}

.impresszum-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--glass-border);
}

.impresszum-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.95);
}

.impresszum-close {
  width: 2.75rem;
  min-width: 44px;
  height: 2.75rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.6);
  background: transparent;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.impresszum-close:hover {
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.08);
}

.impresszum-body {
  padding: 1.5rem;
  font-family: var(--sans);
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.8);
}

.impresszum-body p {
  margin-bottom: 1rem;
}

.impresszum-body p:last-child {
  margin-bottom: 0;
}

.impresszum-subtitle {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--wayspark-gold-strong);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.impresszum-link {
  color: var(--wayspark-gold-strong);
  text-decoration: none;
  transition: opacity 0.2s;
}

.impresszum-link:hover {
  opacity: 0.9;
  text-decoration: underline;
}

/* Impresszum link – mobil tap cél */
.impresszum-trigger {
  padding: 0.5rem 0.25rem;
  margin: -0.5rem -0.25rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--glass-border);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner-text {
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.cookie-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.cookie-accept-btn {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.8125rem;
  padding: 0.625rem 1.5rem;
  min-height: 44px;
  color: #0a0a0a;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.9) 0%, rgba(184, 134, 11, 0.9) 100%);
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cookie-accept-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35);
}

.cookie-accept-btn:active {
  transform: scale(0.98);
}

.cookie-reject-btn {
  font-family: var(--sans);
  font-size: 0.8125rem;
  padding: 0.625rem 1.25rem;
  min-height: 44px;
  color: rgba(255, 255, 255, 0.85);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 9999px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.cookie-reject-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
  color: rgba(255, 255, 255, 0.95);
}

.cookie-reject-btn:active {
  transform: scale(0.98);
}

/* Blog / Ötletek */
.blog-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-card {
  display: block;
  padding: 1rem 1.25rem;
  font-family: var(--sans);
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.9);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 0.75rem;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.blog-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--wayspark-gold-strong);
  color: rgba(255, 255, 255, 0.98);
}

.blog-post-body p {
  margin-bottom: 1rem;
}

.blog-post-body p:last-child {
  margin-bottom: 0;
}

.blog-post-body code {
  padding: 0.15rem 0.35rem;
  font-size: 0.875em;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0.25rem;
}

/* Felső navigáció */
.top-nav {
  pointer-events: auto;
}

.top-nav-link {
  font-family: var(--sans);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s;
}

.top-nav-link:hover {
  color: rgba(255, 255, 255, 0.95);
}

.top-nav-link-active {
  color: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--wayspark-gold-strong);
}

/* TikTok szekció – Kedv csináló aloldal, kisebb beágyazások */
.tiktok-embeds {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.tiktok-embeds-small {
  gap: 1.25rem;
}

.tiktok-embed-wrap {
  border-radius: 0.5rem;
  overflow: hidden;
  max-width: 325px;
}

.tiktok-embed-small {
  max-width: 220px;
  width: 220px;
  height: 390px;
  overflow: hidden;
}

.tiktok-embed-small iframe {
  transform: scale(0.68);
  transform-origin: top left;
  width: 325px !important;
  height: 575px !important;
  max-width: none !important;
  pointer-events: auto;
}

.tiktok-embed-wrap iframe {
  display: block;
  border: none;
}

/* Responsive – mobil tap célok és olvashatóság */
@media (max-width: 480px) {
  .result-card {
    padding: 1.25rem 1.25rem 1rem;
  }

  .result-headline {
    font-size: 1.5rem;
  }

  .impresszum-content {
    max-height: 90vh;
  }

  .impresszum-body {
    font-size: 0.9375rem;
  }

  .impresszum-modal {
    padding: 1rem;
  }
}
