/*
Theme Name: Letkés Egyedi Sablon
Theme URI: https://letkes.digitaldesignwithai.hu
Description: Letkés község hivatalos egyedi témája a címer színeire építve
Author: Attila - Digital Design with AI
Version: 1.0.0
*/

/* ==========================================================================
   LETKÉS SZÍNPALETTA & CSS VÁLTOZÓK
   ========================================================================== */
:root {
  /* Címer ihlette főszínek */
  --color-primary: #a61c1c; /* Letkés Címervörös */
  --color-primary-hover: #801212; /* Sötétebb vörös hoverhez */
  --color-accent: #e6a119; /* Arany / Szőlő sárga */
  --color-accent-hover: #d28e0e; /* Sötétebb arany */

  /* Semleges sötét színek (Ipoly szikla & Szöveg) */
  --color-dark: #0f172a; /* Lábléc & Sötét elemek */
  --color-text-main: #1e293b; /* Főszöveg szín */
  --color-text-muted: #64748b; /* Másodlagos szöveg */

  /* Semleges világos színek (Háttér & Panelek) */
  --color-bg-main: #f1f5f9; /* Oldal fő háttér */
  --color-panel-bg: #ffffff; /* Oldalsávok és közép panel háttér */
  --color-border: #e2e8f0; /* Keretek, elválasztó vonalak */

  /* Kiemelések / Állapotok */
  --color-badge-bg: #fef2f2; /* Halvány piros háttér jelvényeknek */
  --color-badge-text: #991b1b;
}

/* ==========================================================================
   RÖGZÍTETT APP LAYOUT & STRUKTÚRA
   ========================================================================== */
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden; /* Nincs főoldali görgetősáv */
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial,
    sans-serif;
  background-color: var(--color-bg-main);
  color: var(--color-text-main);
}

.app-layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
}

/* --- FEJLÉC (HEADER) --- */
.app-header {
  height: 70px;
  background-color: var(--color-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  border-bottom: 3px solid var(--color-accent); /* Arany csík a címer mintájára */
  z-index: 10;
}

.app-header h1 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.app-header a {
  color: #ffffff;
  text-decoration: none;
}

/* --- MAIN 3-OSZLOPOS GRID --- */
.app-main {
  flex: 1;
  display: grid;
  grid-template-columns: 280px 1fr 300px;
  gap: 16px;
  padding: 16px;
  overflow: hidden;
}

/* Oldalsávok és Központi Panel */
.app-sidebar,
.app-content {
  background: var(--color-panel-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  overflow-y: auto;
  height: 100%;
}

/* Kártyafejlécek az oldalsávokban */
.sidebar-content h3 {
  font-size: 1.1rem;
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-bg-main);
  padding-bottom: 8px;
  margin-top: 0;
}

.sidebar-content,
.content-inner {
  padding: 20px;
}

/* Egyedi letisztult görgetősávok (Custom Scrollbars) */
.app-sidebar::-webkit-scrollbar,
.app-content::-webkit-scrollbar {
  width: 6px;
}

.app-sidebar::-webkit-scrollbar-track,
.app-content::-webkit-scrollbar-track {
  background: transparent;
}

.app-sidebar::-webkit-scrollbar-thumb,
.app-content::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 3px;
}

.app-sidebar::-webkit-scrollbar-thumb:hover,
.app-content::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* --- LÁBLÉC (FOOTER) --- */
.app-footer {
  height: 40px;
  background-color: var(--color-dark);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  border-top: 1px solid var(--color-border);
  z-index: 10;
}

/* --- RESZPONZÍV NÉZET MOBILRA --- */
@media (max-width: 1024px) {
  html,
  body {
    overflow: auto;
  }

  .app-layout {
    height: auto;
  }

  .app-main {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
  }

  .app-sidebar,
  .app-content {
    height: auto;
    overflow-y: visible;
  }
}

/* ==========================================================================
   TAB-IN-TAB STÍLUSOK (CÍMER SZÍNEKKEL)
   ========================================================================== */

[x-cloak] {
  display: none !important;
}

/* Fő Tabok (Első szint) */
.main-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: 12px;
  overflow-x: auto;
}

.main-tabs button {
  background: var(--color-bg-main);
  border: 1px solid var(--color-border);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  padding: 10px 16px;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.main-tabs button:hover {
  color: var(--color-primary);
  background: #ffffff;
}

.main-tabs button.active {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

/* Sub-Tabok (Második szint) */
.sub-tabs {
  display: flex;
  gap: 6px;
  background: var(--color-bg-main);
  padding: 6px;
  border-radius: 6px;
  margin-bottom: 20px;
  overflow-x: auto;
}

.sub-tabs button {
  background: transparent;
  border: none;
  padding: 6px 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-main);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.sub-tabs button:hover {
  background: rgba(0, 0, 0, 0.05);
}

.sub-tabs button.active {
  background: var(--color-accent);
  color: #ffffff;
}

/* Kártyák és Hírek listája */
.news-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: 6px;
  padding: 14px;
  margin-bottom: 12px;
}

.news-card h3 {
  margin: 4px 0 8px 0;
  font-size: 1.1rem;
}

.news-card h3 a {
  color: var(--color-text-main);
  text-decoration: none;
}

.news-card h3 a:hover {
  color: var(--color-primary);
}

.news-date {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
