/* ===== Márk Auto Doktor - Unified Styles ===== */

:root {
  --bg-dark: #1e1e1e;
  --bg-medium: #242424;
  --bg-light: #2a2a2a;
  --accent: #f2b632;
  --text-light: #e9e9e9;
  --text-muted: #b5b5b5;
  --font-main: 'Poppins', sans-serif;
  --font-title: 'Bebas Neue', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== BODY ===== */
body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-light);
  overflow-x: hidden;
  padding-top: 60px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 2rem;
  border-bottom: 1px solid #333;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 45px;
  height: 45px;
}

.logo h1 {
  font-family: var(--font-title);
  font-size: 1.6rem;
  color: var(--accent);
  letter-spacing: 1px;
}

/* NAVIGATION (DESKTOP) */
nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--accent);
}

/* HAMBURGER MENU */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
  z-index: 1100;
}

.menu-toggle span {
  height: 3px;
  width: 100%;
  background: var(--accent);
  border-radius: 2px;
transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

/* Hamburger active (X) */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO ===== */
#hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(-45deg, #0f0f0f, #2a2a2a, #1e1200, #ffae00);
  background-size: 200% 200%;
  animation: shimmer 8s ease-in-out infinite;
}

@keyframes shimmer {
  0%   { background-size: 200% 200%; filter: brightness(0.9); }
  50%  { background-size: 260% 260%; filter: brightness(1.1); }
  100% { background-size: 200% 200%; filter: brightness(0.9); }
}

.main-logo {
position: relative;
}


#hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.hero-content {
  position: relative;
  z-index: 10;
}

.hero-content h2 {
  font-family: var(--font-title);
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero-buttons .btn {
  background: var(--accent);
  color: #000;
  padding: 0.8rem 1.5rem;
  margin: 0 0.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.hero-buttons .btn.secondary {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.hero-buttons .btn:hover {
  background: #ffcb42;
  color: #000;
}

/* ===== SECTION BASE ===== */
.section {
  padding: 6rem 2rem;
  text-align: center;
}

.section h2 {
  font-family: var(--font-title);
  font-size: 2.2rem;
  color: var(--accent);
  margin-bottom: 2rem;
}


.section-odd h2 {
  font-family: var(--font-title);
  font-size: 2.2rem;
  color: var(--accent);
  margin-bottom: 2rem;
}

.section-odd {
  background: var(--bg-light)
}

.section-even {
  background: var(--bg-dark)
}

/* ===== NEWS SECTION (Prémium stílus) ===== */

.news-scroller {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding: 1rem 1rem 1.5rem 1rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
   justify-content: center;
}

/* Scrollbar Chrome/Safari */
.news-scroller::-webkit-scrollbar {
  height: 8px;
}
.news-scroller::-webkit-scrollbar-track {
  background: transparent;
}
.news-scroller::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #f2b632, #ffdb75);
  border-radius: 10px;
}

/* ---- CARD ---- */
.news-card {
  min-width: 320px;
  max-width: 580px;
  background: linear-gradient(135deg, rgba(25,25,25,0.95), rgba(35,35,35,0.95));
  border-radius: 18px;
  padding: 1.2rem 1.4rem;
  scroll-snap-align: start;
  box-shadow: 0 0 0 rgba(0,0,0,0);
  border: 1px solid rgba(255,200,100,0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  position: relative;
  overflow: hidden;
}

/* Fénycsík fényes hatás (luxus érzés) */
.news-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,200,90,0.08) 0%, transparent 60%);
  transform: rotate(25deg);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.news-card:hover::before {
  opacity: 1;
}

.news-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(255,200,120,0.35);
  box-shadow: 0 10px 35px rgba(255,195,80,0.12);
}

/* ---- IMAGE ---- */
.news-card img {
  width: 100%;
  max-height: 190px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.85rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.35);
}

/* ---- TITLE ---- */
.news-card h3 {
  font-family: var(--font-title);
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 0.3rem;
  letter-spacing: 0.5px;
}

/* ---- DATE ---- */
.news-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
}

/* ---- CONTENT ---- */
.news-card p {
  color: #e8e8e8;
  line-height: 1.45rem;
  font-size: 0.95rem;
  opacity: 0.9;
}




/* ===== SERVICES ===== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 250px));
  justify-content: center;
  gap: 1rem;
}

.service-card {
  background: var(--bg-medium);
  padding: 2rem 1.5rem;
  border-radius: 8px;
  max-width: 250px;
transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.service-card i {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.service-card:hover {
  transform: translateY(-5px);
  background: #333;
}

/* ===== GALLERY ===== */
.gallery-grid img {
  width: 100%;
  max-height: 360px;
  max-width: 360px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  justify-items: center;
}

.gallery-grid img {
  width: 100%;
  border-radius: 6px;
  filter: grayscale(100%);
  transition: all 0.4s ease;
}

.gallery-grid img:hover {
  filter: grayscale(0%) brightness(1.1);
}

/* ===== BOOKING ===== */
.booking {
  background: var(--bg-light);
}

.booking p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.booking .btn {
  background: var(--accent);
  color: #000;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}

.booking .btn:hover {
  background: #ffcb42;
}

.mobile-picker-btn {
  display: none;
}

#booking-wrapper {
  position: relative;
  min-height: 450px; /* lehet több is, pl. 500px, ha nagyobb naptárat akarsz */
  display: flex;
  justify-content: center;
  align-items: center; /* 👈 ez a kulcs: középre hozza a tartalmat */
  overflow: hidden; /* hogy az animáció ne lógjon ki */
}

/* mindkettő középre helyezve, teljes méretben */
.booking-content,
#calendar-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

#calendar-container {
  opacity: 0;
  pointer-events: none;
}

#calendar-container.active {
  opacity: 1;
  pointer-events: all;
}

.booking-content.hidden {
  opacity: 0;
  pointer-events: none;
}




/* ===== CONTACT ===== */
.contact {
  background: #111;
}

.contact p {
  margin: 0.5rem 0;
  font-size: 1.1rem;
}

.contact i {
  color: var(--accent);
  margin-right: 0.5rem;
}

.contact-link {
  color: inherit;
  text-decoration: none;
}

.contact-link:hover,
.contact-link:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}

/* ===== FOOTER ===== */
footer {
  background: #0e0e0e;
  color: var(--text-muted);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.9rem;
  border-top: 1px solid #222;
}


/* ===== CALENDAR MENU =====*/
/* ---- Dátumválasztó styling ---- */
#date-picker {
  background-color: var(--bg-dark);
  color: var(--text-light);
  border: 2px solid var(--accent);
  border-radius: 6px;
  font-family: var(--font-main);
  font-size: 1rem;
  padding: 0.6rem 1rem;
  outline: none;
transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  text-align: center;
  width: 220px;
  box-shadow: 0 0 8px rgba(242, 182, 50, 0.2);
}

/* Hover és fókuszállapot */
#date-picker:hover,
#date-picker:focus {
  border-color: #ffcc4d;
  box-shadow: 0 0 12px rgba(242, 182, 50, 0.4);
  background-color: var(--bg-light);
}

/* Dátum ikon színének módosítása (WebKit böngészők) */
#date-picker::-webkit-calendar-picker-indicator {
  filter: invert(82%) sepia(68%) saturate(423%) hue-rotate(6deg) brightness(96%) contrast(93%);
  cursor: pointer;
}

/* Dátum placeholder szín */
#date-picker::placeholder {
  color: var(--text-muted);
}

/* Általános űrlapelemek */
input[type="date"],
input[type="time"],
input[type="text"],
input[type="email"],
select {
  background-color: var(--bg-dark);
  color: var(--text-light);
  border: 2px solid var(--accent);
  border-radius: 6px;
  padding: 10px 14px;
  font-family: var(--font-main);
  font-size: 1rem;
transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  outline: none;
}

/* Hover és fókusz */
input:hover,
select:hover {
  border-color: #ffd45c;
  box-shadow: 0 0 6px var(--accent);
}

input:focus,
select:focus {
  border-color: #ffb400;
  background-color: var(--bg-light);
  box-shadow: 0 0 10px rgba(242, 182, 50, 0.6);
}

/* Placeholder szín */
input::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

/* Gombok (hogy passzoljon a többiekhez) */
#submit-booking, 
#close-calendar {
  background-color: var(--accent);
  color: #000;
  border: none;
  border-radius: 6px;
  padding: 12px 24px;
  font-family: var(--font-main);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

#submit-booking:hover, 
#close-calendar:hover {
  background: color-mix(in srgb, var(--accent) 90%, white 10%);
  transform: translateY(-2px);
}

/* Kis margó az inputok között */
#calendar-container input,
#calendar-container select {
  margin-right: 10px;
}

  /* Tüntesd el az AM/PM mezőt desktopon */
  input[type="time"]::-webkit-datetime-edit-ampm-field {
    display: none;
  }

  /* Extra: eltünteti a felesleges spin gombokat */
  input[type="time"]::-webkit-clear-button,
  input[type="time"]::-webkit-inner-spin-button {
    display: none;
  }


/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .navbar {
    padding: 0.8rem 1rem;
  }

   #date-btn,
   #time-btn {
    display: block;
    width: 100%;
    background: var(--accent);
    font-size: 16px;
    color: #000;
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    font-family: var(--font-main);
    font-weight: 600;
    cursor: pointer;
  }

  #date-picker,
  #time-picker {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
  }
  

   .main-logo {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    margin: 0 auto 1.5rem auto;
    display: block;
  }

  #date-picker {
    width: 80%;
    font-size: 0.9rem;
  }


  
  /* alapállapot: menü rejtve, de a fade működhet */
  nav ul {
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(20, 20, 20, 0.97);
    padding: 2rem 0;
    gap: 1.5rem;
    text-align: center;
    border-top: 1px solid #333;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, transform 0.4s ease;
    transform: translateY(-10px); /* kicsit fent kezdje, hogy lecsússzon */
  }

  /* amikor megnyílik a menü */
  nav.open ul {
    opacity: 1;
    visibility: visible;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(6px);
    transform: translateY(0);
  }

  /* menü linkek mérete mobilon */
  nav.open a {
    font-size: 1.2rem;
  }

  /* hamburger mobilon megjelenik */
  .menu-toggle {
    display: flex;
  }

  .service-grid {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 1rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .booking .btn {
    width: 80%;
  }

  .hero-content h2 {
    font-size: 2.2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-buttons .btn {
    display: block;
    width: 80%;
    margin: 0.6rem auto;
  }
 #calendar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 0 30px 0;
  }

  #calendar-container h2 {
    font-size: 1.4rem;
    text-align: center;
    margin-bottom: 8px;
  }

  /* Inputok, selectek és időválasztók */
  #calendar-container input,
  #calendar-container select {
    width: 85%;
    max-width: 300px;
    padding: 6px 8px;
    font-size: 0.9rem;
    border: 2px solid var(--accent);
    border-radius: 6px;
  }




  /* Gombok (kompakt verzió) */
  #calendar-container button {
    width: 85%;
    max-width: 300px;
    padding: 8px 10px;
    font-size: 0.95rem;
    border-radius: 6px;
  }

  /* Kis távolság az elemek között */
  #calendar-container form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
}


@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h2 {
    font-size: 1.7rem;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  .main-logo {
    width: 185px;
  }
}
