/* GeekForMath public visual layer aligned with THE QWORLD Apps/Games catalog. */
:root {
  --gfm-qw-bg: #f7f3fd;
  --gfm-qw-panel: rgba(255, 254, 253, .94);
  --gfm-qw-panel-soft: rgba(249, 244, 255, .90);
  --gfm-qw-text: #493154;
  --gfm-qw-muted: #746080;
  --gfm-qw-line: rgba(121, 87, 142, .14);
  --gfm-qw-line-strong: rgba(121, 87, 142, .24);
  --gfm-qw-purple: #8056aa;
  --gfm-qw-purple-deep: #674b79;
  --gfm-qw-shadow: 0 18px 52px rgba(91, 60, 113, .09);
  --gfm-qw-shadow-soft: 0 10px 32px rgba(91, 60, 113, .06);
}

body.gfm-catalog-theme {
  margin: 0 !important;
  color: var(--gfm-qw-text) !important;
  background:
    radial-gradient(900px 520px at 96% 2%, rgba(206, 180, 235, .42), transparent 64%),
    radial-gradient(760px 500px at 3% 78%, rgba(227, 211, 244, .50), transparent 68%),
    linear-gradient(125deg, #fffdfd, #f4edfb 55%, #edf2fb) !important;
  font-family: "Segoe UI", Inter, Arial, sans-serif !important;
  line-height: 1.65 !important;
  min-height: 100vh;
}

body.gfm-catalog-theme::before {
  content: "" !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: -1 !important;
  pointer-events: none !important;
  background:
    radial-gradient(60% 45% at 78% 10%, rgba(213, 190, 238, .22), transparent 70%),
    radial-gradient(50% 44% at 10% 65%, rgba(232, 217, 246, .26), transparent 72%) !important;
}

body.gfm-catalog-theme,
body.gfm-catalog-theme p,
body.gfm-catalog-theme li,
body.gfm-catalog-theme label,
body.gfm-catalog-theme small,
body.gfm-catalog-theme .muted {
  color: var(--gfm-qw-muted) !important;
}

body.gfm-catalog-theme h1,
body.gfm-catalog-theme h2,
body.gfm-catalog-theme h3,
body.gfm-catalog-theme h4,
body.gfm-catalog-theme strong,
body.gfm-catalog-theme .logo {
  color: var(--gfm-qw-text) !important;
}

body.gfm-catalog-theme h1,
body.gfm-catalog-theme h2,
body.gfm-catalog-theme h3 {
  font-weight: 450 !important;
  letter-spacing: -.045em !important;
}

body.gfm-catalog-theme a {
  color: var(--gfm-qw-purple-deep) !important;
}

body.gfm-catalog-theme .container {
  width: min(1280px, calc(100% - 80px)) !important;
  margin-inline: auto !important;
}

body.gfm-catalog-theme .site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  min-height: 86px !important;
  background: rgba(251, 248, 253, .92) !important;
  border-bottom: 1px solid var(--gfm-qw-line) !important;
  box-shadow: none !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}

body.gfm-catalog-theme .nav-wrap {
  min-height: 86px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px !important;
}

body.gfm-catalog-theme .brand-wrap {
  display: inline-flex !important;
  align-items: center !important;
  gap: 11px !important;
  color: var(--gfm-qw-text) !important;
}

body.gfm-catalog-theme .brand-logo {
  width: 46px !important;
  height: 46px !important;
  object-fit: contain !important;
  border-radius: 10px !important;
  background: #fff !important;
  border: 1px solid var(--gfm-qw-line) !important;
  box-shadow: 0 8px 24px rgba(96, 65, 117, .08) !important;
}

body.gfm-catalog-theme .brand-mark {
  width: 42px !important;
  height: 42px !important;
  border-radius: 10px !important;
  background: linear-gradient(145deg, #9e76bd, #684b7d) !important;
  border: 1px solid rgba(104, 75, 125, .15) !important;
  box-shadow: 0 8px 24px rgba(96, 65, 117, .12) !important;
}

body.gfm-catalog-theme .logo {
  font-size: 15px !important;
  font-weight: 650 !important;
  letter-spacing: .045em !important;
}

body.gfm-catalog-theme .nav {
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
}
body.gfm-catalog-theme .nav > a:not(.btn) {
  color: #817189 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}
body.gfm-catalog-theme .nav > a:not(.btn):hover {
  color: var(--gfm-qw-purple-deep) !important;
}

body.gfm-catalog-theme .menu-btn,
body.gfm-catalog-theme .account-chip {
  color: #725480 !important;
  background: rgba(255, 255, 255, .72) !important;
  border: 1px solid var(--gfm-qw-line-strong) !important;
  border-radius: 5px !important;
  box-shadow: none !important;
}
body.gfm-catalog-theme .avatar-circle {
  color: #fff !important;
  background: var(--gfm-qw-purple) !important;
}
body.gfm-catalog-theme .account-chip-text strong { color: var(--gfm-qw-text) !important; }
body.gfm-catalog-theme .account-chip-text small { color: #9a87a5 !important; }
body.gfm-catalog-theme .account-dropdown {
  background: #fffafd !important;
  border: 1px solid var(--gfm-qw-line-strong) !important;
  border-radius: 10px !important;
  box-shadow: 0 18px 50px rgba(80, 48, 98, .14) !important;
}
body.gfm-catalog-theme .account-dropdown a {
  color: #735580 !important;
}

body.gfm-catalog-theme main {
  position: relative !important;
  z-index: 1 !important;
}

body.gfm-catalog-theme .section {
  padding: 72px 0 !important;
}
body.gfm-catalog-theme section.section.container,
body.gfm-catalog-theme .section.container {
  padding-top: 72px !important;
  padding-bottom: 72px !important;
}

body.gfm-catalog-theme .hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr) !important;
  gap: 32px !important;
  align-items: stretch !important;
  padding-top: 76px !important;
  padding-bottom: 64px !important;
  border-bottom: 1px solid var(--gfm-qw-line) !important;
}

body.gfm-catalog-theme .surface,
body.gfm-catalog-theme .card,
body.gfm-catalog-theme .hero-panel,
body.gfm-catalog-theme .video-gallery,
body.gfm-catalog-theme .video-card,
body.gfm-catalog-theme .topic-group-card,
body.gfm-catalog-theme .form-shell,
body.gfm-catalog-theme .form-wrap,
body.gfm-catalog-theme .gfm-card,
body.gfm-catalog-theme .gfm-modal,
body.gfm-catalog-theme .faq-item {
  color: var(--gfm-qw-text) !important;
  background: linear-gradient(145deg, var(--gfm-qw-panel-soft), var(--gfm-qw-panel) 65%) !important;
  border: 1px solid var(--gfm-qw-line) !important;
  border-radius: 10px !important;
  box-shadow: var(--gfm-qw-shadow-soft) !important;
}

body.gfm-catalog-theme .hero-panel {
  padding: 34px !important;
  overflow: hidden !important;
}
body.gfm-catalog-theme .hero-main::before {
  background: radial-gradient(circle at 88% 8%, rgba(202, 174, 231, .26), transparent 48%),
              radial-gradient(circle at 8% 90%, rgba(226, 207, 243, .34), transparent 55%) !important;
}
body.gfm-catalog-theme .hero-main-media,
body.gfm-catalog-theme .hero-right-media,
body.gfm-catalog-theme .hero-right-video,
body.gfm-catalog-theme .media-embed {
  background: #f5eff9 !important;
  border: 1px solid var(--gfm-qw-line) !important;
  border-radius: 9px !important;
  box-shadow: none !important;
}
body.gfm-catalog-theme .hero-main-media img,
body.gfm-catalog-theme .hero-right-media img,
body.gfm-catalog-theme .hero-right-video,
body.gfm-catalog-theme .course-hero-thumb,
body.gfm-catalog-theme .course-thumb {
  background: #f5eff9 !important;
}

body.gfm-catalog-theme .pill,
body.gfm-catalog-theme .badge,
body.gfm-catalog-theme .stat-chip {
  color: #806792 !important;
  background: rgba(247, 241, 251, .72) !important;
  border: 1px solid var(--gfm-qw-line) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}

body.gfm-catalog-theme .hero-heading,
body.gfm-catalog-theme .hero h1,
body.gfm-catalog-theme .course-hero h1,
body.gfm-catalog-theme .page-head h1 {
  color: var(--gfm-qw-text) !important;
  font-size: clamp(46px, 5.3vw, 76px) !important;
  line-height: 1.03 !important;
  font-weight: 400 !important;
  letter-spacing: -.055em !important;
  margin-bottom: 26px !important;
}
body.gfm-catalog-theme .hero-paragraph,
body.gfm-catalog-theme .lead {
  color: var(--gfm-qw-muted) !important;
  font-size: 15px !important;
  line-height: 1.9 !important;
}

body.gfm-catalog-theme .btn,
body.gfm-catalog-theme button.btn,
body.gfm-catalog-theme input[type="submit"] {
  min-height: 46px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 12px 20px !important;
  border-radius: 5px !important;
  border: 1px solid rgba(128, 86, 170, .28) !important;
  background: var(--gfm-qw-purple) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  box-shadow: none !important;
  transition: transform .2s ease, background .2s ease !important;
}
body.gfm-catalog-theme .btn:hover,
body.gfm-catalog-theme button.btn:hover {
  background: #714897 !important;
  transform: translateY(-2px) !important;
}
body.gfm-catalog-theme .btn-outline {
  color: var(--gfm-qw-text) !important;
  background: rgba(255,255,255,.45) !important;
  border-color: var(--gfm-qw-line-strong) !important;
}

body.gfm-catalog-theme .section-head,
body.gfm-catalog-theme .section-head-premium,
body.gfm-catalog-theme .video-gallery-heading {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  gap: 30px !important;
  margin-bottom: 28px !important;
}
body.gfm-catalog-theme .section-head h2,
body.gfm-catalog-theme .home-section > h2,
body.gfm-catalog-theme .home-section .section-head h2 {
  color: var(--gfm-qw-text) !important;
  font-size: clamp(32px, 3.6vw, 52px) !important;
  font-weight: 400 !important;
  letter-spacing: -.05em !important;
}

body.gfm-catalog-theme .grid,
body.gfm-catalog-theme .course-grid,
body.gfm-catalog-theme .topic-groups-grid,
body.gfm-catalog-theme .video-grid {
  gap: 20px !important;
}
body.gfm-catalog-theme .grid-3,
body.gfm-catalog-theme .course-grid,
body.gfm-catalog-theme .topic-groups-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
body.gfm-catalog-theme .grid-4,
body.gfm-catalog-theme .video-grid-extended {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

body.gfm-catalog-theme .card,
body.gfm-catalog-theme .course-card,
body.gfm-catalog-theme .topic-group-card,
body.gfm-catalog-theme .video-card {
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease !important;
}
body.gfm-catalog-theme .card:hover,
body.gfm-catalog-theme .course-card:hover,
body.gfm-catalog-theme .topic-group-card:hover,
body.gfm-catalog-theme .video-card:hover {
  transform: translateY(-5px) !important;
  border-color: rgba(121, 87, 142, .26) !important;
  box-shadow: var(--gfm-qw-shadow) !important;
}

body.gfm-catalog-theme .course-card,
body.gfm-catalog-theme .topic-group-card,
body.gfm-catalog-theme .video-card {
  background: linear-gradient(145deg, var(--gfm-qw-panel-soft), var(--gfm-qw-panel) 65%) !important;
  border: 1px solid var(--gfm-qw-line) !important;
  border-radius: 10px !important;
  box-shadow: var(--gfm-qw-shadow-soft) !important;
  overflow: hidden !important;
  color: var(--gfm-qw-text) !important;
}
body.gfm-catalog-theme .course-card h3,
body.gfm-catalog-theme .topic-group-card h3,
body.gfm-catalog-theme .video-card h3,
body.gfm-catalog-theme .video-card h4 {
  color: var(--gfm-qw-text) !important;
}
body.gfm-catalog-theme .course-card-description,
body.gfm-catalog-theme .course-card-subtitle,
body.gfm-catalog-theme .topic-group-desc,
body.gfm-catalog-theme .video-card p {
  color: var(--gfm-qw-muted) !important;
  font-size: 12px !important;
  line-height: 1.72 !important;
}
body.gfm-catalog-theme .course-card img,
body.gfm-catalog-theme .video-thumb img {
  background: #f5eff9 !important;
}

body.gfm-catalog-theme .lesson-row,
body.gfm-catalog-theme .stat,
body.gfm-catalog-theme .mini-stat {
  background: rgba(255,255,255,.55) !important;
  border: 1px solid var(--gfm-qw-line) !important;
  color: var(--gfm-qw-text) !important;
}

body.gfm-catalog-theme input,
body.gfm-catalog-theme select,
body.gfm-catalog-theme textarea {
  color: var(--gfm-qw-text) !important;
  background: rgba(255,255,255,.82) !important;
  border: 1px solid var(--gfm-qw-line-strong) !important;
  border-radius: 7px !important;
  box-shadow: none !important;
}
body.gfm-catalog-theme input::placeholder,
body.gfm-catalog-theme textarea::placeholder {
  color: #a38faa !important;
}

body.gfm-catalog-theme .flash.success,
body.gfm-catalog-theme .flash.error {
  background: #fffafd !important;
  color: var(--gfm-qw-text) !important;
  border: 1px solid var(--gfm-qw-line-strong) !important;
  border-radius: 8px !important;
}

body.gfm-catalog-theme .site-footer {
  margin-top: 48px !important;
  padding: 64px 0 26px !important;
  background: rgba(255,255,255,.18) !important;
  border-top: 1px solid var(--gfm-qw-line) !important;
  color: var(--gfm-qw-muted) !important;
}
body.gfm-catalog-theme .footer-grid {
  display: grid !important;
  grid-template-columns: 1.5fr repeat(3, 1fr) !important;
  gap: 34px !important;
}
body.gfm-catalog-theme .site-footer h4 {
  color: var(--gfm-qw-text) !important;
}
body.gfm-catalog-theme .site-footer a {
  display: block !important;
  margin: 7px 0 !important;
  color: #806b8c !important;
  font-size: 11px !important;
}
body.gfm-catalog-theme .site-footer p {
  color: var(--gfm-qw-muted) !important;
  font-size: 11px !important;
}
body.gfm-catalog-theme .footer-bottom {
  margin-top: 35px !important;
  padding-top: 22px !important;
  border-top: 1px solid var(--gfm-qw-line) !important;
  color: #9c89a6 !important;
  font-size: 9px !important;
}

@media (max-width: 1050px) {
  body.gfm-catalog-theme .container { width: min(100% - 44px, 1280px) !important; }
  body.gfm-catalog-theme .hero { grid-template-columns: 1fr !important; gap: 28px !important; }
  body.gfm-catalog-theme .grid-3,
  body.gfm-catalog-theme .course-grid,
  body.gfm-catalog-theme .topic-groups-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  body.gfm-catalog-theme .grid-4,
  body.gfm-catalog-theme .video-grid-extended { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  body.gfm-catalog-theme .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (max-width: 760px) {
  body.gfm-catalog-theme .container { width: calc(100% - 32px) !important; }
  body.gfm-catalog-theme .nav-wrap { min-height: 72px !important; }
  body.gfm-catalog-theme .section,
  body.gfm-catalog-theme section.section.container,
  body.gfm-catalog-theme .section.container { padding-top: 46px !important; padding-bottom: 46px !important; }
  body.gfm-catalog-theme .hero-heading,
  body.gfm-catalog-theme .hero h1,
  body.gfm-catalog-theme .course-hero h1,
  body.gfm-catalog-theme .page-head h1 { font-size: 42px !important; }
  body.gfm-catalog-theme .grid-2,
  body.gfm-catalog-theme .grid-3,
  body.gfm-catalog-theme .grid-4,
  body.gfm-catalog-theme .course-grid,
  body.gfm-catalog-theme .topic-groups-grid,
  body.gfm-catalog-theme .video-grid,
  body.gfm-catalog-theme .video-grid-extended,
  body.gfm-catalog-theme .footer-grid { grid-template-columns: 1fr !important; }
  body.gfm-catalog-theme .section-head,
  body.gfm-catalog-theme .section-head-premium,
  body.gfm-catalog-theme .video-gallery-heading { align-items: flex-start !important; flex-direction: column !important; }
}
