/* Modern Csíramálé Design - UI Frissítés */
/* Megtartva az eredeti színpalettát modernebb elemekkel */

:root {
  /* Modernizált színpaletta - szebb zöld árnyalatokkal */
  --primary-dark: #2d5016;
  --primary-light: #3d6b1f;
  --accent-green: #4a7c24;
  --accent-green-light: #5d9b2a;
  --text-light: #f0f2b3;
  --text-cream: #f8f9e6;
  --blue-accent: #a7d0f0;
  --blue-accent-dark: #7eb3d3;
  --success-green: #88d733;
  --error-red: #ff4757;
  --white: #ffffff;
  --shadow: rgba(0, 0, 0, 0.3);
  --shadow-light: rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  padding: 0;
  margin: 0;
  background-color: var(--primary-dark);
  height: 100vh;
  overflow: hidden;
  font-family: "Segoe UI", "Arial", Helvetica, sans-serif;
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

/* Tipográfia */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--blue-accent);
  font-weight: 600;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px var(--shadow);
}

h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

p {
  margin-bottom: 1rem;
  text-align: justify;
}

/* Linkek */
a,
a:link,
a:visited,
a:active {
  color: var(--blue-accent);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--text-cream);
  text-shadow: 0 0 8px var(--blue-accent);
}

/* Utility classes */
.clear_div {
  clear: both;
  height: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header-container {
  text-align: center;
  padding: 20px 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  box-shadow: 0 4px 20px var(--shadow);
  flex-shrink: 0;
}

.header-container img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 30px var(--shadow);
}

/* Body content area with background */
.body-content {
  flex: 1;
  background: url("../images/new_bg.jpg") no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  overflow: hidden; /* Eltávolítjuk a body scroll-t */
  padding: 20px; /* Egyforma margó minden oldalon */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Content card */
.content-card {
  max-width: 1000px;
  width: 100%;
  height: calc(100% - 40px); /* Fix magasság - padding levonásával */
  padding: 30px;
  background: rgba(255, 255, 255, 0.8); /* Alig átlátszó háttér - opacity 0.9 */
  border-radius: 4px; /* Kisebb border radius */
  box-shadow: 0 10px 40px var(--shadow);
  backdrop-filter: blur(15px); /* Erősebb blur effekt */
  border: 1px solid rgba(255, 255, 255, 0.3); /* Erősebb border */
  overflow-y: auto; /* Scroll a card belsejében */
  color: #000000; /* Fekete szövegszín a legjobb olvashatóságért */
}

/* Content card szöveg stílusok */
.content-card h1,
.content-card h2,
.content-card h3,
.content-card h4,
.content-card h5,
.content-card h6 {
  color: var(--accent-green);
  text-shadow: none; /* Eltávolítjuk az árnyékot a tiszta megjelenésért */
}

.content-card p {
  color: #000000; /* Fekete szöveg */
  line-height: 1.7;
}

.content-card a,
.content-card a:link,
.content-card a:visited {
  color: var(--accent-green);
  font-weight: 600;
}

.content-card a:hover {
  color: var(--accent-green-light);
  text-shadow: none;
}

/* Fejlett tipográfia és szöveg struktúra */
.content-card {
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
}

.content-card h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0 0 1.5rem 0;
  line-height: 1.2;
  color: var(--accent-green);
  border-bottom: 3px solid var(--accent-green);
  padding-bottom: 0.5rem;
}

.content-card h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin: 2rem 0 1rem 0;
  line-height: 1.3;
  color: var(--accent-green);
}

.content-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 1.5rem 0 0.8rem 0;
  color: var(--accent-green-light);
}

.content-card h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 1.2rem 0 0.6rem 0;
  color: var(--accent-green-light);
}

.content-card p {
  color: #1a1a1a;
  font-size: 16px;
  line-height: 1.8;
  margin: 0 0 1.2rem 0;
  text-align: justify;
  hyphens: auto;
}

.content-card ul,
.content-card ol {
  margin: 1rem 0 1.5rem 0;
  padding-left: 2rem;
}

.content-card li {
  color: #1a1a1a;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.content-card strong,
.content-card b {
  font-weight: 700;
  color: var(--accent-green);
}

.content-card em,
.content-card i {
  font-style: italic;
  color: #2c3e50;
}

/* Speciális blokk elemek */
.content-card blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: rgba(74, 124, 36, 0.1);
  border-left: 4px solid var(--accent-green);
  border-radius: 4px;
  font-style: italic;
  color: #2c3e50;
}

.content-card table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 4px;
  overflow: hidden;
}

.content-card th,
.content-card td {
  padding: 0.8rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(74, 124, 36, 0.2);
}

.content-card th {
  background: var(--accent-green);
  color: white;
  font-weight: 600;
}

.content-card tr:hover {
  background: rgba(74, 124, 36, 0.05);
}

/* Menu modernizált - fent fix pozícióban */
#menu_wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  background: linear-gradient(
    45deg,
    var(--accent-green) 0%,
    var(--accent-green-light) 100%
  );
  box-shadow: 0 4px 15px var(--shadow);
  overflow: hidden;
  height: 80px;
  position: relative;
  z-index: 100;
  flex-shrink: 0;
}

/* Mobile menu toggle button - rejtve desktop-on */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 101;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--text-cream);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* Hamburger animáció */
.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

#menu_left_hu,
#menu_right_hu {
  display: none; /* Egyszerűsítjük a modern designt */
}

#menu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  width: 100%;
  padding: 10px 0;
}

#menu a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 20px;
  color: var(--text-cream);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  text-indent: 0 !important;
  overflow: visible !important;
  background: none !important;
}

#menu a:last-child {
  border-right: none;
}

#menu a:hover {
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.25) 100%
  ) !important;
  color: var(--white);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* Képek modernizálása */
.kep,
img.kep {
  padding: 8px;
  background: linear-gradient(
    45deg,
    var(--accent-green) 0%,
    var(--accent-green-light) 100%
  );
  border: none;
  border-radius: 12px;
  box-shadow: 0 8px 25px var(--shadow);
  transition: all 0.3s ease;
}

.kep:hover,
img.kep:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 40px var(--shadow);
}

/* Üzenetek modernizálása */
.msg {
  background: linear-gradient(45deg, var(--success-green) 0%, #7ed321 100%);
  border: none;
  border-radius: 12px;
  color: var(--white);
  padding: 15px 20px;
  margin: 20px 0;
  box-shadow: 0 5px 20px rgba(136, 215, 51, 0.3);
  font-weight: 500;
}

.error {
  background: linear-gradient(45deg, var(--error-red) 0%, #ff3742 100%);
  border: none;
  border-radius: 12px;
  color: var(--white);
  padding: 15px 20px;
  margin: 20px 0;
  box-shadow: 0 5px 20px rgba(255, 71, 87, 0.3);
  font-weight: 500;
}

/* GYIK szekció - javított megjelenés */
.gyik_kerdes {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-green);
  margin: 2rem 0 0.5rem 0;
  padding: 1.2rem 1.5rem;
  background: linear-gradient(
    135deg,
    rgba(74, 124, 36, 0.1) 0%,
    rgba(93, 155, 42, 0.1) 100%
  );
  border-radius: 8px;
  border-left: 5px solid var(--accent-green);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.gyik_kerdes:hover {
  background: linear-gradient(
    135deg,
    rgba(74, 124, 36, 0.15) 0%,
    rgba(93, 155, 42, 0.15) 100%
  );
  transform: translateX(5px);
}

.gyik_kerdes::after {
  content: "▼";
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-green);
  font-size: 0.8rem;
}

.gyik_valasz {
  color: #1a1a1a;
  text-align: justify;
  margin: 0 0 2rem 0;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  line-height: 1.8;
  border: 1px solid rgba(74, 124, 36, 0.2);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Szolgáltatás dobozok - javított megjelenés */
.service,
.service2 {
  border: none;
  border-radius: 12px;
  padding: 2rem;
  margin: 1.5rem 0;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(248, 249, 230, 0.95) 100%
  );
  color: #1a1a1a;
  border-left: 5px solid var(--accent-green);
}

.service2 {
  background: linear-gradient(
    135deg,
    var(--accent-green) 0%,
    var(--accent-green-light) 100%
  );
  color: var(--white);
}

.service:hover,
.service2:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service h3,
.service2 h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  font-weight: 700;
}

.service p,
.service2 p {
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Hasznos utility osztályok a jobb formázáshoz */
.content-card .highlight {
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(74, 124, 36, 0.2) 0%,
    rgba(74, 124, 36, 0.2) 100%,
    transparent 100%
  );
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-weight: 600;
}

.content-card .text-center {
  text-align: center;
}

.content-card .text-large {
  font-size: 1.1rem;
  line-height: 1.8;
}

.content-card .text-small {
  font-size: 0.9rem;
  color: #666;
}

.content-card .spacing-large {
  margin: 2rem 0;
}

.content-card .spacing-small {
  margin: 0.5rem 0;
}

.content-card .info-box {
  background: rgba(167, 208, 240, 0.1);
  border-left: 4px solid var(--blue-accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 4px;
}

.content-card .warning-box {
  background: rgba(255, 193, 7, 0.1);
  border-left: 4px solid #ffc107;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 4px;
}

.content-card .success-box {
  background: rgba(40, 167, 69, 0.1);
  border-left: 4px solid #28a745;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 4px;
}

/* Desktop - menü mindig látható */
@media (min-width: 769px) {
  .mobile-menu-toggle {
    display: none !important;
  }

  #menu {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: all !important;
  }
}

/* Reszponzív design */
@media (max-width: 768px) {
  /* Header mobil optimalizálás */
  .header-container {
    padding: 15px 0;
  }

  .header-container img {
    max-width: 95%;
    border-radius: 8px;
  }

  /* Menu mobil optimalizálás */
  #menu_wrapper {
    height: 60px;
    flex-shrink: 0;
    overflow: visible;
  }

  /* Mobile menu toggle megjelenítése */
  .mobile-menu-toggle {
    display: flex !important;
  }

  #menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0;
    background: linear-gradient(
      45deg,
      var(--accent-green) 0%,
      var(--accent-green-light) 100%
    );
    box-shadow: 0 4px 15px var(--shadow);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 99;
  }

  /* Menu states */
  #menu.menu-collapsed {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
  }

  #menu.menu-expanded {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  #menu a {
    width: 100%;
    height: 50px;
    font-size: 14px;
    padding: 0 20px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    justify-content: flex-start;
  }

  #menu a:last-child {
    border-bottom: none;
  }

  /* Body content mobil optimalizálás */
  .body-content {
    padding: 15px; /* Kisebb margin mobil eszközön */
  }

  /* Content card mobil optimalizálás */
  .content-card {
    padding: 20px 15px;
    border-radius: 4px; /* Egységes border radius */
    height: calc(100% - 30px); /* Fix magasság - mobil padding levonásával */
    width: 100%;
  }

  /* Tipográfia mobil optimalizálás */
  h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  /* Szolgáltatás dobozok mobil */
  .service,
  .service2 {
    padding: 20px 15px;
    margin: 15px 0;
    border-radius: 12px;
  }

  /* GYIK mobil optimalizálás */
  .gyik_kerdes {
    font-size: 1.1rem;
    padding: 12px;
  }

  .gyik_valasz {
    padding: 12px;
  }

  /* Képek mobil optimalizálás */
  .kep,
  img.kep {
    padding: 6px;
    border-radius: 8px;
    max-width: 100%;
    height: auto;
  }
}

/* Extra kis képernyők (telefon álló) */
@media (max-width: 480px) {
  body {
    font-size: 13px;
  }

  .header-container {
    padding: 10px 0;
  }

  .body-content {
    padding: 10px; /* Még kisebb margin kis képernyőn */
  }

  .content-card {
    padding: 15px 10px;
    border-radius: 4px; /* Egységes border radius */
    height: calc(
      100% - 20px
    ); /* Fix magasság - kis képernyő padding levonásával */
  }

  #menu a {
    height: 45px;
    font-size: 13px;
    padding: 0 15px;
  }

  h1 {
    font-size: 1.3rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  .service,
  .service2 {
    padding: 15px 10px;
    margin: 10px 0;
  }

  .gyik_kerdes {
    font-size: 1rem;
    padding: 10px;
  }

  .gyik_valasz {
    padding: 10px;
  }
}

/* Animációk */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.content-card {
  animation: fadeIn 0.6s ease-out;
}

/* Scrollbar testreszabás */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--primary-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-green);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-green-light);
}

/* --- Galéria stílusok --- */
.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

.gallery-thumb {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-thumb {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: white;
  font-weight: bold;
  text-decoration: none;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
  background: rgba(26, 95, 36, 0.9);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Responsive grid a galériához */
@media (max-width: 768px) {
  .gallery-item {
    margin-bottom: 1rem;
  }

  .gallery-thumb {
    height: 150px;
  }
}

/* Galéria szekciók stílusai */
.gallery-section {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(74, 124, 36, 0.2);
}

.gallery-section:last-child {
  border-bottom: none;
}

.gallery-section h2 {
  color: var(--accent-green);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.gallery-description {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.no-images {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #666;
}

/* Modal stílusok */
.modal {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.95);
  overflow: hidden;
}

.modal-content {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 0;
  width: 90vw;
  max-width: 1200px;
  max-height: 90vh;
  text-align: center;
  z-index: 100000;
}

.modal-content img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.5);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.close:hover,
.close:focus {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.modal-caption {
  margin: 15px 0;
  color: #ccc;
  font-size: 16px;
  text-align: center;
  padding: 10px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 5px;
  display: inline-block;
}

/* Modal animáció */
.modal {
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
