/* =========================================================
   Takács Dorottya – Horgolt portfólió
   Stílus: élénk, játékos rózsaszín, letisztult
   ========================================================= */

/* ===== Változók / paletta ===== */
:root {
  --pink: #ff4fa3;
  --pink-deep: #e5388f;
  --pink-soft: #ffd9ec;
  --pink-bg: #fff0f7;
  --bg: #fff5fa;
  --card: #ffffff;
  --ink: #3a2230;
  --ink-soft: #8a6675;
  --accent: #ffc24b;

  --radius: 22px;
  --shadow: 0 12px 30px rgba(229, 56, 143, 0.12);
  --shadow-hover: 0 18px 40px rgba(229, 56, 143, 0.22);
  --maxw: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(var(--maxw), 92vw);
  margin: 0 auto;
}

.section {
  padding: clamp(50px, 9vw, 90px) 0;
}

/* sticky menü miatt: a szekciók ne bújjanak a menü alá görgetéskor */
section {
  scroll-margin-top: 90px;
}

/* ===== Menü ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(255, 245, 250, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(229, 56, 143, 0.08);
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--pink-deep);
  text-decoration: none;
}

.nav__logo-icon {
  height: 1.7rem;
  width: auto;
}

.nav__links {
  display: flex;
  gap: clamp(10px, 2.5vw, 28px);
  flex-wrap: wrap;
}

.nav__links a {
  position: relative;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  padding: 6px 2px;
  transition: color 0.2s ease;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  background: var(--pink);
  border-radius: 3px;
  transition: width 0.25s ease;
}

.nav__links a:hover {
  color: var(--pink-deep);
}

.nav__links a:hover::after {
  width: 100%;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #fff;
  padding: clamp(64px, 12vw, 130px) 20px calc(clamp(64px, 12vw, 130px) + 20px);
  background: linear-gradient(135deg, #ff7ab8 0%, var(--pink) 45%, var(--pink-deep) 100%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: min(760px, 92vw);
  margin: 0 auto;
}

.hero__eyebrow {
  font-family: 'Fredoka', sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.85rem;
  opacity: 0.95;
  margin: 0 0 12px;
}

.hero h1 {
  font-size: clamp(2rem, 8vw, 4.4rem);
  margin: 0 0 16px;
  overflow-wrap: break-word;
  text-shadow: 0 6px 20px rgba(120, 10, 60, 0.25);
}

.hero__subtitle {
  font-size: clamp(1rem, 2.4vw, 1.3rem);
  max-width: 540px;
  margin: 0 auto 30px;
  opacity: 0.97;
}

.hero__cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* lebegő horgolós díszek (SVG ikonok) */
.hero__deco {
  position: absolute;
  z-index: 1;
  width: clamp(2.4rem, 5.5vw, 3.8rem);
  height: auto;
  opacity: 0.7;
  filter: drop-shadow(0 6px 10px rgba(120, 10, 60, 0.18));
  animation: floaty 6s ease-in-out infinite;
  user-select: none;
  pointer-events: none;
}

.hero__deco--1 { top: 16%; left: 8%; }
.hero__deco--2 { top: 62%; left: 12%; animation-delay: 1.5s; }
.hero__deco--3 { top: 22%; right: 10%; animation-delay: 0.8s; }
.hero__deco--4 { top: 66%; right: 9%; animation-delay: 2.2s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(8deg); }
}

/* csipkés (horgolt) szegély a hero alján */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 20px;
  z-index: 3;
  background: radial-gradient(circle at 10px 20px, var(--bg) 11px, transparent 12px);
  background-size: 20px 20px;
  background-repeat: repeat-x;
}

/* ===== Név hullám-animáció ===== */
.wave-text span {
  display: inline-block;
  animation: wave 1.6s ease-in-out;
}

@keyframes wave {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

/* ===== Szekció fejléc ===== */
.section-head {
  text-align: center;
  margin-bottom: 44px;
}

.section-head h2 {
  display: inline-block;
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  color: var(--pink-deep);
}

.section-head h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  margin: 12px auto 0;
  border-radius: 4px;
  background: var(--accent);
}

.section-sub {
  margin-top: 10px;
  color: var(--ink-soft);
}

/* ===== Rólam ===== */
.about__grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
}

.about__text p {
  margin: 0 0 14px;
}

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

/* Kép-helyőrző (később valós fotóra cserélhető) */
.photo-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--pink-soft);
  color: var(--pink-deep);
  font-size: 2.6rem;
  text-align: center;
  border-radius: var(--radius);
  border: 3px dashed rgba(229, 56, 143, 0.4);
}

.photo-ph span {
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
}

.photo-ph--round {
  border-radius: 50%;
}

/* Ha valós fotó kerül a keretbe: töltse ki szépen, és tűnjön el a placeholder-keret */
.photo-ph:has(img) {
  padding: 0;
  background: none;
  border: none;
}

.photo-ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* levágja a felesleget torzítás nélkül */
  border-radius: inherit;
  transition: transform 0.4s ease;
}

@media (max-width: 720px) {
  .about__grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .about__photo {
    max-width: 240px;
    width: 100%;
  }
}

/* ===== Galéria ===== */
.gallery {
  position: relative;
  overflow: hidden;
  background: var(--pink-bg);
}

.gallery .container {
  position: relative;
  z-index: 1;
}

/* lebegő háttér-díszek (halvány szívek/csillagok) */
.gallery__deco {
  position: absolute;
  z-index: 0;
  width: clamp(2.2rem, 5vw, 3.6rem);
  height: clamp(2.2rem, 5vw, 3.6rem);
  fill: var(--pink);
  opacity: 0.13;
  animation: floaty 7s ease-in-out infinite;
  pointer-events: none;
}

.gallery__deco--2,
.gallery__deco--4 {
  fill: var(--accent);
  opacity: 0.18;
}

.gallery__deco--1 { top: 8%;  left: 4%; }
.gallery__deco--2 { top: 22%; right: 6%; animation-delay: 1.2s; }
.gallery__deco--3 { top: 56%; left: 6%;  animation-delay: 2s; }
.gallery__deco--4 { top: 72%; right: 5%; animation-delay: 0.6s; }
.gallery__deco--5 { top: 90%; left: 45%; animation-delay: 1.6s; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: var(--shadow-hover);
}

.card__img {
  position: relative;
  aspect-ratio: 4 / 3;
}

/* kategória-címke a kép sarkában */
.card__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--pink-deep);
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  box-shadow: 0 4px 10px rgba(229, 56, 143, 0.15);
  backdrop-filter: blur(2px);
}

/* „Tetszik" (like) gomb — a látogató kedvelheti a darabot */
.card__like {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 12px rgba(229, 56, 143, 0.25);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.card__like svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--pink);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  transition: fill 0.2s ease, stroke 0.2s ease;
}

.card__like:hover {
  transform: scale(1.1);
  background: #fff;
}

.card__like.is-liked {
  background: var(--pink);
}

.card__like.is-liked svg {
  fill: #fff;
  stroke: #fff;
}

.card__like:disabled {
  cursor: default;
}

/* pukkanás + „Köszi!" buborék CSAK közvetlen kedveléskor (betöltéskor nem) */
.card__like.just-liked {
  animation: likePop 0.4s ease;
}

.card__like::after {
  content: "Köszi! 💗";
  position: absolute;
  top: 50%;
  right: calc(100% + 8px);
  transform: translateY(-50%) scale(0.8);
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--pink-deep);
  font: 600 0.8rem 'Fredoka', sans-serif;
  box-shadow: 0 4px 10px rgba(229, 56, 143, 0.25);
  opacity: 0;
  pointer-events: none;
}

.card__like.just-liked::after {
  animation: thanks 2.4s ease forwards;
}

@keyframes likePop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.3); }
  70%  { transform: scale(0.9); }
  100% { transform: scale(1); }
}

@keyframes thanks {
  0%       { opacity: 0; transform: translateY(-50%) scale(0.8); }
  15%, 65% { opacity: 1; transform: translateY(-50%) scale(1); }
  100%     { opacity: 0; transform: translateY(-50%) scale(1); }
}

/* fotó finom ráközelítése hoverre */
.card:hover .photo-ph img {
  transform: scale(1.07);
}

.card__img .photo-ph {
  height: 100%;
  border: none;
  border-radius: 0;
  aspect-ratio: auto;
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding: 18px 20px 22px;
}

.card__title {
  font-size: 1.25rem;
  color: var(--ink);
}

.card__desc {
  flex: 1;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* „Érdekel" gomb szív ikonnal */
.card__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  margin-top: 12px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  box-shadow: 0 8px 16px rgba(229, 56, 143, 0.28);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.card__cta:hover {
  background: var(--pink-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(229, 56, 143, 0.36);
}

.card__cta-ico {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex: none;
}

/* ===== Rendelési lépések ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
}

.step {
  padding: 32px 24px;
  text-align: center;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(229, 56, 143, 0.35);
}

.step h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
  color: var(--ink);
}

.step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.order__note {
  margin: 34px auto 0;
  max-width: 620px;
  text-align: center;
  color: var(--ink-soft);
}

/* ===== Kapcsolat ===== */
.contact {
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #ff7ab8, var(--pink-deep));
}

/* csipkés szegély a kapcsolat szekció tetején */
.contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 20px;
  background: radial-gradient(circle at 10px 0, var(--bg) 11px, transparent 12px);
  background-size: 20px 20px;
  background-repeat: repeat-x;
}

.contact .section-head h2 {
  color: #fff;
}

.contact .section-head h2::after {
  background: rgba(255, 255, 255, 0.85);
}

.contact__sub {
  max-width: 500px;
  margin: 0 auto 30px;
  opacity: 0.97;
}

.contact__links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Lábléc ===== */
.footer {
  padding: 30px 20px;
  text-align: center;
  background: var(--bg);
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* ===== Megjelenés görgetéskor ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ===== Akadálymentesítés: mozgás csökkentése ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__deco,
  .wave-text span { animation: none; }
}
