/* Egyedi stílusok */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* KRESZ háttér minta */
.kresz-background {
  position: relative;
}

.kresz-background::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23f97316' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3Cpath d='M30 0v60M0 30h60'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: -1;
}

.kresz-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M20 20c0-5.5-4.5-10-10-10s-10 4.5-10 10 4.5 10 10 10 10-4.5 10-10zm10 0c0-5.5-4.5-10-10-10s-10 4.5-10 10 4.5 10 10 10 10-4.5 10-10z'/%3E%3C/g%3E%3C/svg%3E");
}

/* Animációk */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out;
}

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

.animate-bounce {
  animation: bounce 1s infinite;
}

/* Hover effektek */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Aktív navigációs link */
.nav-link.active {
  color: #f97316;
  background-color: #fff7ed;
}

/* Facebook link stílus */
.facebook-link {
  transition: all 0.3s ease;
}

.facebook-link:hover {
  transform: scale(1.1);
}

/* Category button aktív állapot */
.category-btn.active {
  background-color: #f97316 !important;
  color: white !important;
}

/* Reszponzív javítások */
@media (max-width: 768px) {
  .text-4xl {
    font-size: 2rem;
  }

  .text-6xl {
    font-size: 2.5rem;
  }

  .scale-105 {
    transform: scale(1);
  }
}

/* Form validáció */
input:invalid,
textarea:invalid,
select:invalid {
  border-color: #ef4444;
}

input:valid,
textarea:valid,
select:valid {
  border-color: #10b981;
}

/* Egyéb segédosztályok */
.transition-colors {
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.transition-shadow {
  transition: box-shadow 0.3s ease;
}

/* Checkbox és radio stílusok */
input[type="checkbox"]:checked {
  background-color: #f97316;
  border-color: #f97316;
}

input[type="radio"]:checked {
  background-color: #f97316;
  border-color: #f97316;
}

/* Focus stílusok */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  ring: 2px;
  ring-color: #f97316;
  border-color: transparent;
}

/* Mobil menü animáció */
#mobile-menu {
  transition: all 0.3s ease;
}

/* Scroll animációk */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.animate-on-scroll.animate-fadeInUp {
  opacity: 1;
  transform: translateY(0);
}

/* YouTube iframe reszponzív */
.aspect-video {
  aspect-ratio: 16 / 9;
}

.aspect-video iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Kártya hover effektek */
.material-card,
.bg-white.rounded-lg.shadow-md {
  transition: all 0.3s ease;
}

.material-card:hover,
.bg-white.rounded-lg.shadow-md:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Gradient háttér animáció */
.bg-gradient-to-br,
.bg-gradient-to-r {
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Betűtípus finomhangolás */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
}

p {
  line-height: 1.6;
}

/* Gomb hover effektek */
button,
.btn,
a[class*="bg-"] {
  transition: all 0.3s ease;
}

button:hover,
.btn:hover,
a[class*="bg-"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Loading animáció */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
