﻿:root {
  --bg: #f2f3ee;
  --card: #ffffff;
  --ink: #1e232b;
  --muted: #5a6675;
  --line: #d7dde6;
  --hero-a: #1f2a38;
  --hero-b: #34465d;
  --ets2: #2f6fa8;
  --ets2-deep: #173753;
  --ats: #f3bf2f;
  --ats-deep: #a57800;
  --omsi: #2f7a64;
  --omsi-deep: #1d4d41;
  --pcbs2: #4f6fa8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

h1,
h2,
h3,
.brand {
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.02em;
}

.hero {
  color: #f8fbff;
  padding-bottom: 2rem;
}

.hero-mixed {
  background:
    linear-gradient(110deg, rgba(47, 111, 168, 0.92) 0%, rgba(243, 191, 47, 0.86) 55%, rgba(47, 122, 100, 0.88) 100%),
    linear-gradient(300deg, var(--hero-a), var(--hero-b));
}

.theme-ets2 {
  background: linear-gradient(115deg, rgba(47, 111, 168, 0.2), transparent 52%), var(--bg);
}

.theme-ets2 .hero {
  background: linear-gradient(130deg, var(--ets2-deep), var(--ets2));
}

.theme-ats {
  background: linear-gradient(295deg, rgba(243, 191, 47, 0.28), transparent 54%), var(--bg);
}

.theme-ats .hero {
  background: linear-gradient(130deg, #7f5a00, var(--ats));
  color: #222;
}

.theme-ats .brand,
.theme-ats .menu a,
.theme-ats .dropdown-toggle {
  color: #222;
}

.theme-omsi {
  background:
    linear-gradient(160deg, rgba(47, 122, 100, 0.2), transparent 55%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.02) 0 2px, transparent 2px 22px),
    var(--bg);
}

.theme-omsi .hero {
  background: linear-gradient(130deg, var(--omsi-deep), var(--omsi));
}

.theme-pcbs2 {
  background: linear-gradient(135deg, rgba(79, 111, 168, 0.2), transparent 55%), var(--bg);
}

.theme-pcbs2 .hero {
  background: linear-gradient(130deg, #1f2d4a, var(--pcbs2));
}

.topbar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
}

.topbar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
  width: 100%;
}

.brand {
  color: #fff;
  text-decoration: none;
  font-size: 1.4rem;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
}

.topbar-action {
  text-decoration: none;
  color: #111;
  background: #fff;
  border: 2px solid #000;
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.search-toggle {
  display: none;
  border: 2px solid #000;
  background: #fff;
  color: #111;
  border-radius: 999px;
  width: 44px;
  height: 44px;
  padding: 0;
  font: inherit;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
}

.nav-search {
  display: flex;
  align-items: center;
  flex: 0 1 230px;
  justify-content: flex-end;
  gap: 0.4rem;
}

.nav-search input {
  width: 100%;
  max-width: 170px;
  padding: 0.55rem 0.8rem;
  border: 2px solid #000;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  font: inherit;
}

.search-button {
  border: 2px solid #000;
  background: #fff;
  color: #111;
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.search-cancel {
  display: none !important;
  border: 2px solid #000;
  background: #fff;
  color: #111;
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.menu {
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.menu a,
.dropdown-toggle {
  color: #ecf2ff;
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  padding: 0.45rem 0.7rem;
  border-radius: 0.45rem;
  cursor: pointer;
  font: inherit;
}

.menu > li > a,
.menu > li > .dropdown-toggle {
  box-shadow: 0 0 0 2px #000;
}

.dropdown-toggle-ets2 {
  border-color: rgba(117, 188, 255, 0.45);
  background: rgba(53, 129, 197, 0.24);
}

.dropdown-toggle-ats {
  border-color: rgba(255, 225, 118, 0.6);
  background: rgba(243, 191, 47, 0.35);
}

.dropdown-toggle-omsi {
  border-color: rgba(130, 231, 199, 0.5);
  background: rgba(47, 122, 100, 0.3);
}

.dropdown-toggle-pcbs2 {
  border-color: rgba(159, 196, 255, 0.5);
  background: rgba(79, 111, 168, 0.32);
}

.menu-link-ets2 {
  border-color: rgba(117, 188, 255, 0.45) !important;
  background: rgba(53, 129, 197, 0.24) !important;
}

.menu-link-pcbs2 {
  border-color: rgba(159, 196, 255, 0.5) !important;
  background: rgba(79, 111, 168, 0.32) !important;
}

.menu a:hover,
.dropdown-toggle:hover,
.menu a:focus-visible,
.dropdown-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  outline: none;
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 105%;
  left: 0;
  min-width: 220px;
  list-style: none;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.16);
  margin: 0;
  padding: 0.35rem;
  display: none;
  z-index: 5;
}

.dropdown.open .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  color: var(--ink) !important;
  display: block;
  border-radius: 0.35rem;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
  background: #f1f5fb;
}

.hero-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1rem 0.5rem;
}

.hero-content h1 {
  margin: 0.2rem 0 0.5rem;
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.hero-content p {
  max-width: 700px;
}

.hero-status-row {
  display: grid;
  gap: 1rem;
  margin-top: 1.2rem;
}

.hero-status-card {
  display: inline-grid;
  gap: 0.2rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0.8rem;
  padding: 0.85rem 1rem;
  max-width: 720px;
}

.hero-status-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.82;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  opacity: 0.85;
  font-size: 0.82rem;
}

.cta {
  display: inline-block;
  margin-top: 0.7rem;
  text-decoration: none;
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
}

.cta-ets2 {
  background: var(--ets2);
}

.cta-ets2:hover,
.cta-ets2:focus-visible {
  background: var(--ets2-deep);
}

.cta-ats {
  background: #d8a500;
  color: #222;
}

.cta-ats:hover,
.cta-ats:focus-visible {
  background: #b88d00;
}

.cta-omsi {
  background: var(--omsi);
}

.cta-omsi:hover,
.cta-omsi:focus-visible {
  background: var(--omsi-deep);
}

.portal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.command-center-panel {
  overflow: hidden;
}

.command-center-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1rem;
}

.command-hero-card,
.command-side-card {
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(47, 122, 100, 0.16), rgba(255, 255, 255, 0.98));
}

.command-hero-card h2,
.command-side-card h3 {
  margin-top: 0;
}

.command-quick-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.command-quick-stats div {
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.85);
  padding: 0.8rem;
  border: 1px solid var(--line);
}

.command-quick-stats span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.command-quick-stats strong {
  font-family: "Oswald", sans-serif;
  font-size: 1.35rem;
}

.intro-contact {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.2rem 1rem 2rem;
  display: grid;
  gap: 1rem;
}

.cards-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.games-grid {
  display: grid;
  gap: 1rem;
}

.sim-category-grid {
  display: grid;
  gap: 1rem;
}

.sim-category-card {
  border-left: 6px solid var(--pcbs2);
  background: linear-gradient(90deg, rgba(79, 111, 168, 0.12), #ffffff 36%);
}

.sim-game-list {
  margin: 0.9rem 0 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.25rem;
}

.content-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.35rem;
}

.game-card,
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  padding: 1rem;
}

.game-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1rem;
  align-items: center;
}

.game-card-ets2 {
  border-left: 6px solid var(--ets2);
  background: linear-gradient(90deg, rgba(47, 111, 168, 0.12), #ffffff 36%);
}

.game-card-ats {
  border-left: 6px solid #d8a500;
  background: linear-gradient(90deg, rgba(243, 191, 47, 0.2), #ffffff 36%);
}

.game-card-omsi {
  border-left: 6px solid var(--omsi);
  background: linear-gradient(90deg, rgba(47, 122, 100, 0.16), #ffffff 36%);
}

.game-card-pcbs2 {
  border-left: 6px solid var(--pcbs2);
  background: linear-gradient(90deg, rgba(79, 111, 168, 0.16), #ffffff 36%);
}

.game-card img {
  width: 100%;
  height: auto;
  border-radius: 0.6rem;
  border: 1px solid #d5dbe4;
}

#roblox img {
  display: block;
  width: min(220px, 100%);
  height: auto;
  margin-bottom: 0.9rem;
  border-radius: 1rem;
  border: 2px solid #101214;
}

.game-card h3 a {
  color: inherit;
  text-decoration: none;
}

.search-hit {
  box-shadow: 0 0 0 4px #111, 0 18px 40px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.2s ease;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.spec-grid article {
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  padding: 0.8rem;
  background: #fcfdff;
}

.spec-grid ul {
  margin: 0.6rem 0 0;
  padding-left: 1.1rem;
}

.trip-example p {
  margin: 0.45rem 0;
}

.trip-log-form {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(47, 122, 100, 0.08), rgba(255, 255, 255, 0.98));
}

.trip-log-form h3 {
  margin-top: 0;
}

.auth-form {
  margin-top: 0;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.auth-status-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.auth-page-panel {
  max-width: 760px;
  margin: 0 auto;
}

.auth-page-form {
  margin-top: 0;
}

.auth-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--omsi-deep);
  color: #fff;
  font-family: "Oswald", sans-serif;
  font-size: 1.1rem;
  box-shadow: 0 0 0 2px #000;
}

.auth-status,
.trip-save-message {
  margin: 0 0 0.8rem;
  font-weight: 700;
  color: var(--omsi-deep);
}

.trip-log-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.trip-log-grid label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
}

.trip-log-grid input,
.trip-log-grid select {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.trip-dashboard {
  margin-top: 1rem;
}

.trip-stats {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.45rem;
}

.trip-list {
  display: grid;
  gap: 0.8rem;
}

.trip-entry {
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  padding: 0.8rem;
  background: #fcfdff;
}

.trip-entry p {
  margin: 0.3rem 0;
}

.interactive-card {
  display: grid;
  gap: 0.8rem;
}

.control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.interactive-label {
  font-weight: 700;
}

.interactive-select,
.interactive-input {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.driver-profile-form {
  display: grid;
  gap: 0.8rem;
}

.interactive-output {
  min-height: 170px;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  padding: 0.9rem;
  background: linear-gradient(180deg, rgba(47, 122, 100, 0.08), rgba(255, 255, 255, 0.98));
}

.info-card p {
  margin: 0.35rem 0;
}

.fleet-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin: 1.4rem 0 0.9rem;
}

.fleet-header h3 {
  margin: 0.15rem 0 0;
}

.fleet-note,
.route-legend {
  margin: 0;
  color: var(--muted);
}

.bus-fleet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.bus-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  overflow: hidden;
  background: #fcfdff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.bus-card:hover,
.bus-card.selected {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
  border-color: var(--omsi);
}

.bus-card img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
}

.bus-card-body {
  padding: 0.9rem 0.9rem 0.9rem 0;
}

.bus-card-top {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: start;
}

.bus-card-top h4 {
  margin: 0;
  font-size: 1.3rem;
}

.bus-card-top p {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

.rarity-badge {
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.rarity-ingyenes {
  background: rgba(47, 122, 100, 0.14);
  color: var(--omsi-deep);
}

.rarity-limited {
  background: rgba(243, 191, 47, 0.24);
  color: #7f5a00;
}

.rarity-admin {
  background: rgba(47, 111, 168, 0.18);
  color: var(--ets2-deep);
}

.bus-stat-list {
  margin: 0.8rem 0 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.35rem;
}

.route-and-profile-grid {
  margin-top: 1rem;
}

.route-list {
  display: grid;
  gap: 0.7rem;
}

.route-item {
  border-left: 4px solid var(--omsi);
  padding: 0.65rem 0.8rem;
  border-radius: 0.6rem;
  background: rgba(47, 122, 100, 0.08);
}

.route-item strong,
.route-item span {
  display: block;
}

.route-item span {
  color: var(--muted);
}

.game-loop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.loop-output {
  min-height: 145px;
}

.loop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.achievement-list {
  display: grid;
  gap: 0.8rem;
}

.achievement-item {
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: #fcfdff;
  opacity: 0.72;
}

.achievement-item strong,
.achievement-item span {
  display: block;
}

.achievement-item.unlocked {
  opacity: 1;
  border-color: #d8a500;
  background: linear-gradient(135deg, rgba(243, 191, 47, 0.14), rgba(255, 255, 255, 1));
}

.speed-ok {
  color: var(--omsi-deep);
}

.speed-bad {
  color: #922f2f;
}

.trip-meta,
.empty-state {
  color: var(--muted);
}

.footer-links-simple {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.footer-links-simple a {
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  box-shadow: 0 0 0 2px #000;
  font-weight: 600;
}

footer {
  text-align: center;
  padding: 1rem;
  color: var(--muted);
}

.footer-links-block {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem 1.2rem;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.footer-links-grid .panel h3 {
  margin-top: 0;
}

.footer-links-grid .panel a {
  color: var(--ets2-deep);
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 980px) {
  .cards-3 {
    grid-template-columns: 1fr;
  }

  .footer-links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .topbar {
    padding: 0.8rem;
  }

  .topbar-header {
    gap: 0.6rem;
  }

  .menu {
    gap: 0.35rem;
  }

  .topbar-header {
    flex-wrap: wrap;
  }

  .game-card,
  .spec-grid,
  .command-center-grid,
  .control-grid,
  .bus-fleet-grid,
  .game-loop-grid {
    grid-template-columns: 1fr;
  }

  .bus-card {
    grid-template-columns: 1fr;
  }

  .bus-card-body {
    padding: 0 0.9rem 0.9rem;
  }

  .trip-log-grid {
    grid-template-columns: 1fr;
  }

  .intro-contact {
    grid-template-columns: 1fr;
  }

  .portal-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .fleet-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .command-quick-stats {
    grid-template-columns: 1fr;
  }

  /* Csak mobilon: ATS és OMSI sorrend csere a főoldali játéklistában */
  .games-grid .game-card-ats {
    order: 1;
  }

  .games-grid .game-card-ets2 {
    order: 2;
  }

  .games-grid .game-card-omsi {
    order: 3;
  }

  .games-grid .game-card-pcbs2 {
    order: 4;
  }
}

@media (max-width: 600px) {
  .topbar-header {
    align-items: center;
    position: relative;
  }

  .topbar-actions {
    order: 2;
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
  }

  .topbar-action {
    padding: 0.45rem 0.7rem;
    font-size: 0.95rem;
  }

  .nav-search {
    position: absolute;
    top: 0;
    right: 0;
    left: 74px;
    display: none;
    flex-basis: auto;
    justify-content: flex-end;
    padding: 0.1rem 0;
    z-index: 12;
  }

  .nav-search input {
    max-width: none;
    min-width: 0;
    padding: 0.45rem 0.7rem;
  }

  .search-button {
    padding: 0.45rem 0.65rem;
  }

  .search-cancel {
    display: none;
    padding: 0.45rem 0.65rem;
  }

  .search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .topbar.search-open .nav-search {
    display: flex;
  }

  .topbar.search-open .menu {
    display: none;
  }

  .topbar.search-open .search-toggle {
    opacity: 0;
    pointer-events: none;
  }

  .topbar.search-open .search-cancel {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 13;
  }

  .hero-content {
    padding: 1rem 0.8rem 0.3rem;
  }

  .hero-content h1 {
    font-size: 1.8rem;
    line-height: 1.15;
  }

  main {
    padding: 0.9rem 0.7rem 1.4rem;
    gap: 0.7rem;
  }

  .panel,
  .game-card {
    padding: 0.75rem;
    border-radius: 0.65rem;
  }

  .game-card img {
    border-radius: 0.5rem;
  }

  .menu a,
  .dropdown-toggle {
    padding: 0.55rem 0.7rem;
  }

  .dropdown-menu {
    position: static;
    margin-top: 0.35rem;
    width: 100%;
    box-shadow: none;
  }

  .brand {
    font-size: 1.2rem;
  }

  footer {
    padding: 0.8rem;
    font-size: 0.95rem;
  }

  .footer-links-grid {
    grid-template-columns: 1fr;
  }
}
