/* feladatok-infoalapvizsga.ferenczymark.hu
   Inter betűtípus: SIL Open Font License 1.1 (rsms.me/inter), saját tárhelyről. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fa/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fa/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #212529;
  --ink-soft: #495057;
  --accent: #ffc700;
  --accent-dark: #e0ae00;
  --teal: #3db8c9;
  --teal-soft: #eef8fa;
  --line: #e3e6ea;
  --muted-bg: #f6f7f9;
  --radius: 14px;
  --bs-body-font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --bs-body-font-size: 1.0625rem;
  --bs-body-line-height: 1.6;
  --bs-body-color: var(--ink);
  --bs-link-color-rgb: 13, 110, 130;
  --bs-link-hover-color-rgb: 8, 80, 95;
}

body {
  background: #fff;
}

h1, h2, h3, .h5 {
  letter-spacing: -0.015em;
  font-weight: 700;
}

.ico {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  fill: currentColor;
}

.text-accent {
  color: var(--accent);
}

.eyebrow {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal);
}

/* ---------- Akadálymentesség ---------- */

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  padding: .5rem 1rem;
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

main:focus {
  outline: none;
}

/* ---------- Fejléc és menü ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 64px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.05rem;
  white-space: nowrap;
}

.site-brand strong {
  font-weight: 800;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin-left: auto;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  padding: .45rem .75rem;
  border-radius: 8px;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--ink);
  background: var(--muted-bg);
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--muted-bg);
  font-weight: 600;
}

.site-nav .site-nav-cta {
  margin-left: .5rem;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}

.site-nav .site-nav-cta:hover {
  background: #000;
  color: #fff;
}

/* Mobilon: a márkanév alatt vízszintesen görgethető menüsor (JS nélkül). */
@media (max-width: 991.98px) {
  .site-header .container {
    flex-wrap: wrap;
    gap: 0;
    padding-top: .5rem;
  }

  .site-nav {
    width: 100%;
    margin: 0 -.25rem;
    padding: .35rem 0 .5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav .site-nav-cta {
    margin-left: .25rem;
  }
}

.breadcrumb-bar {
  background: var(--muted-bg);
  border-bottom: 1px solid var(--line);
  font-size: .875rem;
  padding: .55rem 0;
}

.breadcrumb-bar a {
  color: var(--ink-soft);
}

/* ---------- Gombok ---------- */

.btn {
  font-weight: 600;
  border-radius: 10px;
}

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}

.btn-accent:hover,
.btn-accent:focus-visible {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--ink);
}

/* ---------- Főoldal ---------- */

.hero {
  background: var(--ink);
  color: #fff;
  padding: 4.5rem 0 4rem;
}

.hero h1 {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  line-height: 1.12;
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: 1.2rem;
  color: #ced4da;
  max-width: 38em;
  margin-bottom: 2rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin: 0;
}

.hero-stats div {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  padding: 1.25rem .75rem;
  text-align: center;
}

.hero-stats dt {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
}

.hero-stats dd {
  margin: .25rem 0 0;
  color: #ced4da;
}

.section {
  padding: 4rem 0;
}

.section-muted {
  background: var(--muted-bg);
}

.section-title {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  margin-bottom: 1.5rem;
}

.subject-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  background: #fff;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}

.subject-card:hover {
  border-color: #cfd4da;
  box-shadow: 0 .75rem 1.75rem rgba(0, 0, 0, .08);
  transform: translateY(-2px);
  color: var(--ink);
}

.subject-card img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.subject-card h3 {
  font-size: 1.3rem;
  margin-bottom: .5rem;
}

.subject-card p {
  color: var(--ink-soft);
}

.topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.topic-list li {
  font-size: .8125rem;
  background: var(--teal-soft);
  color: #1f6f7a;
  border-radius: 999px;
  padding: .2rem .65rem;
}

.subject-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: .95rem;
  color: var(--ink-soft);
}

.subject-card-link {
  font-weight: 700;
  color: var(--ink);
}

.subject-card:hover .subject-card-link .ico {
  transform: translateX(3px);
}

.subject-card-link .ico {
  transition: transform .2s ease;
}

.use-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
}

.use-list li {
  display: flex;
  gap: 1rem;
}

.use-list p {
  margin: .15rem 0 0;
  color: var(--ink-soft);
}

.use-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  background: var(--accent);
  color: var(--ink);
  font-size: 1.15rem;
}

.author-card {
  display: flex;
  gap: 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.author-card img {
  flex: 0 0 auto;
  width: 96px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  align-self: flex-start;
}

.author-label {
  font-size: .8125rem;
  color: var(--ink-soft);
}

.author-name {
  font-size: 1.25rem;
  margin-bottom: .5rem;
}

.author-updated {
  font-size: .875rem;
  color: var(--ink-soft);
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: .75rem;
  background: #fff;
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary .ico {
  flex: 0 0 auto;
  color: var(--ink-soft);
  transition: transform .2s ease;
}

.faq details[open] summary .ico {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.25rem 1.1rem;
  color: var(--ink-soft);
}

.faq-answer p {
  margin-bottom: .5rem;
}

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 2.25rem 2.5rem;
}

.cta-band h2 {
  font-size: 1.6rem;
  margin-bottom: .5rem;
}

.cta-band p {
  color: #ced4da;
  max-width: 40em;
}

/* ---------- Tantárgyoldal ---------- */

.page-header {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--line);
}

.page-header h1 {
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  margin-bottom: .75rem;
}

.page-header-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  color: var(--ink-soft);
  font-size: .95rem;
}

.page-header-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

#exercise-download {
  padding: 2.5rem 0 3rem;
}

#exercise-download h2,
#extra-worksheets h2 {
  font-size: 1.75rem;
  margin: 2.5rem 0 1.25rem;
}

.lead-text {
  max-width: 52em;
  color: var(--ink-soft);
}

.online-practice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem .5rem;
  border-left: 4px solid var(--teal);
  background: var(--teal-soft);
  border-radius: 0 10px 10px 0;
  padding: .9rem 1.1rem;
  margin: 0;
}

.online-practice > .ico {
  color: #1f6f7a;
}

.online-practice a {
  font-weight: 600;
}

.skill-list {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.skill-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: .4rem;
}

.skill-list li .ico {
  position: absolute;
  left: 0;
  top: .35em;
  color: var(--teal);
}

@media (min-width: 768px) {
  .skill-list {
    columns: 2;
    column-gap: 2.5rem;
  }

  .skill-list li {
    break-inside: avoid;
  }
}

@media (min-width: 1200px) {
  .task-aside {
    border-left: 4px solid var(--teal);
    padding-left: 1.25rem;
  }

  .task-aside .skill-list {
    columns: 1;
    margin-bottom: 0;
  }

  .task-aside .skill-list li {
    margin-bottom: .6rem;
  }
}

.task-card {
  border-color: var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s ease;
}

.task-card:hover {
  box-shadow: 0 .75rem 1.75rem rgba(0, 0, 0, .08);
}

.task-card-preview {
  display: block;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.task-card-preview img {
  width: 100%;
  height: auto;
  aspect-ratio: 210 / 297; /* álló A4 */
  object-fit: contain;
  object-position: center;
  background: var(--muted-bg);
  transition: transform .3s ease;
}

/* A feltöltött feladatlapok fekvő 4:3-as illusztrációval (a régi, álló képeket is kitölti). */
.task-card-preview--landscape img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.task-card-preview:hover img {
  transform: scale(1.03);
}

.task-card .card-title {
  font-size: 1.1rem;
}

.task-card .card-text {
  color: var(--ink-soft);
  font-size: .95rem;
}

#extra-worksheets {
  padding-bottom: 3.5rem;
}

/* ---------- Lábléc ---------- */

.site-footer {
  background: var(--ink);
  color: #ced4da;
  padding: 3rem 0 2rem;
  margin-top: 1rem;
}

.site-footer h2 {
  color: #fff;
  font-size: 1.05rem;
  margin: 1.25rem 0 1rem;
}

.site-footer ul li {
  margin-bottom: .45rem;
}

.site-footer a {
  color: #dee2e6;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer hr {
  border-color: rgba(255, 255, 255, .2);
  margin: 2rem 0 1.25rem;
}

.footer-meta {
  font-size: .875rem;
  color: #adb5bd;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

/* ---------- Üres tantárgyoldal (még nincs feltöltött feladatlap) ---------- */
.empty-state {
  display: flex;
  gap: 1rem;
  padding: 1.75rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--muted-bg);
}

.empty-state h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: .4rem 0 .35rem;
}

.empty-state p {
  color: var(--ink-soft);
  margin-bottom: 1rem;
}
