/* ============================================================
   EuroCollege — Component styles
   Plain-CSS recreation of the theme's Tailwind components
   (buttons.css, cta_link.css, block-heading.css, cards, forms).
   Depends on colors_and_type.css tokens.
   ============================================================ */

/* ---------- BUTTONS ----------
   Uppercase, bold, small text, square-ish 5px radius, generous
   20px padding, icon (arrow) that nudges right on hover. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--fs-sm);
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn svg, .btn img.icon { width: 20px; height: auto; transition: transform 0.2s ease; }
.btn:hover svg, .btn:hover img.icon { transform: translateX(4px); }

.btn-primary { background: var(--orange-500); color: var(--white-900); }
.btn-primary:hover { background: var(--orange-800); box-shadow: var(--ring-accent); }

.btn-secondary { background: transparent; color: var(--orange-500); border-color: var(--orange-500); }
.btn-secondary:hover { color: var(--orange-800); border-color: var(--orange-800); }

.btn-tertiary { background: transparent; color: var(--white-900); border-color: var(--white-900); }
.btn-tertiary:hover { color: var(--orange-500); border-color: var(--orange-500); }

.btn-filter { background: transparent; color: var(--blue-900); border-color: var(--blue-900); }
.btn-filter:hover { color: var(--blue-800); border-color: var(--blue-800); }
.btn-filter.active { color: var(--orange-500); border-color: var(--orange-500); }

/* Square outline icon button (carousel controls) */
.btn-control {
  width: 52px; height: 52px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--orange-500); border-radius: var(--radius-sm);
  color: var(--orange-500); background: transparent; cursor: pointer;
  transition: all 0.2s ease;
}
.btn-control:hover { color: var(--orange-800); border-color: var(--orange-800); box-shadow: var(--ring-accent); }
.btn-control.back svg { transform: rotate(180deg); }

/* ---------- TEXT LINKS / CTAs ----------
   Small uppercase orange link with a leading arrow. */
.cta-link, .btn-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 700;
  font-size: var(--fs-xsm); line-height: 1; text-transform: uppercase;
  color: var(--orange-500); text-decoration: none; transition: all 0.2s ease;
}
.cta-link svg, .btn-link svg { width: 20px; height: auto; transition: transform 0.2s ease; }
.cta-link:hover, .btn-link:hover { color: var(--orange-800); }
.cta-link:hover svg, .btn-link:hover svg { transform: translateX(4px); }

/* ---------- BLOCK HEADINGS ----------
   Eyebrow (xxl uppercase blue-300) + big heading, with a short
   80px rule that sits under the block. */
.block-heading { position: relative; padding-bottom: 16px; }
.block-heading .eyebrow {
  font-weight: 700; font-size: var(--fs-xxl); text-transform: uppercase;
  color: var(--blue-300); margin: 0 0 8px;
}
.block-heading h2 { font-size: var(--fs-5xl); font-weight: 700; color: var(--blue-925); line-height: 1; margin: 0; }
.block-heading.center { text-align: center; }
.block-heading::after {
  content: ""; position: absolute; bottom: 0; left: 0;
  height: 2px; width: 80px; border-radius: var(--radius-full); background: var(--blue-200);
}
.block-heading.center::after { left: 50%; transform: translateX(-50%); }
.block-heading.on-dark h2, .block-heading.on-dark .eyebrow { color: var(--white-900); }
.block-heading.on-dark .eyebrow { color: var(--blue-300); }

/* ---------- CARDS ----------
   White, 5px radius, soft navy shadow; lift on hover. */
.ec-card {
  background: var(--white-900);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card-md);
  padding: 32px 40px;
  transition: all 0.25s ease;
}
.ec-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-lg); }

/* Education card */
.education-card h3 { font-size: var(--fs-2xl); font-weight: 700; color: var(--blue-925); margin: 0 0 0; line-height: 1.1; }
.education-card h3 a { color: inherit; text-decoration: none; }
.education-card .duration { display: flex; align-items: center; gap: 10px; color: var(--blue-800); font-size: var(--fs-base); padding: 10px 0 24px; }
.education-card .duration svg { width: 16px; height: 16px; }

/* Outlined card variant (open-day) */
.ec-card.outline { border: 1px solid var(--blue-300); box-shadow: none; padding: 16px; }
.ec-card.outline:hover { border-color: transparent; box-shadow: var(--shadow-card-lg); }

/* Review card — portrait photo, navy gradient scrim, white text */
.review-card {
  position: relative; width: 286px; height: 393px;
  border-radius: var(--radius-sm); overflow: hidden; color: var(--white-900);
  display: block; text-decoration: none;
}
.review-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.review-card::before {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 66%;
  background: linear-gradient(to top, var(--blue-900), rgba(19,45,82,0)); z-index: 2;
}
.review-card:hover > img { transform: scale(1.05); }
.review-card .body { position: absolute; bottom: 28px; left: 0; width: 100%; z-index: 3; padding: 0 20px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.review-card .name { display: flex; gap: 8px; font-weight: 700; align-items: center; }
.review-card blockquote { font-family: var(--font-serif); font-size: var(--fs-xxl); line-height: 1.05; letter-spacing: -1px; margin: 18px 0 14px; }

/* ---------- FORM FIELDS ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: var(--fs-sm); font-weight: 700; color: var(--blue-925); }
.field input, .field select {
  font-family: var(--font-sans); font-size: var(--fs-base); color: var(--blue-900);
  padding: 14px 16px; border: 1px solid var(--blue-200); border-radius: var(--radius-sm);
  background: var(--white-900); outline: none; transition: all 0.2s ease;
}
.field input::placeholder { color: var(--blue-300); }
.field input:focus, .field select:focus { border-color: var(--orange-500); box-shadow: var(--ring-accent); }

/* ---------- NAV ITEM ----------
   Uppercase white link with an orange underline that grows in. */
.nav-item {
  position: relative; color: var(--white-900); text-decoration: none;
  font-weight: 700; font-size: var(--fs-sm); text-transform: uppercase;
}
.nav-item::after {
  content: ""; position: absolute; left: 0; bottom: -8px; height: 3px; width: 0;
  background: var(--orange-500); border-radius: var(--radius-full); transition: width 0.2s ease;
}
.nav-item:hover::after, .nav-item.active::after { width: 30px; }

/* ---------- ICONS ----------
   The theme SVGs use fill/stroke="currentColor". The recommended
   way to render them is to INLINE the SVG markup into the DOM so
   currentColor resolves to the element's `color`. The .ec-icon
   span is just a sizing wrapper; the inlined <svg> fills it.
   Use the ecInlineIcons() helper (preview/icons.js) for static
   HTML, or the React <Icon> component in the UI kit.
   (Logo, the gold quote glyph and social glyphs keep their own
   colours — render those with a plain <img> instead.) */
.ec-icon {
  display: inline-flex;
  width: 20px; height: 20px;
  line-height: 0;
  flex: none;
}
.ec-icon > svg { width: 100%; height: 100%; display: block; }

/* ---------- NOTIFICATION BAR ---------- */
.notification-bar {
  background: var(--orange-500); color: var(--white-900);
  font-weight: 700; font-size: var(--fs-sm);
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 10px 16px; text-align: center;
}
.notification-bar a { color: var(--white-900); text-decoration: underline; }
