/* =====================================================================
   COMPARADE 2026 - Wuhu résztvevői oldal (party.lan)
   A comparade.de weblap arculatát követi.
   Szükséges fájlok a /var/www/party mappában:
     template.html, style.css, comparade-logo.jpg, fonts/AdventPro.ttf
   ===================================================================== */

@font-face {
  font-family: "Advent Pro";
  src: url("fonts/AdventPro.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
}

:root {
  --cp-heading:  #99AAEE;
  --cp-heading-shadow: #DD9999;
  --cp-sub:      #6677CC;
  --cp-text:     #5566BB;
  --cp-soft:     #8899CC;
  --cp-accent:   #FF9988;
  --cp-orange:   #E8A33D;
  --cp-band-top: #EBF6FF;
  --cp-band-bot: #CFCFFF;
  --cp-line:     #E4E6FA;
  --cp-menu:     #666;
  --cp-font-head: "Advent Pro", "Segoe UI", sans-serif;
  --cp-font-mono: "Andale Mono", "andale mono", Consolas, "DejaVu Sans Mono", monospace;
  --cp-width: 1100px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body
{
  margin: 0;
  background: #fff;
  color: var(--cp-text);
  font-family: var(--cp-font-mono);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--cp-accent); text-decoration: none; }
a:hover { color: var(--cp-sub); }

img { max-width: 100%; height: auto; }

/* ---------- fejléc: logó ---------- */

#header
{
  padding: 28px 16px 22px;
  text-align: center;
}
#header img
{
  display: inline-block;
  width: 400px;
  max-width: 88%;
}

/* ---------- menüsáv ---------- */

#menu
{
  background: linear-gradient(0deg, var(--cp-band-bot) 11%, var(--cp-band-top) 100%);
}
#menu ul
{
  list-style: none;
  max-width: var(--cp-width);
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
#menu li
{
  border-top: 3px solid transparent;
}
#menu li.active
{
  border-top-color: var(--cp-orange);
}
#menu li hr { display: none; }
#menu li:has(> hr) { display: none; }
#menu a
{
  display: block;
  padding: 18px 22px 20px;
  font-family: var(--cp-font-head);
  font-weight: 300;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--cp-menu);
  white-space: nowrap;
}
#menu a:hover,
#menu li.active a
{
  color: var(--cp-sub);
}

/* telefonon a menü vízszintesen görgethető, nem tördel */
@media (max-width: 760px)
{
  #menu ul
  {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  #menu ul::-webkit-scrollbar { display: none; }
  #menu a { padding: 14px 14px 15px; font-size: 19px; }
}

/* ---------- tartalom ---------- */

#content
{
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--cp-width);
  margin: 0 auto;
  padding: 40px 20px 60px;
}

h1, h2, h3, h4
{
  font-family: var(--cp-font-head);
  font-weight: 700;
  line-height: 1.1;
  margin: 1.4em 0 0.6em;
}
#content > :first-child,
#content > :first-child > :first-child { margin-top: 0; }
h1
{
  font-size: clamp(34px, 6vw, 56px);
  text-align: center;
  text-transform: uppercase;
  color: var(--cp-heading);
  text-shadow: 0 -2px var(--cp-heading-shadow);
}
h2 { font-size: clamp(28px, 4.5vw, 40px); color: var(--cp-heading); }
h3 { font-size: clamp(24px, 3.6vw, 32px); color: var(--cp-sub); }
h4 { font-size: 24px; color: var(--cp-sub); }

p { margin: 0 0 1em; }
b, strong { color: var(--cp-sub); }
hr { border: 0; border-top: 2px solid var(--cp-line); margin: 30px 0; }
small { color: var(--cp-soft); }

table { border-collapse: collapse; width: 100%; }
td, th { padding: 6px 10px; border-bottom: 1px solid var(--cp-line); text-align: left; vertical-align: top; }
th { font-family: var(--cp-font-head); font-size: 20px; color: var(--cp-sub); }

/* ---------- hírek ---------- */

#news { margin: 0; }
#news dt
{
  font-family: var(--cp-font-head);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
  color: var(--cp-heading);
  padding-top: 18px;
  border-top: 2px solid var(--cp-line);
}
#news dt:first-child { border-top: 0; padding-top: 0; }
#news dd { margin: 8px 0 26px; }

/* ---------- üzenetek ---------- */

.success, .failure, .error
{
  margin: 0 0 24px;
  padding: 14px 18px;
  border-left: 6px solid;
  background: var(--cp-band-top);
}
.success { border-color: #6BBF8A; color: #3E8A5C; }
.failure, .error { border-color: var(--cp-accent); color: #C9584A; }

/* ---------- űrlapok ---------- */

form label
{
  display: block;
  margin: 14px 0 6px;
  font-family: var(--cp-font-head);
  font-weight: 600;
  font-size: 20px;
  color: var(--cp-sub);
}
input[type=text], input[type=password], input[type=email], input[type=number],
textarea, select
{
  width: 100%;
  max-width: 520px;
  padding: 10px 12px;
  font-family: var(--cp-font-mono);
  font-size: 16px;
  color: var(--cp-text);
  background: #fff;
  border: 1px solid var(--cp-heading);
  border-radius: 0;
}
textarea { min-height: 150px; max-width: 100%; resize: vertical; }
input:focus, textarea:focus, select:focus
{
  outline: none;
  border-color: var(--cp-orange);
  box-shadow: 0 0 0 3px rgba(232, 163, 61, 0.2);
}
input[type=file] { font-family: var(--cp-font-mono); font-size: 14px; color: var(--cp-text); }
input[type=checkbox], input[type=radio] { accent-color: var(--cp-accent); }

input[type=submit], button
{
  margin-top: 18px;
  min-width: 160px;
  padding: 10px 26px;
  font-family: var(--cp-font-head);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  background: var(--cp-accent);
  border: 0;
  border-radius: 0;
  box-shadow: 0 3px 0 var(--cp-heading-shadow);
  cursor: pointer;
}
input[type=submit]:hover, button:hover { background: #F2806F; }
input[type=submit]:active, button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--cp-heading-shadow); }

.formrow { margin-bottom: 8px; }
#screenshot { display: block; margin: 6px 0 10px; border: 1px solid var(--cp-line); }

#uploadedfiles tr.fileselected td { background: var(--cp-band-top); }
#uploadedfiles a { margin-right: 14px; }
#uploadedfiles a.deletefile { color: #C9584A; }

/* ---------- entry listák (saját entryk, szavazás) ---------- */

.entrylist
{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
  margin: 0 0 30px;
}
.entrylist .entry
{
  padding: 12px;
  background: #fff;
  border: 2px solid var(--cp-line);
  border-top: 4px solid var(--cp-band-bot);
}
.entrylist .entry:hover { border-top-color: var(--cp-orange); }
.entrylist .screenshot img
{
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--cp-band-top);
}
.entrylist .compo
{
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--cp-soft);
}
.entrylist .title
{
  margin-top: 8px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.entrylist .title b
{
  font-family: var(--cp-font-head);
  font-size: 22px;
  font-weight: 700;
}
.entrylist .editlink { margin-top: 8px; }
.entrylist .vote select { margin-top: 10px; max-width: none; }

#votingform h3
{
  padding-bottom: 8px;
  border-bottom: 3px solid var(--cp-band-bot);
}
#votesubmit { text-align: center; }

/* ---------- lábléc ---------- */

#footer
{
  background: linear-gradient(0deg, var(--cp-band-bot) 11%, var(--cp-band-top) 100%);
  text-align: center;
  padding: 16px;
}
#footer small { color: var(--cp-menu); font-size: 12px; }

/* =====================================================================
   LiveVote (a LiveVote oldal - telefonos szavazás)
   ===================================================================== */

body #livevoteContainer
{
  --lv-heading:  #99AAEE;
  --lv-heading-shadow: #DD9999;
  --lv-sub:      #6677CC;
  --lv-text:     #5566BB;
  --lv-soft:     #8899CC;
  --lv-accent:   #FF9988;
  --lv-orange:   #E8A33D;
  --lv-band-top: #EBF6FF;
  --lv-band-bot: #CFCFFF;
  --lv-line:     #E4E6FA;
  --lv-font-head: "Advent Pro", "Segoe UI", sans-serif;
  --lv-font-mono: "Andale Mono", "andale mono", Consolas, "DejaVu Sans Mono", monospace;

  max-width: 760px;
  margin: 0 auto;
  font-family: var(--lv-font-mono);
  color: var(--lv-text);
}

/* ---------- compo neve: a weblap menüsávja, narancs jelzővel ---------- */

body #livevoteContainer #compoName
{
  position: relative;
  margin: 0 0 24px;
  padding: 18px 16px 14px;
  background: linear-gradient(0deg, var(--lv-band-bot) 11%, var(--lv-band-top) 100%);
  border-top: 4px solid var(--lv-orange);
  font-family: var(--lv-font-head);
  font-weight: 700;
  font-size: clamp(28px, 7vw, 44px);
  line-height: 1.05;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  color: var(--lv-heading);
  text-shadow: 0 -2px var(--lv-heading-shadow);
}
body #livevoteContainer #compoName::before
{
  content: "Live vote";
  display: block;
  margin-bottom: 4px;
  font-weight: 300;
  font-size: 0.45em;
  letter-spacing: 3px;
  color: #555;
  text-shadow: none;
}

/* ---------- versenyművek listája (a legújabb van felül) ---------- */

body #livevoteContainer #compoEntries
{
  list-style: none;
  margin: 0;
  padding: 0;
}
body #livevoteContainer #compoEntries > li
{
  margin: 0 0 18px;
  padding: 14px 14px 16px;
  border: 2px solid var(--lv-line);
  border-left: 6px solid var(--lv-band-bot);
  background: #fff;
}

/* a lista első eleme a legutóbb megnyitott (épp futó) entry */
body #livevoteContainer #compoEntries > li:first-child
{
  border-color: var(--lv-band-bot);
  border-left-color: var(--lv-orange);
  background: linear-gradient(180deg, var(--lv-band-top) 0%, #fff 70%);
}
body #livevoteContainer #compoEntries > li:first-child h3::before
{
  content: "NOW PLAYING";
  display: block;
  margin-bottom: 4px;
  font-family: var(--lv-font-mono);
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 2px;
  color: var(--lv-accent);
}

body #livevoteContainer #compoEntries h3
{
  margin: 0 0 12px;
  font-family: var(--lv-font-head);
  font-weight: 700;
  font-size: clamp(22px, 5.5vw, 30px);
  line-height: 1.15;
  color: var(--lv-sub);
  overflow-wrap: anywhere;
}

/* ---------- szavazógombok (0-5) ---------- */

body #livevoteContainer .votes
{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
}
body #livevoteContainer .votes .vote
{
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  aspect-ratio: 1 / 1;
  max-height: 72px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--lv-font-head);
  font-weight: 700;
  font-size: clamp(22px, 6vw, 32px);
  color: var(--lv-sub);
  background: var(--lv-band-top);
  border: 2px solid var(--lv-band-bot);
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background 120ms, color 120ms, transform 80ms;
}
body #livevoteContainer .votes .vote:hover
{
  background: var(--lv-band-bot);
}
body #livevoteContainer .votes .vote:active
{
  transform: scale(0.94);
}
body #livevoteContainer .votes .vote.selected
{
  background: var(--lv-accent);
  border-color: var(--lv-accent);
  color: #fff;
  box-shadow: 0 3px 0 #DD9999;
}
body #livevoteContainer .votes .vote.loading
{
  animation: lv-blink 0.5s ease infinite;
}
@keyframes lv-blink { 0% { opacity: 1; } 50% { opacity: 0.4; } 100% { opacity: 1; } }

/* =====================================================================
   Timetable oldal (timetable plugin)
   ===================================================================== */

#content table.timetable
{
  max-width: 820px;
  margin: 0 auto 36px;
  table-layout: fixed;
}
#content h2:has(~ table.timetable),
#content h3:has(+ table.timetable)
{
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  text-transform: uppercase;
  color: var(--cp-heading);
  text-shadow: 0 -2px var(--cp-heading-shadow);
}
#content table.timetable thead th
{
  font-weight: 300;
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cp-menu);
  border-bottom: 3px solid var(--cp-band-bot);
}
#content table.timetable .timetabletime
{
  width: 90px;
  padding-right: 18px;
  text-align: right;
  white-space: nowrap;
}
#content table.timetable tbody td.timetabletime
{
  font-family: var(--cp-font-head);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.3;
  color: var(--cp-heading);
}
#content table.timetable tbody td.timetableevent { overflow-wrap: anywhere; }
#content table.timetable .timetable_eventtype_compo,
#content table.timetable .timetable_eventtype_seminar { color: var(--cp-accent); }
#content table.timetable .timetable_eventtype_deadline { color: var(--cp-orange); }
#content table.timetable .timetable_eventtype_mainevent { font-weight: bold; color: var(--cp-sub); }
#content table.timetable tr.elapsed td { opacity: 0.4; }
