/* AIPlayCraft Minecraft program catalog. */

.programs-page {
  color: #202124;
  background: #ffffff;
}

.programs-hero {
  overflow: hidden;
  border-bottom: 1px solid #dfe7f1;
  background:
    radial-gradient(circle at 84% 20%, rgba(66, 133, 244, 0.18), transparent 29%),
    radial-gradient(circle at 63% 86%, rgba(53, 199, 242, 0.12), transparent 29%),
    linear-gradient(180deg, #ffffff 0%, #f7faff 48%, #e8f0fe 100%);
}

.programs-hero-grid {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(390px, 0.97fr);
  align-items: center;
  gap: clamp(42px, 7vw, 100px);
  padding-block: 76px 84px;
}

.programs-hero-copy h1 {
  max-width: 800px;
  margin: 4px 0 24px;
  color: #071a3d;
  font-size: clamp(48px, 6.2vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.062em;
}

.programs-hero-copy > p:not(.pc-eyebrow) {
  max-width: 680px;
  margin: 0;
  color: #5f6f85;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.58;
}

.programs-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 28px;
}

.programs-hero-points span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid #d2e3fc;
  border-radius: 999px;
  color: #174ea6;
  background: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 750;
}

.programs-hero-points span::before {
  content: "✓";
  color: #34a853;
  font-weight: 900;
}

.programs-hero-visual {
  min-height: 380px;
  position: relative;
}

.programs-stack-card {
  position: absolute;
  width: min(330px, 76%);
  min-height: 132px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 16px;
  align-content: center;
  padding: 20px 22px;
  border: 1px solid rgba(210, 227, 252, 0.94);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 25px 68px rgba(35, 75, 135, 0.16);
  backdrop-filter: blur(14px);
}

.programs-stack-card > span {
  grid-row: 1 / 3;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  align-self: center;
  border-radius: 17px;
  color: #ffffff;
  background: #4285f4;
  font-size: 18px;
  font-weight: 900;
}

.programs-stack-card strong {
  align-self: end;
  color: #071a3d;
  font-size: 18px;
}

.programs-stack-card small {
  align-self: start;
  margin-top: 3px;
  color: #6b7a90;
}

.programs-stack-one {
  top: 18px;
  right: 16%;
  transform: rotate(3deg);
}

.programs-stack-two {
  top: 137px;
  left: 0;
  transform: rotate(-4deg);
}

.programs-stack-two > span {
  color: #174ea6;
  background: #d2e3fc;
}

.programs-stack-three {
  right: 0;
  bottom: 5px;
  transform: rotate(2deg);
}

.programs-stack-three > span {
  color: #137333;
  background: #e6f4ea;
}

.programs-catalog {
  padding: 88px 0 108px;
  background: #f8faff;
}

.programs-catalog-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}

.programs-catalog-heading h2,
.programs-how-heading h2 {
  margin: 2px 0 0;
  color: #071a3d;
  font-size: clamp(36px, 4.7vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.052em;
}

.programs-result-count {
  margin: 0 0 8px;
  color: #5f6f85;
  font-size: 14px;
  font-weight: 700;
}

.programs-toolbar {
  padding: 20px;
  border: 1px solid #dfe7f1;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 42px rgba(34, 73, 129, 0.07);
}

.programs-search-field,
.programs-filter-grid label {
  display: grid;
  gap: 7px;
}

.programs-search-field > span,
.programs-filter-grid label > span {
  color: #40516a;
  font-size: 12px;
  font-weight: 800;
}

.programs-search-field > div {
  position: relative;
}

.programs-search-field input {
  width: 100%;
  min-height: 54px;
  padding: 12px 48px 12px 48px;
  border: 1px solid #d7e0ec;
  border-radius: 15px;
  color: #202124;
  background: #f9fbff;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

.programs-search-field input:focus {
  border-color: #4285f4;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(66, 133, 244, 0.11);
}

.programs-search-icon {
  position: absolute;
  top: 50%;
  left: 17px;
  width: 17px;
  height: 17px;
  border: 2px solid #6b7a90;
  border-radius: 50%;
  transform: translateY(-58%);
  pointer-events: none;
}

.programs-search-icon::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -4px;
  width: 7px;
  height: 2px;
  border-radius: 2px;
  background: #6b7a90;
  transform: rotate(45deg);
}

#program-search-clear {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  color: #5f6f85;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  transform: translateY(-50%);
}

#program-search-clear:hover {
  color: #174ea6;
  background: #e8f0fe;
}

.programs-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-top: 16px;
}

.programs-filter-grid select {
  width: 100%;
  min-height: 47px;
  padding: 10px 38px 10px 12px;
  border: 1px solid #d7e0ec;
  border-radius: 13px;
  color: #263750;
  background: #ffffff;
}

.programs-quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px solid #edf1f6;
}

.programs-quick-filters button {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid #d9e2ee;
  border-radius: 999px;
  color: #53637a;
  background: #ffffff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  transition: color 0.16s, border-color 0.16s, background 0.16s;
}

.programs-quick-filters button:hover,
.programs-quick-filters button.is-active {
  color: #174ea6;
  border-color: #b8d1fb;
  background: #e8f0fe;
}

.programs-quick-filters .programs-reset {
  margin-left: auto;
  color: #174ea6;
  border-color: transparent;
  background: transparent;
}

.programs-message {
  margin-top: 18px;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.program-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #dfe7f1;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 13px 34px rgba(34, 73, 129, 0.07);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.program-card:hover {
  transform: translateY(-4px);
  border-color: #c8daf7;
  box-shadow: 0 22px 48px rgba(34, 73, 129, 0.12);
}

.program-card.is-featured {
  border-color: #bfd5fb;
}

.program-card-art {
  min-height: 154px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 20px;
  color: #174ea6;
  background:
    radial-gradient(circle at 78% 18%, rgba(66, 133, 244, 0.2), transparent 28%),
    linear-gradient(145deg, #f7faff, #e8f0fe);
}

.program-card[data-category="Redstone"] .program-card-art {
  color: #8a5a00;
  background: linear-gradient(145deg, #fffdf5, #fff1c9);
}

.program-card[data-category="Building"] .program-card-art {
  color: #137333;
  background: linear-gradient(145deg, #f7fff9, #e2f4e7);
}

.program-card[data-category="PvP"] .program-card-art {
  color: #8c1d18;
  background: linear-gradient(145deg, #fff8f7, #fce8e6);
}

.program-art-code {
  position: relative;
  z-index: 2;
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 19px;
  color: #ffffff;
  background: #4285f4;
  box-shadow: 0 14px 28px rgba(50, 88, 147, 0.18);
  font-size: 19px;
  font-weight: 900;
}

.program-card[data-category="Redstone"] .program-art-code {
  background: #d68b00;
}

.program-card[data-category="Building"] .program-art-code {
  background: #34a853;
}

.program-card[data-category="PvP"] .program-art-code {
  background: #ea4335;
}

.program-card-art::before,
.program-card-art::after {
  content: "";
  position: absolute;
  border-radius: 14px;
  background: currentColor;
  opacity: 0.09;
  transform: rotate(12deg);
}

.program-card-art::before {
  width: 105px;
  height: 105px;
  top: 16px;
  right: 25px;
}

.program-card-art::after {
  width: 68px;
  height: 68px;
  right: 92px;
  bottom: -20px;
  transform: rotate(-10deg);
}

.program-card-badge {
  position: relative;
  z-index: 2;
  max-width: 160px;
  padding: 7px 10px;
  border-radius: 999px;
  color: currentColor;
  background: rgba(255, 255, 255, 0.83);
  font-size: 11px;
  font-weight: 850;
  text-align: center;
}

.program-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 22px;
}

.program-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.program-card-tags span {
  padding: 5px 8px;
  border-radius: 8px;
  color: #53637a;
  background: #f1f4f8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.program-card h3 {
  margin: 0;
  color: #071a3d;
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.program-card-description {
  margin: 12px 0 0;
  color: #66768c;
  font-size: 14px;
  line-height: 1.55;
}

.program-card-skills {
  display: grid;
  gap: 7px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.program-card-skills li {
  position: relative;
  padding-left: 18px;
  color: #43536a;
  font-size: 12px;
  line-height: 1.42;
}

.program-card-skills li::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 1px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: #4285f4;
}

.program-card-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 22px;
}

.program-card-price span,
.program-card-price strong,
.program-card-price small {
  display: block;
}

.program-card-price span {
  color: #7b899c;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.program-card-price strong {
  margin-top: 2px;
  color: #071a3d;
  font-size: 23px;
  letter-spacing: -0.03em;
}

.program-card-price small {
  margin-top: 1px;
  color: #7b899c;
  font-size: 10px;
}

.program-card-actions {
  display: flex;
  gap: 7px;
}

.program-card-actions button {
  min-height: 42px;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 12px;
}

.program-loading-card {
  min-height: 470px;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 22px;
  border: 1px solid #e1e7ef;
  border-radius: 24px;
  background: #ffffff;
}

.program-loading-card span {
  display: block;
  height: 22px;
  border-radius: 8px;
  background: linear-gradient(90deg, #edf1f6 25%, #f8faff 48%, #edf1f6 72%);
  background-size: 220% 100%;
  animation: programs-loading 1.25s ease-in-out infinite;
}

.program-loading-card span:first-child {
  height: 150px;
  margin: -22px -22px 5px;
  border-radius: 24px 24px 0 0;
}

.program-loading-card span:nth-child(2) {
  width: 78%;
}

.program-loading-card span:nth-child(3) {
  width: 92%;
}

@keyframes programs-loading {
  to { background-position: -220% 0; }
}

.program-empty {
  justify-items: center;
  margin-top: 30px;
  padding: 54px 24px;
  border: 1px dashed #cbd8e8;
  border-radius: 22px;
  background: #ffffff;
  text-align: center;
}

.program-empty:not([hidden]) {
  display: grid;
}

.program-empty > span {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #174ea6;
  background: #e8f0fe;
  font-size: 22px;
  font-weight: 900;
}

.program-empty h3 {
  margin: 16px 0 5px;
  color: #071a3d;
}

.program-empty p {
  margin: 0 0 20px;
  color: #66768c;
}

.programs-how {
  padding: 100px 0;
  background: #ffffff;
}

.programs-how-heading {
  max-width: 780px;
}

.programs-how-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.programs-how-grid article {
  padding: 25px;
  border: 1px solid #dfe7f1;
  border-radius: 21px;
  background: #f8faff;
}

.programs-how-grid article > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #174ea6;
  background: #e8f0fe;
  font-weight: 900;
}

.programs-how-grid strong {
  display: block;
  margin-top: 16px;
  color: #071a3d;
  font-size: 17px;
}

.programs-how-grid p {
  margin: 7px 0 0;
  color: #66768c;
  font-size: 14px;
  line-height: 1.55;
}

.program-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  overflow-y: auto;
  padding: 28px;
}

.program-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 26, 61, 0.56);
  backdrop-filter: blur(7px);
}

.program-dialog {
  width: min(980px, 100%);
  position: relative;
  z-index: 2;
  overflow: hidden;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  margin: 20px auto;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 36px 100px rgba(7, 26, 61, 0.3);
}

.program-dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #dfe7f1;
  border-radius: 13px;
  color: #40516a;
  background: rgba(255, 255, 255, 0.93);
  cursor: pointer;
  font-size: 25px;
}

.program-dialog-art {
  min-height: 100%;
  display: grid;
  place-items: center;
  color: #174ea6;
  background:
    radial-gradient(circle at 65% 23%, rgba(66, 133, 244, 0.22), transparent 28%),
    linear-gradient(160deg, #f7faff, #dce9ff);
}

.program-dialog-art span {
  width: 110px;
  height: 110px;
  display: grid;
  place-items: center;
  border-radius: 30px;
  color: #ffffff;
  background: #4285f4;
  box-shadow: 0 25px 52px rgba(34, 73, 129, 0.2);
  font-size: 31px;
  font-weight: 900;
}

.program-dialog-copy {
  padding: 38px 40px 34px;
}

.program-dialog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-right: 44px;
}

.program-dialog-tags span,
.program-dialog-badge {
  padding: 6px 9px;
  border-radius: 8px;
  color: #53637a;
  background: #f1f4f8;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.program-dialog-badge {
  display: inline-flex;
  margin: 18px 0 0;
  color: #174ea6;
  background: #e8f0fe;
}

.program-dialog h2 {
  margin: 12px 0 0;
  color: #071a3d;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.03;
  letter-spacing: -0.052em;
}

#program-dialog-description {
  margin: 17px 0 0;
  color: #5f6f85;
  font-size: 15px;
  line-height: 1.65;
}

.program-dialog-columns {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  margin-top: 28px;
}

.program-dialog-columns h3 {
  margin: 0 0 10px;
  color: #071a3d;
  font-size: 14px;
}

.program-dialog-columns ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.program-dialog-columns li {
  position: relative;
  padding-left: 19px;
  color: #53637a;
  font-size: 12px;
  line-height: 1.48;
}

.program-dialog-columns li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #34a853;
  font-weight: 900;
}

.program-dialog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid #e6ebf2;
}

.program-dialog-footer > div span,
.program-dialog-footer > div strong,
.program-dialog-footer > div small {
  display: block;
}

.program-dialog-footer > div span {
  color: #6b7a90;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.program-dialog-footer > div strong {
  margin-top: 2px;
  color: #071a3d;
  font-size: 27px;
}

.program-dialog-footer > div small {
  margin-top: 2px;
  color: #7b899c;
}

#program-dialog-message {
  margin-top: 16px;
}

body.program-modal-open {
  overflow: hidden;
}

@media (max-width: 1020px) {
  .programs-hero-grid {
    grid-template-columns: 1fr;
  }

  .programs-hero-visual {
    width: min(720px, 100%);
    min-height: 310px;
  }

  .programs-stack-one {
    right: 5%;
  }

  .program-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .programs-filter-grid,
  .programs-how-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .program-dialog {
    grid-template-columns: 1fr;
  }

  .program-dialog-art {
    min-height: 170px;
  }

  .program-dialog-art span {
    width: 80px;
    height: 80px;
    border-radius: 22px;
    font-size: 24px;
  }
}

@media (max-width: 640px) {
  .programs-hero-grid {
    min-height: auto;
    padding-block: 54px 64px;
  }

  .programs-hero-visual {
    min-height: 360px;
  }

  .programs-stack-card {
    width: 86%;
  }

  .programs-stack-one {
    right: 0;
  }

  .programs-stack-two {
    top: 127px;
  }

  .programs-stack-three {
    right: 2%;
  }

  .programs-catalog {
    padding-block: 66px 80px;
  }

  .programs-catalog-heading {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .programs-toolbar {
    padding: 15px;
    border-radius: 19px;
  }

  .programs-filter-grid,
  .program-grid,
  .programs-how-grid,
  .program-dialog-columns {
    grid-template-columns: 1fr;
  }

  .programs-quick-filters .programs-reset {
    width: 100%;
    margin-left: 0;
  }

  .program-card-footer,
  .program-dialog-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .program-card-actions {
    width: 100%;
  }

  .program-card-actions button {
    flex: 1;
  }

  .program-modal {
    padding: 10px;
  }

  .program-dialog {
    margin: 10px auto;
    border-radius: 22px;
  }

  .program-dialog-copy {
    padding: 28px 21px 23px;
  }

  #program-dialog-buy {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .program-card,
  .programs-quick-filters button,
  .programs-search-field input {
    transition: none;
  }

  .program-loading-card span {
    animation: none;
  }
}
