/* /discord-bots/lfg (lfp-). Loaded after builtin_services.css (pa- tokens,
   hero type, buttons, closing band) and all_in_one.css (aio- sections, fact
   tiles, perks, steps, plans, FAQ, related links, the plugin rail), both
   unchanged. Only what is new to this page lives here. */

.lfp { --lfp-blurple: #5865f2; --lfp-grey: #4e5058; --lfp-green: #248046; --lfp-red: #da373c; --lfp-coral: #ff6b6b; --lfp-yellow: #fee75c; --lfp-mint: #72fac0; }

.lfp-k { font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--yb-muted); }
.lfp-hash { color: var(--yb-muted); font-weight: 700; margin-right: 0.2rem; }

/* Discord's button colours, the same in both themes as in the app. */
.lfp-btn { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.72rem; font-weight: 500; line-height: 1; color: #fff; border-radius: 4px; padding: 0.42rem 0.66rem; white-space: nowrap; }
.lfp-btn-primary { background: var(--lfp-blurple); }
.lfp-btn-secondary { background: var(--lfp-grey); }
.lfp-btn-success { background: var(--lfp-green); }
.lfp-btn-danger { background: var(--lfp-red); }
.lfp-btn-row { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.5rem; }

/* A Discord window: channel header, one bot message, an embed. */
.lfp-win { margin: 0; background: var(--yb-void); border: 1px solid var(--yb-border); border-radius: 12px; overflow: hidden; box-shadow: 0 22px 60px rgba(0,0,0,0.28); min-width: 0; }
.lfp-chan { display: flex; align-items: center; font-weight: 600; font-size: 0.84rem; color: var(--yb-text); padding: 0.55rem 0.85rem; border-bottom: 1px solid var(--yb-border); background: var(--yb-overlay-soft); }
.lfp-dm { font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--yb-muted); font-weight: 400; }
.lfp-msg { padding: 0.7rem 0.85rem 0.85rem; min-width: 0; }
.lfp-msg-head { display: flex; align-items: center; gap: 0.45rem; font-size: 0.84rem; margin-bottom: 0.45rem; }
.lfp-msg-head b { font-weight: 600; color: var(--yb-text); }
.lfp-msg-av { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--yb-depth); border: 1px solid var(--yb-gold-dim); overflow: hidden; flex: none; }
.lfp-msg-av img { width: 76%; height: auto; display: block; }
.lfp-content { font-size: 0.8rem; line-height: 1.55; color: var(--yb-text); margin: 0 0 0.5rem; }
.lfp-embed { border-left: 4px solid var(--yb-border2); background: var(--yb-depth); border-radius: 4px; padding: 0.55rem 0.8rem 0.6rem; display: grid; gap: 0.42rem; min-width: 0; }
.lfp-embed-coral { border-left-color: var(--lfp-coral); }
.lfp-embed-blurple { border-left-color: var(--lfp-blurple); }
.lfp-embed-yellow { border-left-color: var(--lfp-yellow); }
.lfp-embed-title { font-weight: 700; font-size: 0.88rem; line-height: 1.35; color: var(--yb-text); }
.lfp-embed-desc { font-size: 0.76rem; line-height: 1.5; color: var(--yb-muted); }
.lfp-embed-desc b { color: var(--yb-text); }
.lfp-ef-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.4rem 0.7rem; }
.lfp-ef-row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lfp-ef { display: flex; flex-direction: column; gap: 0.12rem; min-width: 0; }
.lfp-ef-k { font-size: 0.68rem; font-weight: 700; color: var(--yb-text); }
.lfp-ef-v { font-size: 0.74rem; line-height: 1.45; color: var(--yb-muted); overflow-wrap: anywhere; }
.lfp-ef-v b { color: var(--yb-text); }
.lfp-roster, .lfp-timing, .lfp-poll { display: flex; flex-direction: column; gap: 0.12rem; }
.lfp-need { color: var(--yb-text); }
.lfp-ts { color: var(--yb-text); background: var(--yb-overlay-soft); border-radius: 3px; padding: 0 3px; }
.lfp-link { color: #00a8fc; }
.lfp-mention { color: #a5b4fc; background: rgba(88,101,242,0.16); border-radius: 3px; padding: 0 2px; }

/* A Discord select menu, closed. */
.lfp-select { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; font-size: 0.76rem; color: var(--yb-muted); background: var(--yb-depth); border: 1px solid var(--yb-border2); border-radius: 5px; padding: 0.45rem 0.6rem; margin-top: 0.55rem; }
.lfp-select svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Hero stage: the listing, its open role menu and the mascot ---- */
.lfp-stage { position: relative; margin: 0; justify-self: end; width: 100%; max-width: 560px; padding-top: 92px; }
.lfp-bot { position: absolute; top: -48px; right: -30px; width: 250px; height: auto; z-index: 0; pointer-events: none; filter: drop-shadow(0 18px 30px rgba(0,0,0,0.42)); }
.lfp-listing { position: relative; z-index: 1; width: 86%; }
.lfp-listing .lfp-btn { font-size: 0.66rem; padding: 0.38rem 0.5rem; }
.lfp-menu { position: absolute; z-index: 2; right: -8px; bottom: 206px; width: 46%; background: var(--yb-abyss); border: 1px solid var(--yb-gold-dim); border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px rgba(59,130,246,0.1), 0 20px 50px rgba(37,99,235,0.24); transform: rotate(1deg); }
.lfp-menu-head { font-size: 0.72rem; color: var(--yb-muted); padding: 0.5rem 0.7rem; border-bottom: 1px solid var(--yb-border); background: var(--yb-depth); }
.lfp-options { list-style: none; margin: 0; padding: 0.25rem; display: grid; gap: 1px; }
.lfp-options li { display: flex; align-items: flex-start; gap: 0.5rem; padding: 0.45rem 0.5rem; border-radius: 5px; }
.lfp-opt-on { background: var(--yb-overlay-soft); }
.lfp-opt-ic { font-size: 0.95rem; line-height: 1.2; }
.lfp-opt-t { display: flex; flex-direction: column; gap: 0.08rem; min-width: 0; }
.lfp-opt-t b { font-size: 0.8rem; font-weight: 600; color: var(--yb-text); }
.lfp-opt-t span { font-size: 0.7rem; color: var(--yb-muted); }

/* ---- Cards ---- */
.lfp-cards { display: grid; gap: 0.8rem; margin-top: 1.3rem; }
.lfp-cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lfp-cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lfp-cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lfp-card { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; background: var(--yb-abyss); border: 1px solid var(--yb-border); border-radius: 12px; padding: 1rem 1.05rem 1.1rem; }
.lfp-card-ic { width: 34px; height: 34px; flex: none; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: var(--yb-cyan-bg); border: 1px solid var(--yb-cyan-dim); color: var(--yb-cyan); margin-bottom: 0.2rem; }
.lfp-card-ic svg { width: 17px; height: 17px; }
.lfp-card-t { font-family: var(--disp); font-weight: 600; font-size: 1rem; line-height: 1.25; color: var(--yb-text); }
.lfp-card-x { font-size: 0.86rem; line-height: 1.56; color: var(--yb-muted); }

/* ---- Split sections: a mock beside a perk list ---- */
.lfp-split { align-items: start; }
.lfp-fig { margin: 0; min-width: 0; }
.lfp-stack { display: grid; gap: 0.9rem; min-width: 0; }
.lfp-stack .lfp-fig-cap { margin-top: 0; }
.lfp-fig-cap { font-size: 0.84rem; line-height: 1.55; color: var(--yb-muted); margin-top: 0.75rem; }

/* ---- 01 The ready-made templates ---- */
.lfp-tpl { margin: 0; background: var(--yb-void); border: 1px solid var(--yb-border2); border-radius: 12px; padding: 0.95rem 1rem 0.85rem; box-shadow: 0 22px 60px rgba(0,0,0,0.24); min-width: 0; }
.lfp-tpl-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0.6rem; }
.lfp-tpl-n { font-family: var(--disp); font-weight: 700; font-size: 1.4rem; color: var(--yb-text); }
.lfp-tpl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; }
.lfp-tpl-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.1rem 0.55rem; align-items: center; padding: 0.45rem 0.6rem; border-radius: 7px; background: var(--yb-overlay-soft); border: 1px solid var(--yb-border); }
.lfp-tpl-ic { grid-row: span 2; font-size: 1.05rem; }
.lfp-tpl-list b { font-size: 0.86rem; font-weight: 600; color: var(--yb-text); }
.lfp-tpl-size { font-family: var(--mono); font-size: 0.66rem; color: var(--yb-cyan); justify-self: end; }
.lfp-tpl-roles { grid-column: 2 / -1; font-size: 0.76rem; color: var(--yb-muted); }
.lfp-tpl-cap { font-size: 0.8rem; line-height: 1.5; color: var(--yb-muted); margin-top: 0.7rem; }

/* ---- 03 Ready check and rating, side by side ---- */
.lfp-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; align-items: start; }

/* ---- 05 Visibilities and the network steps ---- */
.lfp-levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; }
.lfp-level { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; background: var(--yb-abyss); border: 1px solid var(--yb-border); border-radius: 12px; padding: 1rem 1.05rem 1.1rem; }
.lfp-level-network { border-color: var(--yb-cyan-dim); }
.lfp-level-public { border-color: var(--yb-gold-dim); box-shadow: 0 0 0 1px rgba(59,130,246,0.08), 0 14px 36px rgba(37,99,235,0.14); }
.lfp-level-x { font-size: 0.86rem; line-height: 1.56; color: var(--yb-muted); margin: 0; }
.lfp-netsteps { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; }
.lfp-netsteps li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.88rem; line-height: 1.5; color: var(--yb-text); padding: 0.75rem 0.9rem; border: 1px dashed var(--yb-border2); border-radius: 10px; }
.lfp-netstep-n { flex: none; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 0.7rem; font-weight: 700; color: var(--yb-cyan); background: var(--yb-cyan-bg); border: 1px solid var(--yb-cyan-dim); }

/* ---- 06 and 07 Chip lists ---- */
.lfp-chips-block { display: grid; gap: 0.55rem; align-content: start; background: var(--yb-abyss); border: 1px solid var(--yb-border); border-radius: 12px; padding: 1rem 1.1rem 1.05rem; }
.lfp-chips-h { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--yb-cyan); }
.lfp-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.lfp-chips li { font-size: 0.82rem; color: var(--yb-text); background: var(--yb-cyan-bg); border: 1px solid var(--yb-cyan-dim); border-radius: 6px; padding: 0.24rem 0.6rem; }
.lfp-chips-soft li { background: var(--yb-overlay-soft); border-color: var(--yb-border2); }
.lfp-chips-note { font-size: 0.84rem; line-height: 1.55; color: var(--yb-muted); margin: 0.2rem 0 0; }
.lfp-reuse { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.8rem; margin-top: 1rem; }

/* ---- Closing band ---- */
.lfp-close .aio-close-art { max-width: 320px; }

/* ---- Light theme ---- */
[data-theme="light"] .lfp-win, [data-theme="light"] .lfp-tpl { box-shadow: 0 16px 40px rgba(30,41,80,0.12); }
[data-theme="light"] .lfp-menu { box-shadow: 0 0 0 1px rgba(37,99,235,0.08), 0 14px 34px rgba(37,99,235,0.16); }
[data-theme="light"] .lfp-bot { filter: drop-shadow(0 14px 22px rgba(20,30,60,0.22)); }
[data-theme="light"] .lfp-btn-secondary { background: #6d6f78; }
[data-theme="light"] .lfp-embed-yellow { border-left-color: #e5c100; }
[data-theme="light"] .lfp-link { color: #006ce7; }
[data-theme="light"] .lfp-mention { color: #4338ca; background: rgba(88,101,242,0.12); }
[data-theme="light"] .lfp-chips-h { color: var(--yb-gold); }

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .lfp-cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .lfp-stage { justify-self: center; max-width: 580px; }
  .lfp-duo { grid-template-columns: 1fr; }
  .lfp-cards-3, .lfp-levels, .lfp-netsteps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lfp-levels .lfp-level:last-child, .lfp-netsteps li:last-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  /* Mono labels: legible floor on a phone, nothing below ~10px. */
  .lfp-k, .lfp-dm, .lfp-chips-h, .lfp-tpl-size { font-size: 0.64rem; }
}
@media (max-width: 560px) {
  .lfp-stage { padding-top: 150px; }
  .lfp-bot { width: 200px; top: -16px; right: -6px; }
  .lfp-listing { width: 100%; }
  .lfp-menu { position: relative; right: auto; bottom: auto; width: 82%; margin: 12px 0 0 auto; transform: none; }
  .lfp-ef-row { grid-template-columns: 1fr 1fr; }
  .lfp-cards-2, .lfp-cards-3, .lfp-cards-4, .lfp-levels, .lfp-netsteps, .lfp-reuse { grid-template-columns: 1fr; }
  .lfp-levels .lfp-level:last-child, .lfp-netsteps li:last-child { grid-column: auto; }
}
