:root {
  color-scheme: dark;
  --md-sys-color-primary: rgb(155 212 160);
  --md-sys-color-surface-tint: rgb(155 212 160);
  --md-sys-color-on-primary: rgb(0 57 21);
  --md-sys-color-primary-container: rgb(27 81 41);
  --md-sys-color-on-primary-container: rgb(182 241 187);
  --md-sys-color-secondary: rgb(157 212 158);
  --md-sys-color-on-secondary: rgb(2 57 19);
  --md-sys-color-secondary-container: rgb(30 81 39);
  --md-sys-color-on-secondary-container: rgb(184 241 185);
  --md-sys-color-tertiary: rgb(154 212 162);
  --md-sys-color-on-tertiary: rgb(0 57 23);
  --md-sys-color-tertiary-container: rgb(25 81 42);
  --md-sys-color-on-tertiary-container: rgb(181 241 189);
  --md-sys-color-error: rgb(255 179 178);
  --md-sys-color-on-error: rgb(86 29 32);
  --md-sys-color-error-container: rgb(115 51 53);
  --md-sys-color-on-error-container: rgb(255 218 217);
  --md-sys-color-background: rgb(16 21 16);
  --md-sys-color-on-background: rgb(224 228 220);
  --md-sys-color-surface: rgb(16 21 16);
  --md-sys-color-on-surface: rgb(224 228 220);
  --md-sys-color-surface-variant: rgb(65 73 65);
  --md-sys-color-on-surface-variant: rgb(193 201 190);
  --md-sys-color-outline: rgb(139 147 137);
  --md-sys-color-outline-variant: rgb(65 73 65);
  --md-sys-color-shadow: rgb(0 0 0);
  --md-sys-color-scrim: rgb(0 0 0);
  --md-sys-color-inverse-surface: rgb(224 228 220);
  --md-sys-color-inverse-on-surface: rgb(45 50 44);
  --md-sys-color-inverse-primary: rgb(53 105 63);
  --md-sys-color-primary-fixed: rgb(182 241 187);
  --md-sys-color-on-primary-fixed: rgb(0 33 9);
  --md-sys-color-primary-fixed-dim: rgb(155 212 160);
  --md-sys-color-on-primary-fixed-variant: rgb(27 81 41);
  --md-sys-color-secondary-fixed: rgb(184 241 185);
  --md-sys-color-on-secondary-fixed: rgb(0 33 8);
  --md-sys-color-secondary-fixed-dim: rgb(157 212 158);
  --md-sys-color-on-secondary-fixed-variant: rgb(30 81 39);
  --md-sys-color-tertiary-fixed: rgb(181 241 189);
  --md-sys-color-on-tertiary-fixed: rgb(0 33 11);
  --md-sys-color-tertiary-fixed-dim: rgb(154 212 162);
  --md-sys-color-on-tertiary-fixed-variant: rgb(25 81 42);
  --md-sys-color-surface-dim: rgb(16 21 16);
  --md-sys-color-surface-bright: rgb(54 58 53);
  --md-sys-color-surface-container-lowest: rgb(11 15 11);
  --md-sys-color-surface-container-low: rgb(24 29 24);
  --md-sys-color-surface-container: rgb(28 33 28);
  --md-sys-color-surface-container-high: rgb(38 43 38);
  --md-sys-color-surface-container-highest: rgb(49 54 49);
  --sidebar-bg: #101510;
  --main-bg: #0b0f0b;
  --surface-bg: #101510;
  --card-bg: #232823;
  --red: #272B26;
  --green-btn: #2d3a2d;
  --green-btn-arrow: #b6c6b6;
  --text-main: #e3e3e3;
  --text-secondary: #a0a0a0;
  --border-radius: 32px;
  --card-radius: 32px;
  --news-radius: 20px;
  --sidebar-width: 76px;
  --sidebar-width-open: 198px;
  --transition: 0.2s cubic-bezier(.4,0,.2,1);
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background: var(--surface-bg);
  color: var(--text-main);
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  width: 100vw;
  overflow-x: hidden;
  overflow-y: hidden;
}

.app-bg {
  position: relative;
  min-height: 100vh;
  min-width: 100vw;
  width: 100%;
  height: 100vh;
  background: var(--surface-bg);
  display: flex;
  flex-direction: row;
}

.sidebar {
  background: #101510;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 0;
  border-radius: 32px 0 0 32px;
  min-width: var(--sidebar-width);
  width: var(--sidebar-width);
  height: calc(100vh - 44px);
  margin-top: 22px;
  margin-bottom: 22px;
  z-index: 2;
  position: relative;
}

.sidebar.open {
  width: var(--sidebar-width-open);
  min-width: var(--sidebar-width-open);
}

.main-area {
  flex: 1; /* kitölti a sidebar melletti helyet */
  min-width: 0; /* fontos, hogy a flexbox engedje zsugorodni */
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 0;
}

.main-content {
  background: var(--main-bg);
  border-radius: 32px;
  margin: 22px 22px 0px 0;
  padding: 0 22px 0px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.12);
  max-width: calc(100% - 22px);
  min-height: calc(100dvh - 104px); /* mobilbarát */
  height: calc(100dvh - 104px);
  overflow-y: scroll;
  scroll-behavior: smooth
}

.header {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  margin-bottom: 22px;
  min-height: 80px;
  position: sticky;
  top: 0;
  z-index: 10;
  background: #0B0F0B;
  backdrop-filter: blur(12px);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.welcome-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-top: 40px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.header.hide .welcome-container {
  transform: translateY(-50%);
  opacity: 0;
}

.header-icons {
  position: absolute;
  top: 8px;
  right: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--green-btn);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  transition: var(--transition);
}

.header-icon-link:hover {
  background-color: var(--card-bg);
}

.header-icon {
  width: 24px;
  height: 24px;
}

.welcome-icon {
  width: calc(100% - 220px);
  height: 60px;
}

.welcome-text {
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--text-main);
  margin-top: 4px;
}

.footer { 
  margin-top: 8px; 
  position: relative; 
}

#site-footer .footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 12px;
  background: #0E1512;
}
#site-footer .footer-left img,
#site-footer .footer-right img {
  height: 65px;
  object-fit: contain;
}

#site-footer .footer-right {
  padding-right: 48px;
}

#site-footer .footer-center {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
#site-footer .footer-privacy {
  color: #C4C8C3;
  text-decoration: underline;
  cursor: pointer;
  font-size: 14px;
}
@media (max-width: 900px) {
  #site-footer .footer-container {
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px;
  }
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
  color: var(--text-main);
  margin: 0 0 16px 0;
  font-weight: 500;
}

.section-title-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
  color: var(--text-main);
  margin: 26px 0 16px 0;
  font-weight: 500;
}

.arrow-icon {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  filter: brightness(0.8);
}
.event-frame {
  width: 100%;
  border-radius: 32px;
  overflow-x: auto;
  overflow-y: hidden;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
  padding: 6px 0 6px 6px;
  background: var(--main-bg);
}

.top-cards-row {
  display: flex;
  gap: 8px;
  width: max-content;
  min-width: 100%;
}

.event-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.event-container.hidden {
  display: none !important;
}

.red-card {
  background: var(--red);
  border-radius: var(--card-radius);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}
.red-card.large {
  width: 400px;
  height: 205px;
  transition: width 0.3s ease;
}
.red-card.medium {
  width: 120px;
  height: 205px;
  transition: width 0.3s ease;
}
.red-card.small {
  width: 56px;
  height: 205px;
  transition: width 0.3s ease;
}
.event-labels-row {
  display: flex;
  flex-direction: row;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 0;
}
.event-label {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  color: var(--text-main);
  font-size: 1.05rem;
  font-weight: 500;
}

.event-label-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.event-label .desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.event-label .place {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.arrow-container {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--green-btn);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  transition: var(--transition);
}

.arrow-container:hover {
  background-color: var(--card-bg);
}

.arrow-container .arrow-icon {
  filter: brightness(1);
  width: 12px;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bottom-cards-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding-bottom: 8px; 
  width: 100%;
  justify-content: flex-start;
}

.bottom-cards-row::-webkit-scrollbar {
  height: 8px;
}
.bottom-cards-row::-webkit-scrollbar-track {
  background: var(--card-bg);
  border-radius: 10px;
}
.bottom-cards-row::-webkit-scrollbar-thumb {
  background: var(--green-btn);
  border-radius: 10px;
}
.bottom-cards-row::-webkit-scrollbar-thumb:hover {
  background: var(--card-bg);
}


.news-card {
  background: var(--card-bg);
  border-radius: 32px;
  width: 272px;
  min-width: 272px;
  max-width: 272px;
  height: 205px;
  display: flex;
  flex-direction: column;
  padding: 12px;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.13);
  flex-shrink: 0;
  overflow: hidden;
  transition: var(--transition), width 0.3s ease, min-width 0.3s ease, max-width 0.3s ease;
}

.news-card:hover {
  background: #333833;
}

.red-rect {
  background: var(--red);
  border-radius: 32px;
  width: 100%;
  height: 120px;
  flex-shrink: 0;
}

.news-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  margin-top: 12px;
  overflow: hidden;
}

.news-label .title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-label .desc {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-carousel {
  position: relative;
  display: flex;
  align-items: center;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--green-btn);
  border: none;
  color: white;
  font-size: 1.4rem;
  font-weight: 600;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: background 0.2s ease;
  z-index: 10;
}
.carousel-btn:hover {
  background: var(--card-bg);
}
.carousel-btn.left { left: -15px; }
.carousel-btn.right { right: -15px; }


.section-header.upcoming-events h2 {
  font-weight: 600;
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: var(--text-main);
  content: "Közelgő Események";
}
.section-header.news h2 {
  font-weight: 600;
  font-size: 1.4rem;
  margin-bottom: 24px; 
  color: var(--text-main);
}
.header-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  margin-top: 40px;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.account-settings-container {
  display: flex;
  justify-content: center;
  align-items: center; 
  gap: 16px;
  margin-right: 24px;
  position: absolute;
  top: 16px;
  right: 16px;
}

.account-settings-container .icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--card-bg);
  display: flex;
  justify-content: center; 
  align-items: center; 
  cursor: pointer;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 24px;
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.75rem;
  width: 64px;
  padding: 0;
  border-radius: 16px;
  transition: var(--transition);
  position: relative;
}

.nav-item-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.75rem;
  width: 64px;
  height: 64px;
  padding: 0;
  border-radius: 16px;
  transition: var(--transition);
  position: relative;
  border: none;
  background: none;
  outline: none;
}

.nav-item:not(.active):hover .nav-icon-container {
  background-color: #232823;
}

.nav-item-list:hover {
  background-color: #ffffff2b;
}

.nav-item-list span {
  pointer-events: none;
}

.nav-item.active .nav-icon-container {
  background-color: var(--green-btn);
}

.nav-item span {
  color: #C1C9BE;
}

.nav-item.active span {
  color: #D4E8D1;
}

.nav-icon {
  filter: brightness(0) saturate(100%) invert(85%) sepia(6%) saturate(466%) hue-rotate(60deg) brightness(95%) contrast(86%); /* #C1C9BE */
}

.nav-item.active .nav-icon {
  filter: brightness(0) saturate(100%) invert(94%) sepia(11%) saturate(309%) hue-rotate(61deg) brightness(94%) contrast(90%); /* #D4E8D1 */
}
.nav-icon-container {
  width: 56px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  transition: var(--transition);
}

.nav-icon {
  width: 24px;
  height: 24px;
}

/* ---------- open navbar  ---------- */

.nav-menu-open {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 24px;
}
.nav-item-open {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.75rem;
  width: calc(100% - 28px);
  padding: 0;
  border-radius: 16px;
  transition: var(--transition);
  position: relative;
}

.nav-item-open-list {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.75rem;
  width: calc(100% - 28px);
  height: calc(100% - 28px);
  padding: 0;
  border-radius: 16px;
  transition: var(--transition);
  position: relative;
  border: none;
  background: none;
  outline: none;
}

.nav-item-open:not(.active):hover {
  background-color: #232823;
  height: 50px;
  border-radius: 32px;
}

.nav-item-list:hover {
  background-color: #ffffff2b;
}

.nav-item.active {
  /* background-color: var(--green-btn); */
  height: 50px;
  border-radius: 32px;
}

.nav-item-open span {
  color: #C1C9BE;
}

.nav-item-open.active span {
  color: #D4E8D1;
}

.nav-icon-open {
  filter: brightness(0) saturate(100%) invert(85%) sepia(6%) saturate(466%) hue-rotate(60deg) brightness(95%) contrast(86%); /* #C1C9BE */
}

.nav-item-open.active .nav-icon-open {
  filter: brightness(0) saturate(100%) invert(94%) sepia(11%) saturate(309%) hue-rotate(61deg) brightness(94%) contrast(90%); /* #D4E8D1 */
}
.nav-icon-open-container {
  width: 56px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  transition: var(--transition);
}

/* Alapból elrejtjük a szöveget */
.nav-item-list span {
  display: none;
}

/* Csak ha a gombnak van a "-open" osztálya, mutatjuk */
.nav-item-list.nav-item-open-list span {
  display: flex; /* vagy flex, ha flex konténer */
}


.nav-icon-open {
  width: 24px;
  height: 24px;
}

.top-cards-row.shrinked .red-card.large {
  width: 480px;
}

.top-cards-row.shrinked .red-card.medium {
  width: 96px;
}

.top-cards-row.shrinked .red-card.small {
  width: 44px;
}

.top-cards-row.shrinked .event-label,
.top-cards-row.shrinked .event-label-text,
.top-cards-row.shrinked .arrow-container {
  transform: scale(0.9);
  transform-origin: left center;
}
@media (max-width: 1200px) {
  .red-card.large { min-width: 220px; }
}
@media (max-width: 900px) {
  .main-content { padding: 0 8px 32px 32px; }
  .red-card.large { min-width: 140px; }
  .sidebar { margin-left: 8px; }
  .main-content { margin-left: 0; }
}
@media (max-width: 700px) {
  .sidebar { display: none; }
  .main-content { border-radius: 32px; margin: 8px; box-shadow: inset -8px 0 0 var(--md-extended-color-system-regular-color-container), inset 0 -8px 0 var(--md-extended-color-system-regular-color-container); }
  .main-area { margin-left: 0; }
}
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-thumb { background: #232823; border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

/* Új dolgok Popup */
.new-things-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(11, 15, 11, 0.65);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.new-things-container {
  position: relative;
  background: var(--card-bg);
  border-radius: var(--card-radius);
  padding: 32px 18px 32px 18px;
  max-width: 400px;
  width: 400px !important;
  margin: 20px;
  box-sizing: border-box;
}

.new-things-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: #3D433C;
  border-radius: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.new-things-close-btn:hover {
  border-radius: 15px;
}

.new-things-content {
  text-align: center;
}

.new-things-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.new-things-icon {
  width: 24px;
  height: 24px;
  margin-right: 12px;
}

.new-things-icon-top {
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
}

.new-things-title {
  color: #FFFFFF;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.new-things-subtitle {
  color: #FFFFFF;
  opacity: 0.65;
  font-size: 0.95rem;
  margin: 0 0 20px 0;
}

.new-things-image-container {
  background: #3D433C;
  border-radius: 32px;
  padding: 30px;
  margin: 0 0 20px 0;
  display: flex;
  justify-content: center;
  height: 220px;
  box-sizing: border-box;
}

.new-things-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: luminosity;
  opacity: 0.93;
}

.new-things-list {
  text-align: left;
  margin-bottom: 20px;
}

.new-things-item {
  color: #C2C3C2;
  margin: 0 0 12px 0;
  line-height: 1.5;
}

.new-things-footer {
  text-align: center;
}

.new-things-link {
  color: #B7F1B9;
  text-decoration: underline;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.new-things-link:hover {
  color: #FFFFFF;
}

.new-things-link strong {
  font-weight: 700;
}

.new-things-link b {
  font-weight: 700;
}
/* Permission Popup Overlay */
.warning-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(11, 15, 11, 0.65);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.warning-container {
  position: relative;
  background: var(--card-bg);
  border-radius: var(--card-radius);
  padding: 32px;
  max-width: 320px;
  width: 320px !important;
  margin: 20px;
  max-height: 70%;
}

.warning-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: #3D433C;
  border-radius: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.warning-close-btn:hover {
  border-radius: 15px;
}

.warning-content {
  text-align: center;
  max-height: calc(70vh - 64px); /* container padding + biztonsági margó */
  display: flex;
  flex-direction: column;
  align-items: center
}

.warning-hand-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
}

.warning-title {
  color: #FFFFFF;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 24px 0;
}

.warning-list {
  color: #C2C3C2;
  text-align: left;
  margin: 0 0 32px 0;
  line-height: 1.6;
  border-radius: 32px;
  overflow-y: scroll;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.warning-list-wrapper {
  max-height: 180px;
  overflow-y: auto;
}

.warning-list li {
  margin-bottom: 12px;
}

.warning-item {
  background: #3D433C;
  padding: 12px 16px;
  display: flex;
}

.warning-item.first {
  border-radius: 32px 32px 16px 16px;
}

.warning-item.middle {
  border-radius: 16px;
}

.warning-item.last {
  border-radius: 16px 16px 32px 32px;
}

.popup-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  gap: 8px;
}