/* GDC Live Courses — standalone catalog (blank page) */

.gdc-blank-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 8% -10%, rgba(14, 165, 233, 0.18), transparent 55%),
    radial-gradient(900px 500px at 92% 0%, rgba(56, 189, 248, 0.14), transparent 50%),
    linear-gradient(180deg, #f4f9fc 0%, #eef5fa 45%, #f7fafc 100%);
  color: #12201e;
  font-family: "Sora", "Segoe UI", sans-serif;
}

.gdc-blank-main {
  min-height: 100vh;
}

.gdc-root {
  --gdc-ink: #0b1c1a;
  --gdc-muted: #5b6f6c;
  --gdc-surface: rgba(255, 255, 255, 0.88);
  --gdc-line: rgba(11, 28, 26, 0.1);
  --gdc-gold: #d97706;
  box-sizing: border-box;
  width: 100%;
  padding: clamp(1rem, 3vw, 2.75rem) clamp(0.85rem, 4vw, 3rem) 4rem;
  padding-left: max(0.85rem, env(safe-area-inset-left));
  padding-right: max(0.85rem, env(safe-area-inset-right));
  padding-bottom: max(2.5rem, env(safe-area-inset-bottom));
}

.gdc-root *,
.gdc-root *::before,
.gdc-root *::after {
  box-sizing: border-box;
}

.gdc-shell {
  max-width: 1180px;
  margin: 0 auto;
}

.gdc-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.4rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--gdc-line);
  box-shadow: 0 10px 28px rgba(11, 28, 26, 0.06);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  animation: gdc-rise 0.55s ease both;
}

.gdc-tabs::-webkit-scrollbar {
  display: none;
}

.gdc-tab {
  flex: 1 1 auto;
  min-width: max-content;
  padding: 0.75rem 1.05rem;
  border: 1.5px solid rgba(14, 165, 233, 0.35);
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #eef9ff 100%);
  color: var(--gdc-accent, #0ea5e9) !important;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.1);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.gdc-tab:hover,
.gdc-tab:focus {
  color: #0369a1 !important;
  border-color: rgba(14, 165, 233, 0.65);
  background: linear-gradient(180deg, #ffffff 0%, #e0f4fe 100%);
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.16);
  outline: none;
  transform: translateY(-1px);
}

.gdc-tab.is-active {
  background: linear-gradient(135deg, var(--gdc-accent, #0ea5e9), var(--gdc-accent-deep, #0284c7));
  border-color: transparent;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(14, 165, 233, 0.32);
  transform: none;
}

.gdc-tab.is-active:hover,
.gdc-tab.is-active:focus {
  color: #fff !important;
  border-color: transparent;
  background: linear-gradient(135deg, var(--gdc-accent, #0ea5e9), var(--gdc-accent-deep, #0284c7));
  filter: brightness(1.05);
  transform: none;
}

.gdc-loading {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px dashed var(--gdc-line);
  color: var(--gdc-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}

.gdc-grid.is-loading {
  opacity: 0.45;
  pointer-events: none;
}

.gdc-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  animation: gdc-rise 0.7s ease both;
}

.gdc-search {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: var(--gdc-surface);
  border: 1px solid var(--gdc-line);
  backdrop-filter: blur(10px);
  color: var(--gdc-muted);
}

.gdc-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 1rem; /* prevents iOS zoom on focus */
  color: var(--gdc-ink);
  -webkit-appearance: none;
  appearance: none;
}

.gdc-sort {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: var(--gdc-surface);
  border: 1px solid var(--gdc-line);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gdc-muted);
  white-space: nowrap;
}

.gdc-sort select {
  max-width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gdc-ink);
  outline: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.gdc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.15rem;
}

.gdc-card {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--gdc-line);
  box-shadow: 0 16px 40px rgba(11, 28, 26, 0.07);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  animation: gdc-rise 0.55s ease both;
  text-decoration: none;
  color: inherit;
}

@media (hover: hover) and (pointer: fine) {
  .gdc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 48px rgba(11, 28, 26, 0.12);
  }

  .gdc-card:hover .gdc-card__media img {
    transform: scale(1.04);
  }

  .gdc-cta:hover,
  .gdc-cta:focus {
    filter: brightness(1.06);
    transform: translateY(-1px);
    color: #fff !important;
    text-decoration: none !important;
  }
}

.gdc-card__media {
  position: relative;
  display: block;
  background: #e8eef0;
  overflow: hidden;
  line-height: 0;
}

.gdc-card__media img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
  object-position: center top;
  transition: transform 0.45s ease;
}

.gdc-card__badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(11, 28, 26, 0.78);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.gdc-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1rem 1rem 1.1rem;
  flex: 1;
}

.gdc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.gdc-tag {
  padding: 0.22rem 0.5rem;
  border-radius: 6px;
  background: var(--gdc-accent-soft, rgba(14, 165, 233, 0.14));
  color: var(--gdc-accent, #0ea5e9);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gdc-card__title {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--gdc-ink) !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4rem;
}

.gdc-card a,
.gdc-card a:link,
.gdc-card a:visited,
.gdc-card a:hover,
.gdc-card a:focus {
  color: inherit;
  text-decoration: none;
}

.gdc-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.65rem;
  margin-top: auto;
}

.gdc-price {
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--gdc-ink);
}

.gdc-price--strike {
  font-family: "Sora", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: #8a9a97;
  text-decoration: line-through;
}

.gdc-price--off {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gdc-gold);
}

.gdc-price--free {
  color: var(--gdc-accent, #0ea5e9);
}

.gdc-cta,
.gdc-cta:link,
.gdc-cta:visited,
.gdc-cta:hover,
.gdc-cta:focus,
.gdc-cta:active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gdc-accent, #0ea5e9), var(--gdc-accent-deep, #0284c7) 55%, #0369a1);
  color: #fff !important;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none !important;
  box-shadow: none;
  outline: none;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.gdc-cta:active {
  transform: scale(0.98);
  color: #fff !important;
}

.gdc-empty {
  margin: 2rem 0 0;
  padding: 1.5rem;
  text-align: center;
  color: var(--gdc-muted);
  border: 1px dashed var(--gdc-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes gdc-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tablet */
@media (max-width: 900px) {
  .gdc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
  }
}

/* Phones */
@media (max-width: 720px) {
  .gdc-blank-body {
    background:
      radial-gradient(700px 360px at 0% 0%, rgba(14, 165, 233, 0.16), transparent 55%),
      linear-gradient(180deg, #f3f8fc 0%, #eef4f9 100%);
  }

  .gdc-root {
    padding-top: 0.75rem;
  }

  .gdc-tabs {
    position: sticky;
    top: 0;
    z-index: 25;
    margin: 0 -0.15rem 0.75rem;
    border-radius: 12px;
    background: rgba(243, 246, 245, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .gdc-tab {
    padding: 0.65rem 0.75rem;
    font-size: 0.78rem;
  }

  .gdc-toolbar {
    position: sticky;
    top: 3.1rem;
    z-index: 20;
    grid-template-columns: 1fr;
    gap: 0.55rem;
    margin: 0 -0.15rem 0.9rem;
    padding: 0.55rem 0.15rem 0.65rem;
    background: rgba(243, 246, 245, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .gdc-search,
  .gdc-sort {
    min-height: 48px;
    padding: 0.7rem 0.9rem;
    border-radius: 12px;
  }

  .gdc-sort {
    justify-content: space-between;
  }

  .gdc-sort select {
    flex: 1;
    text-align: right;
  }

  .gdc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .gdc-card {
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(11, 28, 26, 0.06);
  }

  .gdc-card__badge {
    top: 0.45rem;
    left: 0.45rem;
    padding: 0.2rem 0.4rem;
    font-size: 0.58rem;
  }

  .gdc-card__body {
    gap: 0.45rem;
    padding: 0.65rem 0.65rem 0.75rem;
  }

  .gdc-tags {
    gap: 0.25rem;
  }

  .gdc-tag {
    padding: 0.15rem 0.35rem;
    font-size: 0.55rem;
  }

  .gdc-tag:nth-child(n + 3) {
    display: none;
  }

  .gdc-card__title {
    font-size: 0.78rem;
    line-height: 1.35;
    -webkit-line-clamp: 3;
    min-height: 0;
  }

  .gdc-price {
    font-size: 1.05rem;
  }

  .gdc-price--strike {
    font-size: 0.72rem;
  }

  .gdc-price--off {
    font-size: 0.65rem;
  }

  .gdc-cta {
    min-height: 40px;
    margin-top: 0.15rem;
    padding: 0.55rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
  }
}

/* Narrow phones — stack to 1 column for readability */
@media (max-width: 380px) {
  .gdc-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .gdc-card__title {
    font-size: 0.9rem;
    -webkit-line-clamp: 2;
  }

  .gdc-cta {
    min-height: 44px;
    font-size: 0.85rem;
  }
}
