/* ==========================================================================
   Shared styles for the multi-section platform (apps / games / tools / software)
   Sits on top of the legacy RD-Landkit css/style.css.
   ========================================================================== */

:root {
  --pf-accent: #f8931f;
  --pf-accent-soft: rgba(248, 147, 31, .12);
  --pf-violet: #7c5cff;
  --pf-teal: #22c7c7;
  --pf-ink: #151515;
  --pf-ink-soft: #2b2b2b;
  --pf-muted: #7b7b7b;
  --pf-border: #e9e9e9;
  --pf-surface: #ffffff;
  --pf-radius: 16px;
  --pf-radius-lg: 22px;
  --pf-shadow: 0 12px 34px rgba(21, 21, 21, .08);
  --pf-shadow-hover: 0 22px 52px rgba(21, 21, 21, .17);
  /* The RD-Landkit template sets headings in Asfalto; keep the whole site on
     that family so the banner title and every section heading match. */
  --pf-font-display: "Asfalto", "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --pf-font-body: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* Typography unified on the banner family -------------------------------- */
.pf-shortcuts-head h3,
.pf-latest-head h3,
.pf-section-head h2,
.pf-hero h1,
.pf-card-title,
.pf-post-title,
.pf-shortcut-title {
  font-family: var(--pf-font-display);
  letter-spacing: .045em;
}
.pf-card-desc,
.pf-post-desc,
.pf-shortcut-sub,
.pf-hero p,
.pf-note,
.pf-tag,
.pf-card-foot,
.pf-post-meta,
.pf-pill {
  font-family: var(--pf-font-body);
}

/* Banner kicker: small uppercase eyebrow above the H1 -------------------- */
.pf-hero-kicker {
  display: inline-block;
  margin-bottom: 18px;
  font-family: var(--pf-font-display);
  font-size: 12px;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .8);
  padding-left: .42em;
}
.pf-hero-kicker::after {
  content: "";
  display: block;
  width: 46px;
  height: 2px;
  margin-top: 10px;
  background: linear-gradient(90deg, var(--pf-accent), rgba(248, 147, 31, 0));
}

/* Sharper banner headline with a soft glow -------------------------------- */
.swiper-slider-2 .swiper-title,
.swiper-slider-3 .swiper-title {
  font-family: var(--pf-font-display);
  font-size: clamp(38px, 5.2vw, 68px);
  line-height: 1.08;
  letter-spacing: .03em;
  text-shadow: 0 4px 40px rgba(0, 0, 0, .45);
}
.swiper-slider-2 .swiper-text,
.swiper-slider-3 .swiper-text {
  font-family: var(--pf-font-body);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .82);
  max-width: 34em;
}

/* Section hero / breadcrumb ------------------------------------------------ */
.pf-hero {
  position: relative;
  padding: 62px 0 54px;
  background: #f6f7f9;
  border-bottom: 1px solid var(--pf-border);
  overflow: hidden;
}
.pf-hero::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -90px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(248, 147, 31, .18), transparent 68%);
  pointer-events: none;
}
.pf-hero .pf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--pf-accent);
  font-weight: 700;
  margin-bottom: 14px;
}
.pf-hero h1 {
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 14px;
  color: var(--pf-ink);
}
.pf-hero p {
  max-width: 640px;
  margin: 0;
  color: var(--pf-muted);
  font-size: 16px;
  line-height: 1.8;
}
.pf-hero .pf-hero-meta {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pf-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--pf-border);
  font-size: 13px;
  color: var(--pf-muted);
}
.pf-pill strong { color: var(--pf-ink); }

/* Section body ------------------------------------------------------------- */
.pf-section { padding: 54px 0 72px; }
.pf-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.pf-section-head h2 {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--pf-ink);
}
.pf-section-head p { margin: 0; color: var(--pf-muted); font-size: 14px; }
.pf-note {
  margin-top: 34px;
  padding: 16px 20px;
  border-left: 3px solid var(--pf-accent);
  background: #fffaf3;
  border-radius: 0 var(--pf-radius) var(--pf-radius) 0;
  font-size: 14px;
  color: #6b5b45;
  line-height: 1.8;
}
.pf-note code {
  background: rgba(0, 0, 0, .05);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12.5px;
}

/* Cards -------------------------------------------------------------------- */
.pf-grid { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.pf-card-wrap {
  width: 100%;
  padding: 0 15px 30px;
  box-sizing: border-box;
}
@media (min-width: 576px) { .pf-card-wrap { width: 50%; } }
@media (min-width: 992px) { .pf-card-wrap { width: 33.3333%; } }

.pf-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--pf-surface);
  border: 1px solid var(--pf-border);
  border-radius: var(--pf-radius);
  overflow: hidden;
  box-shadow: var(--pf-shadow);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
/* Gradient hairline that lights up on hover */
.pf-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--pf-accent), var(--pf-violet) 55%, var(--pf-teal));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .28s ease;
  pointer-events: none;
  z-index: 3;
}
.pf-card:hover::before { opacity: .9; }
.pf-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--pf-shadow-hover);
  border-color: rgba(248, 147, 31, .45);
}
.pf-card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #eef1f5, #e2e7ee);
  overflow: hidden;
}
.pf-card-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.pf-card:hover .pf-card-media img { transform: scale(1.06); }
.pf-card-media .pf-fallback-icon {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 54px;
  color: #b9c2cf;
}
.pf-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  background: rgba(21, 21, 21, .78);
  color: #fff;
  backdrop-filter: blur(4px);
}
.pf-badge.pf-badge-accent { background: var(--pf-accent); color: #fff; }
.pf-badge.pf-badge-planned { background: rgba(123, 123, 123, .85); }
.pf-ext {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  color: var(--pf-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.pf-card-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.pf-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--pf-accent);
  background: rgba(248, 147, 31, .12);
  margin-bottom: 14px;
}
.pf-card-title { font-size: 17px; font-weight: 700; margin: 0 0 8px; line-height: 1.4; }
.pf-card-title a { color: var(--pf-ink); text-decoration: none; }
.pf-card-title a:hover { color: var(--pf-accent); }
.pf-card-desc {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--pf-muted);
  margin: 0 0 16px;
  flex: 1;
}
.pf-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.pf-tag {
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: 5px;
  background: #f3f4f6;
  color: #6b7280;
}
.pf-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--pf-border);
  font-size: 12px;
  color: #9a9a9a;
}
.pf-card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--pf-accent);
  text-decoration: none;
  white-space: nowrap;
}
.pf-card-link:hover { text-decoration: underline; }
.pf-card.is-planned { border-style: dashed; box-shadow: none; background: #fcfcfd; }
.pf-card.is-planned:hover { transform: none; box-shadow: none; border-color: var(--pf-border); }
.pf-card.is-planned .pf-card-media { opacity: .55; }

/* Gallery ---------------------------------------------------------------- */
.gl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}
.gl-item {
  margin: 0;
  border-radius: var(--pf-radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--pf-border);
  box-shadow: var(--pf-shadow);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.gl-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--pf-shadow-hover);
  border-color: rgba(248, 147, 31, .4);
}
.gl-open {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #eef1f5;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.gl-open img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}
.gl-open:hover img { transform: scale(1.07); }
.gl-zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(21, 21, 21, .66);
  color: #fff;
  font-size: 16px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
}
.gl-open:hover .gl-zoom { opacity: 1; transform: translateY(0); }
.gl-item.is-broken .gl-open { background: repeating-linear-gradient(45deg, #f4f5f7, #f4f5f7 8px, #eceef2 8px, #eceef2 16px); }
.gl-item.is-broken .gl-open img { display: none; }
.gl-cap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--pf-border);
}
.gl-name {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  color: var(--pf-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gl-copy {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--pf-border);
  border-radius: 7px;
  background: #fff;
  color: var(--pf-muted);
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.gl-copy:hover { color: var(--pf-accent); border-color: var(--pf-accent); background: var(--pf-accent-soft); }

/* Lightbox */
.gl-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(8, 8, 12, .88);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.gl-lightbox.is-on { opacity: 1; visibility: visible; }
.gl-lb-inner { position: relative; max-width: min(92vw, 1400px); max-height: 88vh; }
.gl-lb-img {
  max-width: 100%;
  max-height: 82vh;
  display: block;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
}
.gl-lb-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}
.gl-lb-bar a,
.gl-lb-bar button {
  font-family: var(--pf-font-body);
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
}
.gl-lb-bar a:hover,
.gl-lb-bar button:hover { background: rgba(248, 147, 31, .85); border-color: transparent; }
.gl-lb-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
}
.gl-toast {
  position: fixed;
  left: 50%;
  bottom: 42px;
  transform: translate(-50%, 14px);
  z-index: 10000;
  padding: 10px 22px;
  border-radius: 999px;
  background: rgba(21, 21, 21, .9);
  color: #fff;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.gl-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Category groups (used by the tools page) -------------------------------- */
.pf-grouped { display: block; }
.pf-cat { margin-bottom: 46px; }
.pf-cat:last-child { margin-bottom: 0; }
.pf-cat-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--pf-font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--pf-ink);
  margin: 0 0 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--pf-border);
}
.pf-cat-title .mdi { font-size: 21px; color: var(--pf-accent); }
.pf-cat-title em {
  font-style: normal;
  font-family: var(--pf-font-body);
  font-size: 11.5px;
  font-weight: 600;
  color: #fff;
  background: var(--pf-accent);
  border-radius: 999px;
  padding: 2px 9px;
  margin-left: auto;
}
.pf-cat-desc { margin: 10px 0 20px; font-size: 13px; color: var(--pf-muted); }

.pf-loading, .pf-empty, .pf-error {
  width: 100%;
  padding: 56px 20px;
  text-align: center;
  color: var(--pf-muted);
  font-size: 15px;
}
.pf-spinner {
  display: inline-block;
  width: 26px;
  height: 26px;
  border: 3px solid rgba(248, 147, 31, .25);
  border-top-color: var(--pf-accent);
  border-radius: 50%;
  animation: pf-spin .8s linear infinite;
  vertical-align: middle;
  margin-right: 10px;
}
@keyframes pf-spin { to { transform: rotate(360deg); } }

/* Latest posts widget on portal home -------------------------------------- */
.pf-latest { padding: 62px 0 70px; background: #f6f7f9; }
.pf-latest-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.pf-latest-head h3 { font-size: 27px; font-weight: 700; margin: 0 0 6px; color: var(--pf-ink); }
.pf-latest-head p { margin: 0; color: var(--pf-muted); font-size: 14px; }
.pf-latest-all { color: var(--pf-accent); font-weight: 600; font-size: 14px; text-decoration: none; }
.pf-latest-all:hover { text-decoration: underline; }
.pf-latest-list { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.pf-post {
  width: 100%;
  padding: 0 15px 30px;
  box-sizing: border-box;
}
@media (min-width: 576px) { .pf-post { width: 50%; } }
@media (min-width: 992px) { .pf-post { width: 33.3333%; } }
.pf-post-inner {
  display: flex;
  gap: 14px;
  height: 100%;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--pf-border);
  border-radius: var(--pf-radius);
  box-shadow: var(--pf-shadow);
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}
.pf-post-inner:hover { transform: translateY(-4px); box-shadow: var(--pf-shadow-hover); }
.pf-post-thumb {
  flex: 0 0 88px;
  width: 88px;
  height: 88px;
  border-radius: 10px;
  object-fit: cover;
  background: #e9edf2;
}
.pf-post-info { display: flex; flex-direction: column; min-width: 0; }
.pf-post-title {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--pf-ink);
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pf-post-desc {
  font-size: 12.5px;
  color: var(--pf-muted);
  line-height: 1.6;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pf-post-meta { margin-top: auto; font-size: 11.5px; color: #a0a0a0; }
.pf-post-cat { color: var(--pf-accent); font-weight: 600; }

/* Portal home: section shortcuts ------------------------------------------ */
.pf-shortcuts { padding: 0 0 8px; }
.pf-shortcuts-head { margin-bottom: 28px; text-align: center; }
.pf-shortcuts-head h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--pf-ink);
  margin: 0 0 8px;
  letter-spacing: .01em;
}
.pf-shortcuts-head h3::after {
  content: "";
  display: block;
  width: 52px;
  height: 3px;
  margin: 14px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--pf-accent), var(--pf-violet));
}
.pf-shortcuts-head p { margin: 0; color: var(--pf-muted); font-size: 14px; }
.pf-shortcut-grid { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.pf-shortcut {
  width: 50%;
  padding: 0 15px 30px;
  box-sizing: border-box;
}
@media (min-width: 768px) { .pf-shortcut { width: 33.3333%; } }
@media (min-width: 1200px) { .pf-shortcut { width: 20%; } }
.pf-shortcut-inner {
  position: relative;
  display: block;
  height: 100%;
  padding: 32px 20px 28px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--pf-border);
  border-radius: var(--pf-radius-lg);
  box-shadow: var(--pf-shadow);
  text-decoration: none;
  overflow: hidden;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease, border-color .3s ease;
}
/* Colored wash sweeping in from the top on hover */
.pf-shortcut-inner::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pf-accent), var(--pf-violet), var(--pf-teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .38s ease;
}
.pf-shortcut-inner::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -40%;
  width: 220px;
  height: 220px;
  transform: translateX(-50%) scale(.6);
  background: radial-gradient(circle, rgba(248, 147, 31, .16), transparent 66%);
  opacity: 0;
  transition: opacity .35s ease, transform .45s ease;
  pointer-events: none;
}
.pf-shortcut-inner:hover {
  transform: translateY(-8px);
  box-shadow: var(--pf-shadow-hover);
  border-color: rgba(248, 147, 31, .35);
}
.pf-shortcut-inner:hover::before { transform: scaleX(1); }
.pf-shortcut-inner:hover::after { opacity: 1; transform: translateX(-50%) scale(1); }
.pf-shortcut-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  border-radius: 18px;
  font-size: 31px;
  line-height: 1;
  color: #fff;
  background: linear-gradient(135deg, #ffb154, var(--pf-accent) 55%, #e0741a);
  box-shadow: 0 10px 24px rgba(248, 147, 31, .32);
  margin-bottom: 16px;
  transition: transform .35s ease, box-shadow .35s ease;
}
.pf-shortcut-inner:hover .pf-shortcut-icon {
  transform: translateY(-2px) scale(1.06) rotate(-3deg);
  box-shadow: 0 14px 30px rgba(248, 147, 31, .42);
}
.pf-shortcut-title {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--pf-ink);
  transition: color .25s ease;
}
.pf-shortcut-inner:hover .pf-shortcut-title { color: var(--pf-accent); }
.pf-shortcut-sub { display: block; font-size: 12.5px; color: var(--pf-muted); margin-top: 6px; }

/* Staggered entrance for the four shortcut cards ------------------------- */
.pf-shortcut:nth-child(1) .pf-shortcut-inner { animation: pfRise .55s .00s both cubic-bezier(.2,.8,.2,1); }
.pf-shortcut:nth-child(2) .pf-shortcut-inner { animation: pfRise .55s .08s both cubic-bezier(.2,.8,.2,1); }
.pf-shortcut:nth-child(3) .pf-shortcut-inner { animation: pfRise .55s .16s both cubic-bezier(.2,.8,.2,1); }
.pf-shortcut:nth-child(4) .pf-shortcut-inner { animation: pfRise .55s .24s both cubic-bezier(.2,.8,.2,1); }
.pf-shortcut:nth-child(5) .pf-shortcut-inner { animation: pfRise .55s .32s both cubic-bezier(.2,.8,.2,1); }
@keyframes pfRise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
