
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
    --color-primary: #864747;
    --color-primary-hover: #854545;
    --color-accent: #e68a4c;
    --color-accent-hover: #d67a3c;
    --color-bg: #000000;
    --color-surface: #d66a6a;
    --color-text: #ffffff;
    --color-text-secondary: #626c71;
    --color-border: #000000;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;  /* new */
    max-width: 100vw;  /* new */
    width: 100%;       /* new */
}

/* Header & Navigation */
header {
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    position: relative; 
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    z-index: 10;
}

.logo-icon {
  width: 24px;
  height: 24px;
}

.logo-text {
  font-family: "Pacifico", cursive;
  font-size: 1.3rem;
  color: var(--color-primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    position: absolute; 
    left: 50%;
    transform: translateX(-50%); 
}

.nav-links a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--color-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, #1d7a86 100%);
    color: white;
    padding: 5rem 2rem;
    text-align: center;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Filter Section */
.filter-section {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.7rem 1.5rem;
    border: 2px solid var(--color-border);
    background-color: var(--color-surface);
    color: var(--color-text);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* Footer */
footer {
    background-color: var(--color-bg); /* vagy fix #994a4a */
    color: var(--color-text); /* fehér szöveg */
    padding: 3rem 2rem;
    margin-top: 4rem;
    text-align: center;

    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    
}

.footer-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--color-accent);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: var(--color-accent);
}

.footer-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: #ee7474;
    font-size: 0.9rem;
}

.hidden {
    display: none;
}

/* ===== KATALÓGUS GALÉRIA - ÚJ 3D SLIDER RÉSZ ===== */

.cat-body {
  font-family: "Poppins", sans-serif;
  background: #000000;
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  user-select: none;
  padding: 40px 20px;
  width: 100%;       /* new */
  max-width: 100vw;  /* new */
  overflow-x: hidden; /* new */
  position: relative;
}

.cat-header {
  text-align: center;
  margin-bottom: 60px;
}

.cat-subtitle {
  color: #ff6b35;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.cat-main-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  color: #995353;
  line-height: 1.1;
}

.cat-slider-container {
  perspective: 1500px;
  perspective-origin: 50% 50%;
  cursor: grab;
  width: 100%;
  max-width: 1400px;
  overflow: hidden;
  margin: 0 auto;  /* new - centrírozódik! */
}

.cat-slider-container.dragging {
  cursor: grabbing;
}

.cat-slider-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transform-style: preserve-3d;
}

.cat-card {
  flex-shrink: 0;
  width: 240px;
  background: rgb(0, 0, 0);
  overflow: hidden;
  transform-style: preserve-3d;
  position: relative;
  cursor: pointer;
  will-change: transform, height; /* ⭐ UPDATED */
  transition:
    transform 0.6s cubic-bezier(.22,.61,.36,1),
    height 0.6s ease,
    clip-path 0.4s ease; /* ⭐ UPDATED */
}

.cat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.15),
    transparent 30%,
    transparent 70%,
    rgba(0, 0, 0, 0.15)
  );
  transform: translateZ(-8px);
  pointer-events: none;
}

.cat-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #e0e0e0;
  transform: translateZ(-16px);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  position: relative;
  z-index: 1;
}

.cat-card .cat-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.cat-card:hover .cat-hover-overlay {
  opacity: 1;
}

.cat-card .cat-hover-overlay span {
  color: white;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cat-slider-track.blurred .cat-card:not(.expanded) {
  filter: blur(8px);
  transition: filter 0.6s ease;
}

.cat-card.expanded {
  z-index: 1000 !important;
}

.cat-card-info {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  z-index: 1001;
  max-width: 600px;
  padding: 1.5rem;
  background: #ff6b35;
  box-shadow: 4px 3px 18px 4px #b7b7b721;
  min-width: 375px;
}

.cat-card-info.visible {
  opacity: 1;
  pointer-events: all;
}

.cat-card-info h2 {
  font-size: 36px;
  font-weight: 900;
  color: #0a0a0a;
  margin-bottom: 16px;
}

.cat-card-info p {
  font-size: 18px;
  color: #080808;
  line-height: 1.7;
}

.cat-close-btn {
  position: fixed;
  top: 40px;
  right: 40px;
  width: 60px;
  height: 60px;
  background: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1002;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.cat-close-btn.visible {
  opacity: 1;
  pointer-events: all;
}

.cat-close-btn:hover {
  background: #ff6b35;
  color: white;
  transform: rotate(90deg) scale(1.1);
}

.cat-close-btn svg {
  width: 24px;
  height: 24px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section a {
        display: inline-block;
        margin: 0 1rem;
    }

    .filter-section {
        margin-bottom: 2rem;
    }

    .modal-content {
        width: 90%;
        max-width: 90%;
    }

    /* CAT GALLERY MOBILE */
    .cat-body {
        padding: 20px 10px;
    }

    .cat-header {
        margin-bottom: 40px;
    }

    .cat-main-title {
        font-size: clamp(28px, 4vw, 40px);
    }

    .cat-slider-container {
        max-width: 100%;
    }

    .cat-card {
        width: 160px;
    }

    .cat-card-info {
        bottom: 50px;
        padding: 1rem;
        width: 90%;
        max-width: 90%;
        min-width: auto;
    }

    .cat-close-btn {
        top: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .cat-card {
        width: 140px;
    }

    .cat-card-info h2 {
        font-size: 24px;
    }

    .cat-card-info p {
        font-size: 14px;
    }
}

/* memóriabubi */

/* Memory layer a galéria két oldalán */
.memory-section {
  position: absolute;
  top: 90%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none; /* ne zavarja a slider interakciót */
  padding: 0 40px;
  perspective: 1600px;
}

/* Bal és jobb oszlop */
.memory-column {
  display: flex;
  flex-direction: column;
  gap: 140px;
  pointer-events: auto;
}

/* BAL OLDAL – bal szélhez igazítva */
.memory-column.left {
  align-items: flex-start;
}

/* JOBB OLDAL – jobb szélhez igazítva */
.memory-column.right {
  align-items: flex-end;
}

/* Kártya alap */
.book-page {
  width: 240px;
  height: 140px;
  background: #000;
  perspective: 1200px;
}

/* KÉP ALAP */
.book-page img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  clip-path: polygon(
    6% 0%, 94% 0%, 100% 6%,
    100% 94%, 94% 100%, 6% 100%,
    0% 94%, 0% 6%
  );
  box-shadow: 0 20px 40px rgba(0,0,0,0.45);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* BAL OLDAL – befelé néző perspektíva */
.memory-column.left .book-page img {
  transform-origin: left center;
  transform: rotateY(28deg) scale(0.95);
}

/* JOBB OLDAL – befelé néző perspektíva */
.memory-column.right .book-page img {
  transform-origin: right center;
  transform: rotateY(-28deg) scale(0.95);
}

/* Hover – „lap feléd jön” */
.book-page img:hover {
  transform: rotateY(0deg) scale(1.08);
  box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

/* memoriaszovegalatta */
.memory-caption {
  display: block;
  margin-top: 10px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  color: #ffffff;
  opacity: 0.85;
  letter-spacing: 0.3px;
  font-family: "Georgia", serif;
  font-style: italic;
}

/* Bal oldal – enyhén jobbra tolva */
.memory-column.left .memory-caption {
  text-align: left;
  padding-left: 8px;
}

/* Jobb oldal – enyhén balra tolva */
.memory-column.right .memory-caption {
  text-align: right;
  padding-right: 8px;
}

/* MOBIL – letisztítjuk */
@media (max-width: 900px) {
  .memory-section {
    display: none;
  }
}
