﻿body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #eaeaea;
  color: #222;
}

.page {
  width: 95%;
  margin: 20px auto;
}

.layout {
 display: grid;
  grid-template-columns: 80% 20%;
  gap: 20px;
  align-items: stretch;
}

.layout_track {
 display: grid;
  grid-template-columns: 100%;
  gap: 20px;
  align-items: stretch;
}


/* BAL MENÜ */
.left-menu {
  background: #f3f3f3;
  border: 1px solid #ccc;
  padding: 10px;
}

.left-menu h3 {
  text-align: center;
  margin-top: 0;
}

.left-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.left-menu li {
  padding: 6px;
  border-top: 1px solid #ddd;
  font-size: 14px;
}

.left-menu .sub {
  padding-left: 20px;
  font-size: 13px;
  color: #0044cc;
}

.left-menu .active {
  font-weight: bold;
}

/* KÖZÉP */
.content h1 {
  margin-top: 0;
}

.content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.intro-box {
  background: #efe7d4;
  border: 1px solid #d2c4a3;
  padding: 5px;
  margin-bottom: 15px;
}

.text-box, .fact-box {
  background: #f9f9f9;
  border: 1px solid #ccc;
  padding: 12px;
  flex-grow: 1;
  margin-bottom: 15px;
  margin-top: 15px;
}

.text-box_track{
  background: #f9f9f9;
  border: 1px solid #ccc;
  padding: 12px;
  flex-grow: 1;
  margin-bottom: 15px;
  margin-top: 15px;
}



.text-box_track .img2 {
  display: block;
  border-radius: 20px
}

.two-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

.text-box h2,
.fact-box h2, .text-box_track h2 {
  margin-top: 0;
  border-bottom: 1px solid #ccc;
}

/* JOBB OLDAL */
.right-info {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.info-box:last-child {
  flex-grow: 1;
}

.photo-box {
  background: #eee;
  border: 1px solid #ccc;
  text-align: center;
  padding: 10px;
  margin-bottom: 15px;
}

.photo-box .img2 {
  width: 100%;
  display: block;
  border-radius: 10px
}
.photo-box .img1 {
  display: block;
}
.photo-box .name {
  padding: 8px;
  font-weight: bold;
}

.info-box {
  background: #f5f5f5;
  border: 1px solid #bbb;
  padding: 10px;
 
  margin-bottom: 15px;
}

.info-box h3 {
  margin-top: 0;
  background: #bbb;
  padding: 4px;
  font-size: 14px;
  text-align: center;
}

.info-box a {
  color: #3f83c6; !important;
  font-weight: bold !important;
  text-decoration: none !important;
}

.info-box  a:hover {
  text-decoration: underline !important;
}

.icons {
  list-style: none;
  padding: 0;
  margin: 0;
}

.icons li {
  padding: 4px 0;
}
/* TÁBLÁZAT */
.results {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.results th {
  background: #e2e2e2;
  border: 1px solid #bfbfbf;
  padding: 6px;
  text-align: left;
  font-weight: bold;
}

.results thead th {
  background: #e2e2e2;
  border: 1px solid #bfbfbf;
  padding: 6px;
  text-align: left;
  font-weight: bold;
    position: sticky;
    position: -webkit-sticky;
    top: 0;
    z-index: 999;
}

.results td {
  border: 1px solid #d0d0d0;
  padding: 6px;
  vertical-align: middle;
}

/* ZEBRA SOROK */
.results tbody tr:nth-child(even) {
  background: #f0f0f0;
}

.results2 tbody tr:hover {
  background: #e0e0e0;
}


.pos {
  text-align: center;
}

.pos.p1
 {
  background: #e7c7f6; /* pole pozíció */
}

.pos.r1 {
  background: #bff2a9; /* futamgyőzelem */
}
.track-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.card {
  background: #f6f6f6;
  padding: 10px;
  text-align: center;
}

.no-border, 
.no-border th, 
.no-border td {
  border: none !important;
}

.no-border {
  border-collapse: separate !important; /* vagy ha szeretnéd összevonni, akkor maradhat collapse */
}

.center-text {
  text-align: center;
  vertical-align: middle;
}

.center-text img {
  vertical-align: middle;
  display: inline-block;
  max-height: 20px;
}

.season h3 {
  font-size: 16px;
  margin: 0 0 10px 0;
  padding: 6px 10px;
  background: #dedede;
  border-left: 6px solid #b79d5b;
}

.season {
  background: #fafafa;
  margin-top: 20px;
  padding: 10px;
}





.track-panel {
  margin: 20px;
}

.section-title {
  font-size: 22px;
  margin-bottom: 12px;
  border-bottom: 1px solid #cfcfcf;
  padding-bottom: 6px;
}

/* KÉTOSZLOPOS ELRENDEZÉS */
.track-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 20px;
  align-items: stretch; /* ✅ alapértelmezett, de legyen explicit */
}

/* BAL OLDAL */
.track-info {
  border: 1px solid #cfcfcf;
  background: #f7f7f7;
}

.track-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  padding: 8px 10px;
  border-bottom: 1px solid #ddd;
  font-size: 14px;
}

.track-row:last-child {
  border-bottom: none;
}

.track-row .label {
  font-weight: bold;
  color: #333;
}

.track-row .value {
  color: #000;
}

/* JOBB OLDAL */
.track-map {
  border: 1px solid #cfcfcf;
  background: #eef5fb;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}


.track-map img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}




.track-stats {
  margin: 24px 20px;
}

.stats-title {
  font-size: 18px;
  margin-bottom: 10px;
  border-bottom: 1px solid #cfcfcf;
  padding-bottom: 4px;
}

.stats-box {
  border: 1px solid #cfcfcf;
  background: #f7f7f7;
}

/* egy sor = egy stat */
.stat-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  padding: 8px 10px;
  border-bottom: 1px solid #ddd;
  font-size: 14px;
}

.stat-row:last-child {
  border-bottom: none;
}

.stat-label {
  font-weight: bold;
  color: #333;
}

.stat-value {
  color: #000;
}

/* fejléc */
.results2 thead th {
  background: #e2e2e2;
  border: 1px solid #bfbfbf;
  padding: 6px;
  text-align: left;
  font-weight: bold;
  position: sticky;
  top: 0;
  z-index: 10;
}

.results2 {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  border: 1px solid #d0d0d0; /* külső keret marad */
}

/* csak függőleges vonalak alapból */
.results2 th,
.results2 td {
  border-left: 1px solid #d0d0d0;
  border-right: 1px solid #d0d0d0;
  padding: 6px;
}

/* fejléc marad teljes keretes */
.results2 thead th {
  background: #e2e2e2;
  border: 1px solid #bfbfbf;
  position: sticky;
  top: 0;
  z-index: 10;
}

/* zebra */
.results2 tr.row-a { background: #ffffff; }
.results2 tr.row-b { background: #f2f2f2; }

/* vízszintes elválasztó CSAK új helyezésnél */
.results2 tr.new-pos td {
  border-top: 1px solid #d0d0d0;
}

.results tbody tr:hover {
  background: #e0e0e0;
}

