@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap");
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.min.css");

:root {
  --app-bg: #ffffff;
  --app-bg-soft: #f6f8fc;
  --app-surface: #ffffff;

  --app-text: #111827;
  --app-muted: #6b7280;

  /* Brand colors */
  --app-primary: #1559D1;
  --app-primary-dark: #113A8C;
  --app-primary-soft: #eaf1ff;

  /* Point color */
  --app-yellow: #f5c542;
  --app-yellow-soft: #fff6d8;

  /* Sub color */
  --app-green: #1aa388;
  --app-green-soft: #e7f7f3;

  --app-danger: #e5484d;

  --app-border: rgba(17, 24, 39, 0.08);
  --app-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);

  --app-radius: 20px;
  --app-page-max: 560px;
  --app-bottom-nav-height: 78px;

  /* Shared app typography */
  --app-font-family: "Manrope", "Pretendard Variable", Pretendard, Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --app-page-title-size: 27px;
  --app-page-title-line-height: 1.18;
  --app-page-title-weight: 700;
  --app-page-title-letter-spacing: -.035em;
  --app-page-desc-size: 13px;
  --app-page-desc-line-height: 1.55;
  --app-page-desc-weight: 400;
  --app-section-title-size: 23px;
  --app-section-title-line-height: 1.25;
  --app-section-title-weight: 700;
  --app-section-title-letter-spacing: -.025em;
  --app-section-desc-size: 13px;
  --app-section-desc-line-height: 1.5;
  --app-section-desc-weight: 400;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--app-font-family);
  background: var(--app-bg);
  color: var(--app-text);
}

a {
  color: inherit;
}

.app-page {
  width: 100%;
  max-width: var(--app-page-max);
  min-height: 100vh;
  margin: 0 auto;
  padding: 20px 16px 0;
}

.app-page-header {
  padding: 14px 0 18px;
}

.app-eyebrow {
  color: var(--app-primary);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.app-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.app-subtitle {
  margin: 8px 0 0;
  color: var(--app-muted);
  font-size: 14px;
  line-height: 1.5;
}

.app-card {
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
  padding: 18px;
  box-shadow: var(--app-shadow);
  margin-bottom: 14px;
}

.app-card-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.app-card-desc {
  margin: 0 0 16px;
  color: var(--app-muted);
  font-size: 14px;
  line-height: 1.5;
}

.app-button {
  display: inline-flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  padding: 13px 16px;
  background: var(--app-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.app-button:active {
  transform: scale(0.99);
}

.app-button-secondary {
  background: var(--app-primary-soft);
  color: var(--app-primary-dark);
}

.app-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--app-primary-soft);
  color: var(--app-primary-dark);
  font-size: 12px;
  font-weight: 600;
}

.app-progress {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.app-progress-bar {
  height: 100%;
  border-radius: inherit;
  background: var(--app-primary);
}

.app-empty {
  padding: 28px 18px;
  text-align: center;
  color: var(--app-muted);
}

.app-field {
  margin-bottom: 14px;
}

.app-label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 600;
}

.app-input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--app-border);
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
  color: var(--app-text);
  font-size: 16px;
}

.app-input:focus {
  outline: 2px solid rgba(26, 163, 136, 0.18);
  border-color: var(--app-primary);
}

.app-bottom-space {
  height: var(--app-bottom-nav-height);
}

.app-gnb {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--app-border);
  padding-bottom: max(6px, env(safe-area-inset-bottom));
}

.app-gnb-inner {
  max-width: var(--app-page-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 9px 0 5px;
}

.app-gnb-item {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  color: #7b7b7b;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  opacity: 0.85;
  transition: opacity 0.15s, transform 0.1s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.app-gnb-item.active {
  color: var(--app-primary);
  opacity: 1;
}

.app-gnb-item:active {
  transform: scale(0.96);
}

.app-gnb-icon {
  width: 24px;
  height: 24px;
  display: block;
}

.app-gnb-label {
  white-space: nowrap;
}

@media (min-width: 768px) {
  .app-page {
    padding-top: 32px;
  }

  .app-title {
    font-size: 30px;
  }
}

/* =========================================================
   Soljammy student navigation v2
   Desktop: full fixed header
   Mobile: bottom GNB
   ========================================================= */

.app-desktop-header {
  display: none;
}

@media (min-width: 768px) {
  body {
    padding-top: 78px;
  }

  .app-desktop-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1200;
    display: block;
    height: 78px;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--app-border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .app-desktop-header-inner {
    width: min(1180px, calc(100% - 40px));
    height: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
  }

  .app-desktop-brand {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--app-text);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.045em;
    text-decoration: none;
    white-space: nowrap;
  }

  .app-desktop-brand-mark {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 2px;
    border-radius: 2px;
    background: var(--app-yellow);
    transform: rotate(45deg) translateY(-6px);
  }

  .app-desktop-nav {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .app-desktop-nav-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    color: #667085;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: color .15s ease, background .15s ease;
  }

  .app-desktop-nav-item:hover {
    color: var(--app-primary);
    background: var(--app-primary-soft);
  }

  .app-desktop-nav-item.active {
    color: var(--app-primary);
    background: var(--app-primary-soft);
  }

  .app-desktop-nav-item.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -9px;
    width: 5px;
    height: 5px;
    border-radius: 2px;
    background: var(--app-yellow);
    transform: translateX(-50%) rotate(45deg);
  }

  .app-desktop-user {
    justify-self: end;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--app-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(21,89,209,.16);
  }

  .app-gnb,
  .app-bottom-space {
    display: none;
  }
}

@media (max-width: 767px) {
  body {
    padding-top: 0;
  }

  .app-desktop-header {
    display: none;
  }

  .app-gnb {
    display: block;
  }
}

/* =========================================================
   Soljammy desktop navigation premium refinement
   Mobile bottom GNB remains unchanged.
   ========================================================= */
@media (min-width: 768px) {
  .app-desktop-header-inner {
    width: min(1240px, calc(100% - 48px));
    grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  }

  .app-desktop-nav {
    gap: 4px;
  }

  .app-desktop-nav-item {
    min-height: 42px;
    gap: 7px;
    padding: 0 13px;
    border-radius: 13px;
    font-size: 14px;
  }

  .app-desktop-nav-icon {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
  }

  .app-desktop-nav-item.active::after {
    bottom: -11px;
  }

  .app-desktop-user-summary {
    justify-self: end;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #273449;
  }

  .app-desktop-user-avatar {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--app-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(21,89,209,.16);
  }

  .app-desktop-user-name {
    display: block;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
  }

  .app-desktop-user {
    display: none;
  }
}





/* =========================================================
   Soljammy App Typography
   Shared hierarchy for main app pages (Learn / Review / Notice / My)
   ========================================================= */
.app-page-title {
  margin: 0;
  color: var(--app-text);
  font-family: var(--app-font-family);
  font-size: var(--app-page-title-size);
  line-height: var(--app-page-title-line-height);
  font-weight: var(--app-page-title-weight);
  letter-spacing: var(--app-page-title-letter-spacing);
}

.app-page-desc {
  margin: 8px 0 0;
  color: var(--app-muted);
  font-family: var(--app-font-family);
  font-size: var(--app-page-desc-size);
  line-height: var(--app-page-desc-line-height);
  font-weight: var(--app-page-desc-weight);
}

.app-section-title {
  margin: 0;
  color: var(--app-text);
  font-family: var(--app-font-family);
  font-size: var(--app-section-title-size);
  line-height: var(--app-section-title-line-height);
  font-weight: var(--app-section-title-weight);
  letter-spacing: var(--app-section-title-letter-spacing);
}

.app-section-desc {
  margin: 5px 0 0;
  color: var(--app-muted);
  font-family: var(--app-font-family);
  font-size: var(--app-section-desc-size);
  line-height: var(--app-section-desc-line-height);
  font-weight: var(--app-section-desc-weight);
}

@media (max-width: 767px) {
  :root {
    --app-page-title-size: 18px;
    --app-page-desc-size: 12px;
    --app-section-title-size: 16px;
    --app-section-desc-size: 12px;
  }
}

/* =========================================================
   Soljammy Learning PC Shell
   Shared dimensions only. Page-specific colors/content remain local.
   Mobile layouts below 768px are unaffected.
   ========================================================= */
:root {
  --learning-pc-topbar-height: 78px;
  --learning-pc-bottombar-height: 88px;
  --learning-pc-shell-max: 1312px;
  --learning-pc-content-max: 1120px;
  --learning-pc-side-gap: 24px;
  --learning-pc-content-top-space: 106px;
  --learning-pc-content-bottom-space: 112px;
  --learning-pc-close-size: 48px;
  --learning-pc-close-radius: 14px;
  --learning-pc-cta-width: 270px;
  --learning-pc-cta-height: 54px;
  --learning-pc-cta-radius: 14px;
  --learning-pc-sheet-content-max: 1120px;
}

@media (min-width: 768px) {
  body.learning-page {
    padding-top: 0;
  }
}
