/* =============================================
   tiszato365.hu Wiki – style.css (Brand Update)
   ============================================= */

/* Google Fonts - Montserrat a címsoroknak, Inter a szövegeknek */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Montserrat:wght@600;700;800&display=swap');

/* --- Változók (A Landing page alapján) --- */
:root {
  --bg:          #f4f7f6; /* Nagyon halvány, tiszta szürkéskék háttér */
  --surface:     #ffffff; /* Fehér kártyák és dobozok */
  --border:      #e2e8f0;
  --brand-navy:  #06203d; /* A főoldal sötétkékje (gombok, lábléc) */
  --brand-teal:  #107c64; /* A főoldal zöldes-türkiz kiemelő színe */
  --brand-teal-light: #e6f2ef; /* Halvány türkiz hátterekhez */
  --text:        #1e293b; /* Sötétszürke az olvashatóságért */
  --text-muted:  #64748b;
  --sidebar-w:   268px;
  --nav-h:       70px; /* Kicsit magasabb, elegánsabb fejléc */
  --radius:      8px;  /* Enyhe kerekítés, mint a formoknál */
  --shadow:      0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-hover:0 10px 15px -3px rgba(16, 124, 100, 0.15), 0 4px 6px -2px rgba(16, 124, 100, 0.1);
  --font-body:   'Inter', sans-serif;
  --font-title:  'Montserrat', sans-serif;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

a { color: var(--brand-teal); text-decoration: none; font-weight: 500; }
a:hover { color: var(--brand-navy); text-decoration: underline; }

/* =============================================
   TOPBAR
   ============================================= */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 18px;
  z-index: 200;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.topbar-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  gap: 10px;
}
.topbar-logo img {
  height: 40px; /* A logó mérete */
  width: auto;
  object-fit: contain;
}
.topbar-logo .logo-text {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 800;
  color: var(--brand-navy);
  letter-spacing: -0.5px;
  white-space: nowrap;
}

/* Hamburger – mobil */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--brand-navy);
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

/* =============================================
   LAYOUT & SIDEBAR
   ============================================= */
.page-wrap {
  display: flex;
  padding-top: var(--nav-h);
  min-height: 100vh;
  flex-direction: column;
}

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  position: fixed;
  top: var(--nav-h);
  bottom: 0;
  left: 0;
  overflow-y: auto;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 24px 0 48px;
  z-index: 100;
  transition: transform .3s ease;
}

.sidebar::-webkit-scrollbar { width: 5px; }
.sidebar::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

.sidebar-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 16px 24px 8px;
}

.sidebar nav ul { list-style: none; }

.sidebar nav ul li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 24px;
  font-size: 14.5px;
  color: var(--text);
  text-decoration: none;
  border-left: 4px solid transparent;
  transition: all 0.2s ease;
  font-weight: 500;
}
.sidebar nav ul li a .nav-icon {
  font-size: 18px;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
  opacity: 0.7;
}
.sidebar nav ul li a:hover {
  background: var(--brand-teal-light);
  color: var(--brand-teal);
}
.sidebar nav ul li a:hover .nav-icon { opacity: 1; }

.sidebar nav ul li a.active {
  background: var(--brand-teal-light);
  color: var(--brand-navy);
  border-left-color: var(--brand-teal);
  font-weight: 600;
}
.sidebar nav ul li a.active .nav-icon { opacity: 1; }

/* =============================================
   MAIN CONTENT
   ============================================= */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.content-area {
  flex: 1;
  padding: 48px 56px 80px;
  max-width: 860px;
}

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
  font-weight: 500;
}
.breadcrumb a { color: var(--brand-teal); }
.breadcrumb .sep { opacity: 0.5; }

/* --- Oldal cím --- */
.page-heading {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--brand-navy);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  letter-spacing: -0.5px;
}
.page-heading .h-icon { font-size: 2.2rem; }

/* --- Info box --- */
.box {
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 32px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  font-size: 14.5px;
  line-height: 1.6;
  background: var(--surface);
  box-shadow: var(--shadow);
  border-left: 5px solid var(--brand-teal);
}
.box .box-icon { font-size: 20px; margin-top: 2px; }
.box.warn { border-left-color: #f59e0b; background: #fffbeb; }

/* --- Tartalom tipográfia --- */
.prose h2 {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin: 48px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brand-teal-light);
}
.prose h2:first-child { margin-top: 0; }

.prose h3 {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin: 28px 0 12px;
}

.prose p { margin-bottom: 16px; color: var(--text); }
.prose ul, .prose ol { padding-left: 24px; margin-bottom: 16px; color: var(--text); }
.prose li { margin-bottom: 6px; }
.prose strong { font-weight: 600; color: var(--brand-navy); }

/* --- Adatkártya --- */
.data-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 20px 0 32px;
  box-shadow: var(--shadow);
}
.data-card dl {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 12px 20px;
}
.data-card dt {
  font-weight: 600;
  color: var(--brand-teal);
}
.data-card dd { color: var(--brand-navy); font-weight: 500;}

/* --- Táblázat --- */
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 32px;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.prose th {
  text-align: left;
  background: var(--brand-navy);
  color: white;
  padding: 12px 16px;
  font-weight: 600;
}
.prose td {
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
}
.prose tr:last-child td { border-bottom: none; }
.prose tr:hover td { background: var(--brand-teal-light); }

/* --- Kártyarács (főoldal) --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.nav-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
/* Dekoratív csík a kártya tetején */
.nav-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: var(--brand-teal);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}
.nav-card:hover {
  border-color: var(--brand-teal);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.nav-card:hover::before { transform: scaleX(1); }
.nav-card:hover .c-title { color: var(--brand-teal); }

.nav-card .c-icon { font-size: 32px; margin-bottom: 4px; }
.nav-card .c-title { 
  font-family: var(--font-title);
  font-weight: 700; 
  font-size: 1.1rem; 
  color: var(--brand-navy); 
  transition: color 0.3s ease;
}
.nav-card .c-desc { 
  font-size: 14px; 
  color: var(--text-muted); 
  line-height: 1.6; 
  font-weight: 400;
}

/* --- Lapozó --- */
.pager {
  display: flex;
  justify-content: flex-end;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.pager a {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  background: var(--brand-navy);
  color: white;
  border-radius: var(--radius);
  padding: 12px 24px;
  font-family: var(--font-title);
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
  text-decoration: none;
}
.pager a:hover { 
  background: var(--brand-teal); 
  transform: translateX(4px);
}
.pager small { 
  font-family: var(--font-body);
  font-size: 11px; 
  font-weight: 500;
  color: rgba(255,255,255,0.7); 
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

/* =============================================
   FOOTER WAVES & FOOTER
   ============================================= */
.footer-wave {
  width: 100%;
  display: block;
  margin-top: auto;
  fill: var(--brand-navy); /* A lábléc sötétkék színe */
  margin-bottom: -1px; /* Eltünteti a pici fehér hézagot */
}

footer {
  background: var(--brand-navy);
  color: #94a3b8;
  padding: 40px 56px 30px;
  font-size: 14px;
}
.footer-cols {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
  max-width: 860px;
}
footer h4 {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}
footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; padding: 0; }
footer ul li a { color: #cbd5e1; transition: color 0.2s; font-weight: 400; }
footer ul li a:hover { color: var(--brand-teal); text-decoration: none; }

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: left;
  max-width: 860px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* =============================================
   RESZPONZÍV & OVERLAY
   ============================================= */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6, 32, 61, 0.6); /* Sötétkék overlay */
  backdrop-filter: blur(2px);
  z-index: 99;
}
.overlay.open { display: block; }

@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); z-index: 150; box-shadow: 4px 0 15px rgba(0,0,0,0.1); }
  .sidebar.open { transform: translateX(0); }
  .hamburger { display: flex; }
  .main-content { margin-left: 0; }
  .content-area { padding: 32px 24px 64px; }
  footer { padding: 40px 24px 24px; }
}

@media (max-width: 600px) {
  .data-card dl { grid-template-columns: 1fr; gap: 4px; }
  .data-card dt { margin-top: 12px; }
  .data-card dt:first-child { margin-top: 0; }
  .card-grid { grid-template-columns: 1fr; }
  .page-heading { font-size: 2rem; }
  .footer-cols { gap: 32px; flex-direction: column; }
}