/* ==========================================================================
   1. Globális alapok és Betűtípus
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #2563eb;          /* Élénkebb SEO kék */
  --primary-hover: #1d4ed8;
  --text-dark: #0f172a;        /* Mély pala-szürke */
  --text-muted: #475569;       /* Olvasható másodlagos szürke */
  --bg-main: #f8fafc;          /* Nagyon lágy háttér */
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --transition: all 0.2s ease-in-out;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.7;
  padding: 40px 20px;
}

/* Elrendezés konténer (#kocka) */
#kocka {
  max-width: 850px;
  margin: 0 auto;
  background-color: var(--bg-card);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

/* ==========================================================================
   2. Navigációs menü
   ========================================================================== */
.menu nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.menu nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: 8px;
  transition: var(--transition);
  border: 1px solid transparent;
}

.menu nav a:hover {
  color: var(--primary);
  background-color: #eff6ff;
  border-color: #dbeafe;
}

/* ==========================================================================
   3. Tipográfia és Szöveges elemek
   ========================================================================== */
h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  color: var(--text-dark);
}

h2 {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 32px;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-top: 32px;
  margin-bottom: 12px;
}

h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-top: 32px;
  margin-bottom: 16px;
}

p, body > text, #kocka > text { /* HTML-ben elszórt p nélküli szövegek kezelése */
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

hr {
  border: 0;
  height: 1px;
  background-color: var(--border);
  margin: 40px 0;
}

/* Kapcsolati e-mail gomb (a régi center helyett) */
center {
  display: block;
  margin: 32px 0;
}

center a[href^="mailto:"] {
  display: inline-block;
  background-color: var(--primary);
  color: #ffffff;
  padding: 12px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

center a[href^="mailto:"]:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

/* ==========================================================================
   4. Cikk lista (Az oldalsó számozott lista modernizálása)
   ========================================================================== */
ol {
  list-style: none; /* Eltávolítjuk a ronda alapértelmezett számokat */
  counter-reset: cikk-counter;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

ol li {
  counter-increment: cikk-counter;
  position: relative;
  padding: 20px 20px 20px 60px;
  background-color: #f8fafc;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: var(--transition);
}

ol li:hover {
  border-color: #cbd5e1;
  background-color: #f1f5f9;
}

/* Szép egyedi számozás generálása */
ol li::before {
  content: counter(cikk-counter);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 28px;
  height: 28px;
  background-color: #e2e8f0;
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

ol li h3 {
  margin: 0 0 4px 0;
  font-size: 1.1rem;
}

ol li h3 a {
  color: var(--primary);
  text-decoration: none;
}

ol li h3 a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   5. Lábléc (Footer)
   ========================================================================== */
div[style*="text-align: center"] { /* HTML inline stílus felülírása */
  text-align: center !important;
  font-size: 0.9rem;
  color: var(--text-muted);
}

div[style*="text-align: center"] a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
}

div[style*="text-align: center"] a:hover {
  color: var(--primary);
}

/* ==========================================================================
   6. Süti (Cookie) Banner
   ========================================================================== */
.cookie-container {
  display: none; /* A JS vezérli */
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background-color: #1e293b; /* Sötét banner a kontraszt miatt */
  color: #ffffff;
  padding: 16px 24px;
  border-radius: var(--radius);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  max-width: 500px;
  margin: 0 auto;
}

.cookie-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

@media(min-width: 576px) {
  .cookie-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cookie-content p {
  color: #cbd5e1;
  font-size: 0.9rem;
  margin: 0;
}

.cookie-link {
  color: #38bdf8;
  text-decoration: underline;
}

.cookie-btn {
  background-color: #ffffff;
  color: #0f172a;
  border: none;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.cookie-btn:hover {
  background-color: #f1f5f9;
}

/* ==========================================================================
   7. Reszponzivitás (Mobil nézet)
   ========================================================================== */
@media (max-width: 600px) {
  body {
    padding: 12px;
  }
  #kocka {
    padding: 20px;
  }
  h1 {
    font-size: 1.75rem;
  }
  .menu nav {
    gap: 8px;
  }
  .menu nav a {
    width: 100%;
    text-align: center;
    background-color: #f1f5f9;
  }
}