/* Kylo forums index */
.kf { --kf-card: rgb(var(--theme-area_background, 26, 29, 36)); --kf-line: rgba(255, 255, 255, .06);
  --kf-accent: rgb(var(--theme-brand_primary, 13, 97, 243)); --kf-muted: #8b93a7; color: #fff; margin-bottom: 30px; }

.kf-card { position: relative; overflow: hidden; background: var(--kf-card); border-radius: 14px; margin-bottom: 10px;
  display: grid; grid-template-columns: 1fr; }
.kf-card--cols2 { grid-template-columns: 1fr 1fr; }
.kf-card--cols2 .kf-forum + .kf-forum { border-left: 1px solid var(--kf-line); }
/* Big faded corner icons (Flaticon, hosted locally): top of a 200px square, cut off by the card's bottom edge. */
.kf-card__img { position: absolute; right: 0; bottom: 0; width: 200px; height: 150px; background-size: cover;
  background-repeat: no-repeat; filter: invert(1) grayscale(100%); opacity: .04; pointer-events: none; }
.kf-card__img--megaphone { height: 155px; background-image: url('/images/forums/megaphone.png'); }
.kf-card__img--chat { height: 140px; background-image: url('/images/forums/chat.png'); }
.kf-card__img--group { height: 145px; background-image: url('/images/forums/group.png'); }
.kf-card__img--party { height: 150px; background-image: url('/images/forums/party.png'); }
.kf-forum { z-index: 1; }

.kf-forum { position: relative; padding: 30px 34px; display: flex; gap: 24px; align-items: center; min-height: 120px; }
.kf-forum--subs { justify-content: space-between; }
.kf-forum__main { min-width: 0; }
.kf-forum__title { display: inline-flex; align-items: center; gap: 14px; color: #fff !important; text-decoration: none;
  font: 700 23px/1.2 Inter, sans-serif; }
.kf-forum__title i { color: var(--kf-accent); font-size: 22px; }
.kf-forum__title:hover { color: #cfd8ea !important; }
.kf-forum__last { margin-top: 14px; color: var(--kf-muted); font: 600 13px/1.4 Inter, sans-serif; }

.kf-subs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 6px 60px; flex: 0 1 520px; }
.kf-subs a { display: flex; align-items: center; gap: 10px; color: #fff !important; text-decoration: none;
  font: 600 14px/1.5 Inter, sans-serif; white-space: nowrap; }
.kf-subs a:hover { color: var(--kf-accent) !important; }
.kf-card--cols2 .kf-forum--subs { flex-direction: column; align-items: flex-start; }
.kf-card--cols2 .kf-subs { flex-basis: auto; gap: 6px 30px; }

.kf-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 12px; }
.kf-stat { display: flex; align-items: center; gap: 18px; background: var(--kf-card); border-radius: 12px; padding: 18px 20px; }
.kf-stat__icon { color: #cfd3dc; font-size: 18px; width: 22px; text-align: center; }
.kf-stat__dot { width: 18px; height: 18px; border-radius: 50%; background: #2abd69; margin: 0 2px; flex: none; }
.kf-stat strong { display: block; font: 700 16px/1.2 Inter, sans-serif; color: #fff; }
.kf-stat span { color: var(--kf-muted); font: 500 13px/1.4 Inter, sans-serif; }

.kf-toast { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 10000; background: #22262f;
  color: #fff; border: 1px solid var(--kf-line); border-radius: 10px; padding: 12px 18px; font: 600 14px/1.4 Inter, sans-serif;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }

@media (max-width: 979px) {
  .kf-forum--subs { flex-direction: column; align-items: flex-start; }
  .kf-subs { flex-basis: auto; width: 100%; gap: 6px 24px; }
  .kf-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .kf-card--cols2 { grid-template-columns: 1fr; }
  .kf-card--cols2 .kf-forum + .kf-forum { border-left: 0; border-top: 1px solid var(--kf-line); }
  .kf-forum { padding: 22px 20px; min-height: 0; }
  .kf-forum__title { font-size: 19px; gap: 10px; }
  .kf-subs { grid-template-columns: 1fr 1fr; }
  .kf-subs a { white-space: normal; font-size: 13px; }
  .kf-stats { gap: 10px; }
  .kf-stat { padding: 14px; gap: 12px; }
  .kf-toast { bottom: 80px; width: calc(100% - 32px); text-align: center; }
}

/* Newest topic line on the index */
.kf-forum__last a { color: #c9cfdb !important; text-decoration: none; }
.kf-forum__last a:hover { color: #fff !important; }
.kf-forum__last i { margin: 0 6px 0 10px; color: var(--kf-muted); }

/* Topic list (/forums/forum/) */
.kf-listHead { padding: 22px 26px; margin-bottom: 10px; border-radius: 14px; }
.kf-listTitle { margin: 0; color: #fff; font: 700 24px/1.2 Inter, sans-serif; }
.kf-listCount { margin: 6px 0 0; color: var(--kf-muted); font: 500 13px/1.4 Inter, sans-serif; }
.kf-list { border-radius: 14px; overflow: hidden; }
.kf-row { display: flex; align-items: center; gap: 16px; padding: 16px 24px; text-decoration: none !important;
  border-top: 1px solid var(--kf-line); transition: background .15s; }
.kf-row:first-child { border-top: 0; }
.kf-row:hover { background: rgba(255, 255, 255, .03); }
.kf-row__avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex: none; }
.kf-row__main { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.kf-row__title { color: #fff; font: 700 16px/1.35 Inter, sans-serif; }
.kf-row__meta { color: var(--kf-muted); font: 500 13px/1.4 Inter, sans-serif; }
.kf-row__meta strong { color: #c9cfdb; }
.kf-row__ago { color: var(--kf-muted); font: 500 13px/1 Inter, sans-serif; white-space: nowrap; }
.kf-pin { display: inline-flex; align-items: center; gap: 5px; margin-right: 8px; padding: 3px 8px; border-radius: 6px;
  background: rgba(13, 97, 243, .15); color: #6ea1ff; font: 700 11px/1 Inter, sans-serif; vertical-align: 2px; }
.kf-empty { padding: 30px 24px; color: var(--kf-muted); font: 500 14px/1.5 Inter, sans-serif; text-align: center; }

/* Topic page (/forums/topic/): Invision post layout from the theme CSS, plus the post body */
.kf--topic .kf-share { cursor: pointer; border: 0; }
.kf-post { color: #fff; }
.kf-post p { margin: 0 0 14px; }
.kf-post h2 { font-size: 20px; margin: 4px 0 14px; color: #fff; }
.kf-post h3 { font-size: 17px; margin: 4px 0 12px; color: #fff; }
.kf-post h4 { font-size: 15px; margin: 4px 0 10px; color: #fff; }
.kf-post ul, .kf-post ol { margin: 0 0 14px; padding-left: 32px; }
.kf-post li { margin: 4px 0; }
.kf-post a { color: rgb(var(--theme-brand_primary, 13, 97, 243)) !important; }
.kf-post a:hover { text-decoration: underline; }
.kf-post img { display: block; max-width: 100%; height: auto; border-radius: 10px; margin: 18px auto; }
.kf-post blockquote { margin: 0 0 14px; padding: 12px 16px; border-left: 3px solid rgb(var(--theme-brand_primary, 13, 97, 243));
  background: rgba(255, 255, 255, .03); border-radius: 0 8px 8px 0; }
.kf-post hr { border: 0; border-top: 1px solid var(--kf-line); margin: 18px 0; }
@media (max-width: 767px) {
  .kf-row { padding: 14px 16px; gap: 12px; }
  .kf-row__ago { display: none; }
}

/* Page links on topic lists */
.kf-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0; }
.kf-page { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 36px; height: 36px; padding: 0 10px;
  border-radius: 8px; background: var(--kf-card); color: #c9cfdb !important; font: 600 13px/1 Inter, sans-serif;
  text-decoration: none !important; transition: background .15s, color .15s; }
a.kf-page:hover { background: rgba(var(--theme-area_background_lighter, 44, 49, 61), 1); color: #fff !important; }
.kf-page.is-active { background: var(--kf-accent); color: #fff !important; }
.kf-page.is-disabled { opacity: .4; }
.kf-page--gap { background: transparent; min-width: 20px; padding: 0; }
.kf-page i { font-size: 11px; }
.kf-pager__of { margin-left: auto; color: var(--kf-muted); font: 500 13px/1 Inter, sans-serif; }
.kf-note { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px 24px;
  border-top: 1px solid var(--kf-line); color: var(--kf-muted); font: 600 13px/1.5 Inter, sans-serif; text-align: center; }
@media (max-width: 767px) {
  .kf-pager__of { width: 100%; margin: 4px 0 0; }
  .kf-page--nav { padding: 0 8px; }
}

/* Buttons in posts (dashboard editor "Button" tool), same look as the Discord button on the SEO pages */
.kf-post a.kf-button { display: inline-flex; align-items: center; gap: 10px; margin: 8px 0 14px; padding: 14px 28px;
  border-radius: 6px; background: rgb(var(--theme-brand_primary, 13, 97, 243)); color: #fff !important;
  font: 700 16px/1 Inter, sans-serif; letter-spacing: .02em; text-decoration: none !important; transition: filter .15s, transform .15s; }
.kf-post a.kf-button:hover { filter: brightness(1.1); text-decoration: none !important; }
/* The page's ".ipsType_richText a:hover { color: #0d61f3 !important }" would turn the label blue on the blue button. */
.kf-post a.kf-button:hover, .kf-post a.kf-button:focus { color: #fff !important; }
.kf-post a.kf-button--discord { background: #5865F2; }
.kf-post a.kf-button--discord::before { content: "\f392"; font: var(--fa-font-brands, normal 400 1em/1 "Font Awesome 6 Brands");
  font-size: 22px; line-height: 1; }

/* Product showcases: category chips, video grid, player */
.kf-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.kf-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--kf-card);
  color: #c9cfdb !important; font: 600 13px/1 Inter, sans-serif; text-decoration: none !important; transition: background .15s, color .15s; }
.kf-chip:hover { color: #fff !important; background: rgba(var(--theme-area_background_lighter, 44, 49, 61), 1); }
.kf-chip.is-active { background: var(--kf-accent); color: #fff !important; }
.kf-chip__n { padding: 3px 7px; border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: 11px; }
.kf-chip.is-active .kf-chip__n { background: rgba(255, 255, 255, .2); }
.kf-vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin: 10px 0; }
.kf-vcard { display: flex; flex-direction: column; overflow: hidden; border-radius: 12px; background: var(--kf-card);
  text-decoration: none !important; transition: transform .15s, box-shadow .15s; }
.kf-vcard:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .35); }
.kf-vcard__thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #0e1014; overflow: hidden; }
.kf-vcard__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kf-vcard__play { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: rgba(13, 97, 243, .9); color: #fff; font-size: 18px;
  opacity: .9; transition: transform .15s, opacity .15s; }
.kf-vcard:hover .kf-vcard__play { transform: scale(1.08); opacity: 1; }
.kf-vcard__play i { margin-left: 3px; }
.kf-vcard__body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; }
.kf-vcard__title { color: #fff; font: 700 15px/1.35 Inter, sans-serif; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kf-vcard__tags, .kf-topicTags { display: flex; flex-wrap: wrap; gap: 6px; }
.kf-topicTags { margin-top: 10px; }
.kf-tag { display: inline-block; padding: 4px 9px; border-radius: 6px; background: rgba(13, 97, 243, .15); color: #8fb6ff !important;
  font: 700 11px/1 Inter, sans-serif; text-decoration: none !important; }
a.kf-tag:hover { background: rgba(13, 97, 243, .3); }
.kf-vcard__meta { color: var(--kf-muted); font: 500 12px/1.4 Inter, sans-serif; }
.kf-vcard__meta strong { color: #c9cfdb; }
.kf-post .kf-player { position: relative; width: 100%; max-width: 960px; aspect-ratio: 16 / 9; margin: 4px 0 18px; border-radius: 10px;
  overflow: hidden; background: #000; }
.kf-post .kf-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 767px) { .kf-vgrid { grid-template-columns: 1fr; } }

/* Reseller panel sandbox in posts (a "kf-demo" link, see embedDemos in lib/forums-render.js): the live demo panel,
   clickable in place, under a "sandbox preview" banner. js/forum-embeds.js adds Fullscreen. */
.kf-post .kf-sbx { position: relative; margin: 10px 0 26px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 14px; overflow: hidden;
  background: #151821; box-shadow: 0 30px 70px -24px rgba(0, 0, 0, .7); }
.kf-post .kf-sbx__banner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 16px; padding: 9px 16px;
  background: linear-gradient(90deg, #0d61f3, #3d82ff); color: rgba(255, 255, 255, .9); font: 500 12px/1.4 Inter, sans-serif;
  letter-spacing: .12em; text-transform: uppercase; text-align: center; }
.kf-post .kf-sbx__banner a.kf-sbx__full { display: inline-flex; align-items: center; gap: 6px; color: #fff !important; font-weight: 800;
  text-decoration: none !important; cursor: pointer; }
.kf-post .kf-sbx__banner a.kf-sbx__full:hover, .kf-post .kf-sbx__banner a.kf-sbx__full:focus { color: #fff !important; text-decoration: underline !important; }
.kf-post .kf-sbx__frame { display: block; width: 100%; height: clamp(520px, 78vh, 860px); border: 0; background: #151821; }
/* Fullscreen (the Fullscreen button): banner and bar stay on top, the panel fills the rest of the screen. */
.kf-post .kf-sbx:fullscreen { display: flex; flex-direction: column; margin: 0; border: 0; border-radius: 0; }
.kf-post .kf-sbx:fullscreen .kf-sbx__frame { flex: 1; height: auto; }
.kf-post .kf-sbx:-webkit-full-screen { display: flex; flex-direction: column; width: 100%; height: 100%; margin: 0; border: 0; border-radius: 0; }
.kf-post .kf-sbx:-webkit-full-screen .kf-sbx__frame { flex: 1; height: auto; }
@media (max-width: 767px) {
  .kf-post .kf-sbx { border-radius: 10px; }
  .kf-post .kf-sbx__banner { padding: 8px 12px; font-size: 10.5px; letter-spacing: .08em; }
  .kf-post .kf-sbx__frame { height: clamp(460px, 72vh, 680px); }
}

/* Forum icons on /forums (lib/forums.js `icon`): quiet grey marks that turn blue with their name. */
.kf-subs a i { flex: none; width: 1.25em; font-size: .93em; text-align: center; color: var(--kf-muted, #8b93a7); }
.kf-subs a:hover i,
.kf-subs a:focus-visible i { color: var(--kf-accent, #0D61F3); }
