/* styles.css — Kev_Barber_Studio */

/* Alapok */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* fekete alap + mintás háttérkép */
  background: #000  repeat;
  background-size: 520px; /* ha túl sűrű/ritka, itt állítod */

  color: #fff;
  line-height: 1.5;
}


/* Linkek */
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Fejléc és navigáció */
header {
  background-color: #333;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
}

.logo-img {
  width: 50px;
  height: auto;
  flex: 0 0 auto;
  border-radius: 6px;
}

.hamburger {
  display: none;           /* mobilon lesz látható */
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px;
}

nav ul li a {
  display: inline-block;
  padding: 8px 10px;
  border-radius: 6px;
}
nav ul li a:hover {
  background: rgba(255,255,255,0.08);
}

/* Hero */
.hero {
  background-color: #ffcc00;
  color: #000;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 16px;
}

.hero h1 {
  font-size: 48px;
  margin: 0 0 12px 0;
  line-height: 1.15;
  letter-spacing: 0.3px;
}

.hero p {
  font-size: 20px;
  margin: 0 0 20px 0;
}

.hero .btn {
  background-color: #333;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
}
.hero .btn:hover {
  background-color: #222;
}

/* Szekciók */
section {
  padding: 50px 16px;
  text-align: center;
}

/* Árak táblázat */
table {
  margin: 0 auto;
  width: min(700px, 100%);
  border-collapse: collapse;
  background: #111;
  border-radius: 12px;
  overflow: hidden;
}

table th, table td {
  padding: 15px;
  border: 1px solid #2a2a2a;
}

table th {
  background: #1b1b1b;
  font-weight: 700;
}

/* Galéria */
.gallery-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: min(1100px, 100%);
  margin: 0 auto;
}

.gallery-images img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 12px;
  cursor: zoom-in;
  transition: transform .2s ease, box-shadow .2s ease;
  background: #1a1a1a;
}
.gallery-images img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
}

/* Lightbox */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;                 /* .open-re lesz látható */
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}
#lightbox.open {
  display: flex;
}
#lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  z-index: 1;
}
#lightbox .lightbox-overlay {
  position: absolute;
  inset: 0;
}

/* Foglalás űrlap */
form#booking-form {
  width: min(720px, 100%);
  margin: 0 auto;
  text-align: left;
}

#booking-form label {
  display: block;
  margin: 14px 0 6px;
  font-weight: 600;
}

#booking-form input,
#booking-form select,
#booking-form button {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #2b2b2b;
  background: #0f0f0f;
  color: #fff;
  outline: none;
}

#booking-form input:focus,
#booking-form select:focus {
  border-color: #ffcc00;
  box-shadow: 0 0 0 3px rgba(255,204,0,0.15);
}

#booking-form button {
  margin-top: 18px;
  background: #ffcc00;
  color: #000;
  font-weight: 700;
  cursor: pointer;
  border: 0;
}
#booking-form button:hover {
  filter: brightness(0.95);
}

/* Kis hibaüzenetek az űrlapmezők alatt */
small.error-message {
  color: #ff6b6b;
  font-size: 12px;
  display: none;       /* JS tölti meg és láthatóvá teszi */
  background: transparent;
  padding: 0;
  border-radius: 0;
}

/* Eredménydoboz a foglalás után */
#booking-result {
  margin-top: 18px;
  padding: 15px;
  text-align: center;
  border-radius: 8px;
  transition: opacity 0.3s ease-in-out;
  background: #111;
  border: 1px solid #2b2b2b;
}

#booking-result.hidden { display: none; }
#booking-result.visible { display: block; }

.success-message {
  background-color: #2e7d32; /* zöld */
  color: #fff;
  border: 1px solid #1b5e20;
}

.error-message {           /* Ezt a JS a #booking-result-re teszi */
  background-color: #c62828; /* piros */
  color: #fff;
  border: 1px solid #8e0000;
}

/* Foglalás lemondása link */
.cancel-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 16px;
  color: #ffd3d3;
  text-decoration: underline;
}
.cancel-link:hover {
  color: #fff;
}

/* Lábléc */
footer {
  background-color: #333;
  padding: 20px;
  text-align: center;
}

.social-icons {
  margin-top: 10px;
}

.social-icons img {
  width: 40px;
  height: 40px;
  display: inline-block;
}

/* Reszponzív beállítások */
@media (max-width: 1024px) {
  .hero h1 { font-size: 40px; }
}

@media (max-width: 768px) {
  /* hamburger látható mobilon */
  .hamburger { display: block; }

  /* menü alapból rejtve mobilon */
  nav ul { 
    display: none;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
  }
  /* hamburgerre nyílik */
  #nav-menu.open ul { 
    display: flex; 
  }

  header { align-items: flex-start; }

  .hero { min-height: 340px; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 18px; }

  table { width: 100%; }

  .gallery-images {
    grid-template-columns: 1fr;
  }
  .gallery-images img {
    height: 220px;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 16px; }
  .hero .btn { padding: 8px 16px; font-size: 16px; }
}

/* === Galéria skeleton (töltés közben) === */
.skeleton {
  background: linear-gradient(90deg, #1a1a1a 25%, #222 37%, #1a1a1a 63%);
  background-size: 400% 100%;
  animation: shimmer 1.2s infinite linear;
  border-radius: 12px;
}
@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.gallery-skeleton {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: min(1100px, 100%);
  margin: 0 auto;
}
.gallery-skeleton .skeleton {
  width: 100%;
  height: 280px;
}
@media (max-width: 768px) {
  .gallery-skeleton { grid-template-columns: 1fr; }
  .gallery-skeleton .skeleton { height: 220px; }
}

/* === Lightbox nyilak === */
.lb-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
}
.lb-btn:hover { background: rgba(0,0,0,0.65); }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }

/* === Dátum/idő input felturbózott ikon === */
input[type="date"] {
  padding-right: 42px; /* hely az ikon számára */
  background-image: url("data:image/svg+xml;utf8,<svg fill='dodgerblue' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 2v2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-2V2h-2v2H9V2H7zm12 18H5V9h14v11zM7 11h5v5H7v-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 22px 22px;
  cursor: pointer;
  color-scheme: dark; /* böngésző natív ikonok is dark módot kapnak */
}
.hero {
  position: relative;
  background-image: url("/images/hero_shop.jpg"); /* <-- ide jön a feltöltött kép */
  background-size: cover;
  background-position: 60% center; /* 60-65% között a legjobb*/
  background-repeat: no-repeat;
  min-height: 650px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  text-align: center;
  color: #fff;
}

/* Sötét overlay, hogy jobban látszódjon a szöveg */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: brightness(0.6);
}

.hero * {
  position: relative; /* hogy a szöveg a sötét réteg fölött legyen */
  z-index: 2;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 12px;
}

.hero p {
  font-size: 20px;
  margin-bottom: 20px;
}

.hero .btn {
  background-color: #ffcc00;
  color: #000;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
}
/* HERO alsó fade átmenet */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 60%,
    rgba(0, 0, 0, 1) 100%
  );
  z-index: 1;
  pointer-events: none;
}
.opening-hours {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 20px 0;
  letter-spacing: 0.5px;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.map-link {
  color: #4da3ff;
  font-weight: 600;
  text-decoration: none;
}

.map-link:hover {
  text-decoration: underline;
  filter: brightness(1.2);
}
.social-icons {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}

.social-icon {
  width: 34px;
  height: 34px;
  transition: 0.2s ease;
  cursor: pointer;
}

.social-icon:hover {
  filter: brightness(1.25);
}
/* --- Mobil finomhangolás (max 768px) --- */
@media (max-width: 768px) {
  /* Fejléc kicsit kompaktabb */
  header {
    padding: 10px 14px;
  }

  /* Kev_Barber_Studio logó szöveg kisebb */
  .logo,
  .logo-text,
  .brand {
    font-size: 1.1rem;
  }

  /* Hero rész (nyitó kép + nagy cím) */
  .hero,
  #hero,
  .hero-section {
    padding: 110px 16px 48px;   /* felül kicsit nagyobb, oldalt kisebb */
    text-align: center;
  }

  /* Nagy cím – ne legyen olyan óriási + max. szélesség */
  .hero h1,
  #hero h1,
  .hero-title {
    font-size: 1.9rem;
    line-height: 1.2;
    max-width: 18ch;            /* kb. 2–3 sorban marad */
    margin: 0 auto 12px;
  }

  /* Alcím / leírás */
  .hero p,
  #hero p,
  .hero-subtitle {
    font-size: 0.95rem;
    max-width: 32ch;
    margin: 0 auto 20px;
  }

  /* „Foglalj időpontot” gomb – ujjbarát */
  .hero .btn,
  .hero .btn-primary,
  #hero .btn-primary {
    width: 100%;
    max-width: 260px;
    display: inline-block;
  }

  /* Szekciók paddingje */
  section {
    padding: 40px 16px;
  }

  /* Menü overlay szöveg ne legyen túl nagy */
  nav ul,
  .nav-links {
    font-size: 1.05rem;
  }
}


