/* ============================================================================
   SITE REDESIGN LAYER
   This file overrides the legacy "app-like" styles to feel like a website.
   Keep IDs/classes used by JS intact; only change presentation.
   ============================================================================ */

:root {
  --site-max: 1180px;
  --site-gap: 24px;
  --site-radius: 22px;
  --site-border: rgba(15, 23, 42, 0.08);
  --site-shadow: 0 18px 50px rgba(15, 23, 42, 0.10);
  --site-shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
}

html, body {
  background: #f7fafc;
}

/* Make pages feel like sections on a website (not a mobile "screen"). */
[id$="Page"] {
  width: 100%;
}

/* Disable the "mobile-app column" desktop mode from styles.css */
@media (min-width: 900px) {
  [id$="Page"]:not(#homePage) {
    max-width: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  [id$="Page"]:not(#homePage) .app-bar {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
  }

  [id$="Page"]:not(#homePage) .container {
    max-width: var(--site-max) !important;
    margin: 0 auto !important;
    padding-left: var(--site-gap) !important;
    padding-right: var(--site-gap) !important;
  }
}

/* Website-like header */
.app-bar {
  position: sticky;
  top: 0;
  z-index: 950;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--site-border);
  box-shadow: none;
}

.app-bar-title {
  font-family: Manrope, Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
}

/* Keep the title visually centered even when there is only a left back button */
.app-bar::after {
  content: "";
  width: var(--tap);
  display: block;
}

/* Align app-bar content with the centered page container on desktop */
@media (min-width: 900px) {
  .app-bar {
    /* Keep content (back button/title) aligned with .container max-width */
    padding-left: max(var(--site-gap), calc((100vw - var(--site-max)) / 2 + var(--site-gap)));
    padding-right: max(var(--site-gap), calc((100vw - var(--site-max)) / 2 + var(--site-gap)));
  }
}

.btn-icon {
  border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
}

.btn-icon:hover {
  background: rgba(2, 6, 23, 0.04);
  border-color: rgba(2, 6, 23, 0.06);
}

/* --------------------------------------------------------------------------
   Site page layout (internal pages)
   -------------------------------------------------------------------------- */

/* Give internal pages breathing room under the header */
[id$="Page"]:not(#homePage) .container {
  padding-top: 28px;
  padding-bottom: 56px;
}

.page-intro {
  margin: 10px 0 18px;
}

.page-title {
  font-family: Manrope, Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: #0f172a;
}

.page-lead {
  margin-top: 8px;
  color: #475569;
  font-size: 15px;
}

.page-surface {
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--site-border);
  border-radius: 26px;
  box-shadow: var(--site-shadow-soft);
  padding: 18px;
}

/* Education level: grid tiles on desktop */
.education-level-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 900px) {
  .education-level-cards {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
}

/* Specializations: present list as a neat grid on desktop */
#specializationsList {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 900px) {
  #specializationsList {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
}

.specialization-item {
  margin-bottom: 0; /* grid handles spacing */
}

/* Stage selection: two tiles in a row on desktop */
.stage-selection-page .stage-card {
  margin-bottom: 0; /* when inside grid wrapper */
}

.stage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 16px;
}

@media (min-width: 900px) {
  .stage-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
}

/* Home → make it a "hero section" rather than an app splash */
.home-page {
  min-height: 100vh;
  justify-content: flex-start;
  padding: 0;
  background:
    radial-gradient(900px 500px at 50% -200px, rgba(0, 130, 194, 0.22), transparent 60%),
    linear-gradient(180deg, #f7fafc 0%, #ffffff 100%);
}

.home-page::before {
  content: "";
  display: block;
  height: 72px;
}

.home-logo {
  width: 148px;
  height: 148px;
  border-radius: 28px;
  margin: 36px 0 18px;
  box-shadow: var(--site-shadow-soft);
}

.home-title {
  color: #0f172a;
  font-size: 34px;
  line-height: 1.1;
  max-width: 820px;
  padding: 0 18px;
}

.home-subtitle {
  color: #334155;
  font-size: 16px;
  margin-bottom: 28px;
}

.home-page .btn-primary {
  padding: 14px 26px;
  border-radius: 14px;
  box-shadow: var(--site-shadow-soft);
}

/* Cards/buttons: more "site" tone */
.card {
  border-radius: var(--site-radius);
  box-shadow: var(--site-shadow-soft);
  border: 1px solid var(--site-border);
}

.education-level-card,
.specialization-item,
.stage-card,
.action-card,
.task-item {
  border-radius: var(--site-radius);
  border: 1px solid var(--site-border);
  box-shadow: var(--site-shadow-soft);
  background: #fff;
}

.education-level-card:hover,
.specialization-item:hover,
.stage-card:hover,
.action-card:hover,
.task-item:hover {
  transform: translateY(-1px);
  box-shadow: var(--site-shadow);
}

/* List icons: make FA icons look consistent */
.list-item-icon,
.action-icon,
.stage-header-progress-icon {
  font-size: 18px;
}

.list-item-icon i,
.action-icon i,
.stage-header-progress-icon i {
  font-size: 18px;
  line-height: 1;
}

.list-item-chevron {
  color: rgba(15, 23, 42, 0.28);
  font-size: 18px;
}

/* Search box: more website form control */
.search-box {
  margin-top: 10px;
}

.search-icon {
  opacity: 0.75;
}

/* Stage header: keep brand style but less "app" */
.stage-header--brand {
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--site-shadow);
}

/* Fixed help button: use FA icon, "site CTA" */
.help-button {
  border-radius: 999px;
  box-shadow: var(--site-shadow);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.help-button:hover {
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .home-title { font-size: 26px; }
  .home-logo { width: 120px; height: 120px; border-radius: 22px; }
}


