:root {
  --bg: #f7f3ea;
  --bg-2: #efe5d0;
  --text: #1f241b;
  --muted: #69705f;
  --green: #2d5a34;
  --green-2: #3f7d46;
  --gold: #d79b28;
  --brown: #6b4022;
  --white: #fffaf0;
  --card: rgba(255, 250, 240, 0.82);
  --shadow: 0 24px 80px rgba(38, 28, 12, 0.18);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(215,155,40,.25), transparent 32rem),
    radial-gradient(circle at 80% 15%, rgba(45,90,52,.22), transparent 28rem),
    linear-gradient(180deg, var(--bg), #fbf7ed 45%, var(--bg-2));
}

a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(247, 243, 234, .76);
  border-bottom: 1px solid rgba(45,90,52,.12);
}

.nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; }
.brand-icon { font-size: 1.6rem; }
.nav-links { display: flex; align-items: center; gap: 10px; }
.nav-links a { padding: 10px 14px; border-radius: 999px; color: #39402f; font-weight: 700; }
.nav-links a:hover, .admin-link { background: rgba(45,90,52,.11); }
.menu-toggle { display: none; border: 0; background: var(--green); color: white; border-radius: 12px; padding: 9px 13px; font-size: 1.2rem; }

.hero {
  min-height: 86vh;
  max-width: 1220px;
  margin: 0 auto;
  padding: 76px 22px 50px;
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  align-items: center;
  gap: 38px;
  position: relative;
}
.hero-bg {
  position: absolute;
  inset: 30px 22px;
  border-radius: 42px;
  background:
    linear-gradient(120deg, rgba(31,36,27,.84), rgba(45,90,52,.74)),
    url('https://images.unsplash.com/photo-1500595046743-cd271d694d30?auto=format&fit=crop&w=1600&q=80') center/cover;
  box-shadow: var(--shadow);
  z-index: -1;
}
.hero-content { color: white; padding: 60px 42px; }
.pill, .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.pill { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.22); }
.eyebrow { background: rgba(215,155,40,.16); color: #8b5b08; }
h1 { font-size: clamp(2.7rem, 6vw, 5.7rem); line-height: .93; margin: 20px 0; letter-spacing: -.07em; }
h2 { font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1; margin: 14px 0 12px; letter-spacing: -.045em; }
h3 { margin: 0 0 10px; font-size: 1.35rem; }
p { line-height: 1.7; color: inherit; }
.hero-content p { max-width: 680px; font-size: 1.12rem; color: rgba(255,255,255,.86); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.btn {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 14px 20px;
  font-weight: 900;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.primary { background: linear-gradient(135deg, var(--gold), #f0be52); color: #211604; box-shadow: 0 12px 28px rgba(215,155,40,.32); }
.ghost { background: rgba(255,255,255,.16); color: inherit; border: 1px solid rgba(255,255,255,.2); }
.dark { background: var(--green); color: white; }
.danger { background: #b5362d; color: white; }
.small { padding: 10px 14px; font-size: .88rem; }
.full { width: 100%; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 38px; max-width: 590px; }
.hero-stats div { background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.16); border-radius: 20px; padding: 16px; }
.hero-stats strong { display: block; font-size: 2rem; }
.hero-stats span { color: rgba(255,255,255,.76); font-weight: 700; font-size: .88rem; }
.hero-card { padding-right: 22px; }
.weather-card { background: var(--card); backdrop-filter: blur(20px); padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.52); }
.weather-card span { font-size: 3rem; }
.weather-card p { color: var(--muted); }

.section { max-width: 1180px; margin: 0 auto; padding: 80px 22px; }
.section-head { max-width: 740px; margin-bottom: 28px; }
.section-head p, .panel p, .info-banner p { color: var(--muted); }
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.competition-card { background: var(--card); border: 1px solid rgba(45,90,52,.13); border-radius: var(--radius); padding: 24px; box-shadow: 0 18px 55px rgba(38, 28, 12, 0.10); position: relative; overflow: hidden; }
.competition-card:before { content: ""; position: absolute; right: -36px; top: -36px; width: 100px; height: 100px; background: rgba(215,155,40,.16); border-radius: 50%; }
.competition-card .icon { font-size: 2.4rem; display: block; margin-bottom: 12px; }
.competition-card p { color: var(--muted); }
.badge { display: inline-flex; padding: 6px 10px; border-radius: 999px; background: rgba(45,90,52,.1); color: var(--green); font-weight: 900; font-size: .78rem; }

.split { display: grid; grid-template-columns: 1.4fr .6fr; gap: 22px; align-items: start; }
.panel, .side-info, .info-banner { background: rgba(255,250,240,.88); border: 1px solid rgba(45,90,52,.13); border-radius: var(--radius); padding: 28px; box-shadow: 0 18px 55px rgba(38, 28, 12, 0.10); }
.entry-form { display: grid; gap: 16px; margin-top: 20px; }
.entry-form.compact { max-width: 440px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: grid; gap: 8px; font-weight: 800; color: #32392b; }
input, select, textarea {
  width: 100%;
  border: 1px solid rgba(45,90,52,.18);
  background: white;
  border-radius: 16px;
  padding: 14px 15px;
  font: inherit;
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--green-2); box-shadow: 0 0 0 4px rgba(63,125,70,.12); }
.side-info ul { padding-left: 20px; line-height: 1.9; color: var(--muted); }
.login-hint { display: grid; gap: 6px; padding: 16px; border-radius: 18px; background: rgba(45,90,52,.08); margin-top: 18px; }
.success-message { color: var(--green); font-weight: 900; margin: 0; }
.error-message { color: #a52d25; font-weight: 900; margin: 0; }
.info-banner { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: linear-gradient(135deg, rgba(255,250,240,.92), rgba(238,226,199,.92)); }
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.toolbar-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.toolbar-actions select { width: auto; min-width: 210px; }
.hidden { display: none !important; }
.table-wrap { overflow-x: auto; margin-top: 20px; border-radius: 20px; border: 1px solid rgba(45,90,52,.12); }
table { width: 100%; border-collapse: collapse; background: white; min-width: 980px; }
th, td { text-align: left; padding: 13px 12px; border-bottom: 1px solid rgba(45,90,52,.10); vertical-align: top; font-size: .9rem; }
th { background: rgba(45,90,52,.09); color: #27301f; }
.footer { max-width: 1180px; margin: 0 auto; padding: 30px 22px 50px; display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-weight: 700; }

.reveal { opacity: 0; transform: translateY(20px); animation: reveal .8s ease forwards; }
.delay-1 { animation-delay: .15s; }
@keyframes reveal { to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 68px; left: 16px; right: 16px; flex-direction: column; align-items: stretch; background: var(--white); padding: 14px; border-radius: 20px; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 34px; }
  .hero-bg { inset: 18px; }
  .hero-content { padding: 44px 24px; }
  .hero-card { padding: 0 24px 28px; }
  .hero-stats, .cards-grid, .split, .form-row { grid-template-columns: 1fr; }
  .info-banner, .admin-toolbar, .footer { flex-direction: column; align-items: stretch; }
  .toolbar-actions { align-items: stretch; }
  .toolbar-actions select { width: 100%; }
}

@media print {
  body { background: white; }
  .site-header, .hero, #programok, #nevezes, #informaciok, .admin-login, .footer, .no-print, .toolbar-actions, .section-head { display: none !important; }
  .section { padding: 0; max-width: none; }
  .panel { box-shadow: none; border: 0; padding: 0; }
  .hidden { display: block !important; }
  table { min-width: 0; font-size: 12px; }
  th, td { padding: 7px; }
  .admin-dashboard:before {
    content: "Bakonytamási Lovas és Traktoros Családi Nap - Nevezési sorrend";
    display: block;
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 16px;
  }
}
