/* ===================================================
   MAIN.CSS - Moduláris CSS összefoglaló
   Jánosi Dalma - Pszichoterápia Website
   =================================================== */

/* Inter font importálása a Google Fonts-ról */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

/* Alapvető stílusok és változók */
@import 'base.css';

/* Layout és szerkezet */
@import 'layout.css';

/* Újrafelhasználható komponensek */
@import 'components.css';

/* Utility clasok */
@import 'utilities.css';

/* ===================================================
   EGYÉNI KIEGÉSZÍTÉSEK
   =================================================== */

/* Smooth scroll enhancement */
html {
  scroll-padding-top: 80px;
}

/* Print styles */
@media print {
  .header,
  .footer,
  .theme-toggle,
  .nav-mobile,
  .lang-switcher {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  a {
    text-decoration: underline;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --border-subtle: #000;
    --shadow-soft: none;
    --shadow-medium: none;
  }
}

/* Scroll-to-top button */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent-main);
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-medium);
  transition: all var(--transition-smooth);
  z-index: var(--z-fixed);
  opacity: 0;
}

.scroll-to-top.visible {
  display: flex;
  opacity: 1;
}

.scroll-to-top:hover {
  transform: translateY(-3px);
  background: var(--accent-hover);
}

.scroll-to-top svg {
  width: 24px;
  height: 24px;
  fill: white;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-soft);
  border-radius: 6px;
  border: 2px solid var(--bg-main);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-main);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--accent-soft) var(--bg-main);
}

/* No results message */
.no-results {
  text-align: center;
  padding: var(--spacing-xl);
  color: var(--text-muted);
  font-size: var(--font-size-lg);
}

.no-results svg {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--spacing-md);
  opacity: 0.3;
}

/* =================================================================
   SZOLGÁLTATÁS OLDALAK KIEGÉSZÍTÉSEK
   ================================================================= */

/* Bal oldali szöveges tartalom formázása */
.left p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  text-align: justify;
  text-justify: inter-word;
}

.left ul {
  padding-left: 1.5rem;
  margin: 0.75rem 0 1.5rem;
}

.left ul li {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 0.4rem;
}

/* Adatkezelési tájékoztató */
.privacy-content {
  max-width: 780px;
  margin: 0 auto;
}

.privacy-content h1 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.privacy-body h2 {
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  color: var(--text-heading);
}

.privacy-body p {
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 0.75rem;
  color: var(--text-body);
}

.privacy-body ul {
  padding-left: 1.5rem;
  margin: 0.5rem 0 0.75rem;
}

.privacy-body ul li {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0.3rem;
  color: var(--text-body);
}

.privacy-body a {
  color: var(--color-primary);
  text-decoration: underline;
}

.privacy-date {
  margin-top: 2.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Info-box h3 stílus */
.info-box h3 {
  font-family: "Poppins", sans-serif;
  font-size: 1.3rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

.info-box p {
  margin: 0.8rem 0;
  font-size: 1rem;
  line-height: 1.6;
}

.info-box strong {
  color: var(--accent-main);
  font-weight: 600;
}

/* Mobilon info-box felül */
@media (max-width: 899px) {
  .two-columns {
    grid-template-columns: 1fr;
  }
}

/* =================================================================
   TV SZEREPLÉSEK SLIDER
   ================================================================= */

.tv-appearances {
  background: var(--bg-main);
}

.tv-appearances h2 {
  margin-bottom: var(--spacing-lg);
}

.video-carousel {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.carousel-window {
  flex: 1;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: var(--spacing-md);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-item {
  flex-shrink: 0;
  min-width: 0;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--bg-beige);
  box-shadow: var(--shadow-soft);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-caption {
  text-align: center;
  margin-top: var(--spacing-sm);
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

.carousel-btn {
  flex-shrink: 0;
  background: var(--bg-surface);
  border: 2px solid var(--border-subtle);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.carousel-btn:hover {
  background: var(--accent-main);
  border-color: var(--accent-main);
}

.carousel-btn svg {
  fill: var(--text-muted);
  transition: fill var(--transition-fast);
}

.carousel-btn:hover svg {
  fill: white;
}

.carousel-btn.hidden {
  visibility: hidden;
  pointer-events: none;
}

/* =================================================================
   SZOLGÁLTATÁSOK KÖNYV
   ================================================================= */

.book-wrapper {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

/* --- Keretező elem: lapszél-rétegek itt jelennek meg --- */
.book-frame {
  flex: 1;
  position: relative;
}

/* Bal oldal: már átforgatott lapok */
.book-frame::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 0;
  width: calc(50% - 7px);
  height: calc(100% - 10px);
  background: linear-gradient(to right, #e8e2d8, #f0ece5);
  border-radius: var(--radius-card) 0 0 var(--radius-card);
  z-index: 0;
  box-shadow:
    -3px 3px 0 0 #e3ddd3,
    -6px 6px 0 0 #ddd7cc,
    -9px 9px 0 0 #d8d2c6;
}

/* Jobb oldal: még lapozatlan lapok */
.book-frame::after {
  content: '';
  position: absolute;
  top: 5px;
  right: 0;
  width: calc(50% - 7px);
  height: calc(100% - 10px);
  background: #f5f2ee;
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  z-index: 0;
  box-shadow:
    3px 3px 0 0 #f0ece7,
    6px 6px 0 0 #ece7e1,
    9px 9px 0 0 #e8e2db;
}

/* --- A könyv maga --- */
.book {
  position: relative;
  z-index: 1;
  display: flex;
  perspective: 2500px;
  min-height: 400px;
  border-radius: var(--radius-card);
  box-shadow:
    0 2px 0 0 rgba(0,0,0,0.06),
    0 10px 30px rgba(0,0,0,0.12),
    0 24px 60px rgba(0,0,0,0.10);
}

.book-page {
  flex: 1;
  padding: var(--spacing-lg);
  position: relative;
  z-index: 1;
}

.book-left {
  background: linear-gradient(105deg, #eee8df 0%, #f8f5f1 60%, var(--bg-surface) 100%);
  border-radius: var(--radius-card) 0 0 var(--radius-card);
  box-shadow: inset -8px 0 20px rgba(0,0,0,0.06);
}

.book-right-bg {
  background: var(--bg-surface);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  box-shadow: inset 8px 0 20px rgba(0,0,0,0.03);
}

/* Könyvgerinc */
.book-spine-bar {
  position: absolute;
  top: 0;
  left: calc(50% - 7px);
  width: 14px;
  height: 100%;
  z-index: 8;
  pointer-events: none;
  background: linear-gradient(to right,
    #7a6454 0%,
    #a88870 20%,
    #c0a488 40%,
    #b89880 60%,
    #a07860 80%,
    #886050 100%
  );
  box-shadow:
    inset 3px 0 6px rgba(0,0,0,0.3),
    inset -3px 0 6px rgba(0,0,0,0.3),
    0 0 8px rgba(0,0,0,0.15);
}

/* Lapozó elem */
.book-flip {
  position: absolute;
  top: 0;
  height: 100%;
  width: 50%;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.645, 0.045, 0.355, 1);
  z-index: 10;
  display: none;
}

.book-flip-side {
  position: absolute;
  inset: 0;
  padding: var(--spacing-lg);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.book-flip-front {
  background: var(--bg-surface);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  box-shadow: inset 8px 0 20px rgba(0,0,0,0.03);
}

.book-flip-back {
  transform: rotateY(180deg);
  background: linear-gradient(105deg, #eee8df 0%, #f8f5f1 60%, var(--bg-surface) 100%);
  border-radius: var(--radius-card) 0 0 var(--radius-card);
  box-shadow: inset -8px 0 20px rgba(0,0,0,0.06);
}

/* Oldal tartalom */
.book-page-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.book-page-inner img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-sm);
}

.book-page-inner h3 {
  font-size: var(--font-size-lg);
  line-height: 1.3;
  margin-bottom: var(--spacing-xs);
}

.book-page-inner p {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  line-height: 1.6;
  flex: 1;
  margin-bottom: var(--spacing-sm);
}

.book-page-inner .btn {
  align-self: flex-start;
}

/* Navigáció */
.book-nav-btn {
  flex-shrink: 0;
  background: var(--bg-surface);
  border: 2px solid var(--border-subtle);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.book-nav-btn:hover {
  background: var(--accent-main);
  border-color: var(--accent-main);
}

.book-nav-btn svg {
  fill: var(--text-muted);
  transition: fill var(--transition-fast);
}

.book-nav-btn:hover svg {
  fill: white;
}

.book-nav-btn.hidden {
  visibility: hidden;
  pointer-events: none;
}

/* Pontok */
.book-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: var(--spacing-md);
}

.book-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-subtle);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.book-dot.active {
  background: var(--accent-main);
  transform: scale(1.3);
}

.book-dot:hover:not(.active) {
  background: var(--accent-soft);
}

@media (max-width: 700px) {
  .book-frame::before,
  .book-frame::after {
    display: none;
  }

  .book-right-bg {
    display: none;
  }

  .book-left {
    border-right: none;
    background: var(--bg-surface);
    border-radius: var(--radius-card);
  }

  .book-spine-bar {
    display: none;
  }

  .book-flip {
    display: none !important;
  }

  /* Könyv elrejtése mobilon */
  .book-wrapper,
  .book-dots {
    display: none !important;
  }
}

/* =================================================================
   SZOLGÁLTATÁSOK KÁRTYAPAKLI (mobil nézet)
   ================================================================= */

.card-stack-wrapper {
  display: none; /* desktop: rejtett */
}

@media (max-width: 700px) {
  .card-stack-wrapper {
    display: block;
    position: relative;
    height: 450px;
    max-width: 340px;
    margin: 0 auto;
  }
}

/* Kártyalap */
.svc-card {
  position: absolute;
  inset: 0 0 auto 0;
  width: 100%;
  height: 420px;
  background: var(--bg-surface);
  border-radius: var(--radius-card);
  box-shadow: 0 6px 24px rgba(0,0,0,0.13), 0 2px 8px rgba(0,0,0,0.07);
  overflow: hidden;
  cursor: default;
  will-change: transform, opacity;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  padding: var(--spacing-sm);
}

.svc-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-xs);
  pointer-events: none;
  -webkit-user-drag: none;
}

.svc-card-body {
  padding: var(--spacing-xs) 0 0;
}

.svc-card-body h3 {
  font-size: var(--font-size-lg);
  margin: 0 0 var(--spacing-xs);
  line-height: 1.3;
}

.svc-card-body p {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Húzd el tipp */
.svc-swipe-hint {
  display: none;
}

@media (max-width: 700px) {
  .svc-swipe-hint {
    display: block;
    text-align: center;
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    opacity: 0.6;
    pointer-events: none;
  }
}

/* Részletek panel */
.svc-detail-overlay {
  position: absolute;
  inset: 0;
  background: var(--bg-surface);
  border-radius: var(--radius-card);
  z-index: 20;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateY(24px) scale(0.97);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease;
  box-shadow: 0 10px 40px rgba(0,0,0,0.18);
}

.svc-detail-overlay.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: all;
}

.svc-detail-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: rgba(0,0,0,0.07);
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 21;
  transition: background var(--transition-fast);
  flex-shrink: 0;
}

.svc-detail-close:hover {
  background: rgba(0,0,0,0.14);
}

.svc-detail-close svg {
  fill: var(--text-main);
}

.svc-detail-overlay .svc-detail-cover {
  width: 100%;
  height: 155px;
  object-fit: cover;
  display: block;
}

.svc-detail-body {
  padding: var(--spacing-md);
  padding-top: var(--spacing-sm);
}

.svc-detail-body h3 {
  font-size: var(--font-size-lg);
  margin: 0 0 var(--spacing-xs);
  padding-right: 2rem;
  line-height: 1.3;
}

.svc-detail-body p {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  line-height: 1.65;
  margin-bottom: var(--spacing-md);
}
