/* TechFace v3: Bangladesh IT community pages (landing, about, members, app) + app menu.
   Plain CSS on top of app.css / ui.css variables, so no Tailwind rebuild is needed. Light + dark. */
:root { --bd-green: #006a4e; --bd-red: #f42a41; }

/* ---------- account menu: Apps section ---------- */
.tf-menu-apps { border-top: 1px solid var(--tf-line); margin-top: 4px; padding-top: 4px; }
.tf-menu-label { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--tf-muted); padding: 6px 12px 2px; margin: 0; }
.tf-menu-apps .menu-item svg { color: #3ddc84; }
html.dark .tf-menu-apps .menu-item svg { color: #3ddc84; }
#user-menu { max-height: calc(100vh - 72px); overflow-y: auto; }

/* ---------- shared blocks ---------- */
.cx-wrap { max-width: 72rem; margin: 0 auto; }
.cx-narrow { max-width: 48rem; margin: 0 auto; }
.cx-section { margin-top: 28px; }
.cx-h2 { font-size: clamp(20px, 2.6vw, 26px); font-weight: 800; letter-spacing: -.01em; margin: 0 0 6px; }
.cx-lead { color: var(--tf-muted); font-size: 15px; margin: 0 0 16px; max-width: 46rem; }
.cx-grid { display: grid; gap: 14px; }
.cx-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cx-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cx-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .cx-grid-3, .cx-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cx-grid-2, .cx-grid-3 { grid-template-columns: minmax(0, 1fr); } }
.cx-card { background: var(--tf-card); border: 1px solid var(--tf-line); border-radius: 16px; padding: 18px; box-shadow: var(--tf-shadow); min-width: 0; }
.cx-card h3 { margin: 10px 0 4px; font-size: 16px; font-weight: 800; }
.cx-card p { margin: 0; color: var(--tf-muted); font-size: 14px; line-height: 1.55; }
.cx-ico { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--tf-grad); }
.cx-ico.green { background: linear-gradient(135deg, #0f9d58, var(--bd-green)); }
.cx-ico.red { background: linear-gradient(135deg, #ff6b6b, var(--bd-red)); }
.cx-ico.amber { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.cx-ico.slate { background: linear-gradient(135deg, #475569, #0f172a); }
.cx-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--tf-soft); color: var(--tf-text); font-size: 13px; font-weight: 600; text-decoration: none; border: 1px solid transparent; white-space: nowrap; }
.cx-chip:hover { border-color: var(--tf-blue); color: var(--tf-blue); }
.cx-chip.on { background: var(--tf-blue); color: #fff; }
.cx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cx-muted { color: var(--tf-muted); }
.cx-btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cx-btn-light { background: #fff; color: #0b5ed7; }
.cx-btn-light:hover { background: #eef4ff; }
.cx-btn-outline { border: 1px solid rgba(255, 255, 255, .6); color: #fff; }
.cx-btn-outline:hover { background: rgba(255, 255, 255, .12); }
.cx-btn-lg { padding: 12px 22px; font-size: 15px; border-radius: 12px; }

/* ---------- landing hero ---------- */
.cx-hero { position: relative; overflow: hidden; border-radius: 24px; color: #fff; padding: clamp(24px, 5vw, 56px); background: radial-gradient(1200px 400px at 110% -10%, rgba(255, 255, 255, .18), transparent 60%), linear-gradient(135deg, #1255c9 0%, #1877f2 45%, #6d4aff 100%); box-shadow: 0 20px 60px rgba(24, 119, 242, .25); }
.cx-hero::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle at 50% 50%, var(--bd-red) 0 34%, transparent 35%), var(--bd-green); opacity: .22; }
.cx-hero > * { position: relative; z-index: 1; }
.cx-hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 28px; align-items: center; }
@media (max-width: 900px) { .cx-hero-grid { grid-template-columns: minmax(0, 1fr); } .cx-hero-side { display: none; } }
.cx-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: 13px; font-weight: 700; }
.cx-flag { width: 18px; height: 12px; border-radius: 2px; background: radial-gradient(circle at 45% 50%, var(--bd-red) 0 28%, transparent 30%), var(--bd-green); display: inline-block; }
.cx-hero h1 { font-size: clamp(28px, 4.6vw, 48px); line-height: 1.08; font-weight: 900; letter-spacing: -.02em; margin: 14px 0 10px; }
.cx-hero h1 span { background: linear-gradient(90deg, #fff, #c7d2fe); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cx-hero p.cx-sub { font-size: clamp(15px, 1.8vw, 18px); color: rgba(255, 255, 255, .92); max-width: 38rem; margin: 0; }
.cx-hero-bn { margin-top: 8px !important; font-size: 15px !important; color: rgba(255, 255, 255, .85) !important; }
.cx-stats { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 26px; }
.cx-stats b { display: block; font-size: 24px; font-weight: 900; }
.cx-stats span { font-size: 12px; color: rgba(255, 255, 255, .8); text-transform: uppercase; letter-spacing: .05em; }
.cx-hero-side { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); border-radius: 18px; padding: 16px; backdrop-filter: blur(6px); }
.cx-mini { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .1); margin-bottom: 8px; color: #fff; text-decoration: none; }
.cx-mini:last-child { margin-bottom: 0; }
.cx-mini b { display: block; font-size: 14px; }
.cx-mini small { display: block; font-size: 12px; color: rgba(255, 255, 255, .78); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 16rem; }

/* ---------- topic cloud / skill tiles ---------- */
.cx-topic { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: var(--tf-card); border: 1px solid var(--tf-line); text-decoration: none; color: var(--tf-text); transition: transform .15s var(--tf-ease), border-color .15s; }
.cx-topic:hover { transform: translateY(-2px); border-color: var(--tf-blue); }
.cx-topic b { font-size: 15px; display: block; }
.cx-topic small { color: var(--tf-muted); font-size: 12px; }

/* ---------- FAQ ---------- */
.cx-faq details { background: var(--tf-card); border: 1px solid var(--tf-line); border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; }
.cx-faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.cx-faq summary::-webkit-details-marker { display: none; }
.cx-faq summary::after { content: "+"; font-weight: 800; color: var(--tf-blue); }
.cx-faq details[open] summary::after { content: "–"; }
.cx-faq details p { margin: 10px 0 0; color: var(--tf-muted); font-size: 14px; line-height: 1.6; }

/* ---------- CTA band ---------- */
.cx-cta { border-radius: 20px; padding: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: linear-gradient(135deg, #0f172a, #1e293b); color: #fff; }
.cx-cta h2 { margin: 0; font-size: 22px; font-weight: 800; }
.cx-cta p { margin: 4px 0 0; color: #cbd5e1; font-size: 14px; }

/* ---------- members directory ---------- */
.cx-filter { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; }
@media (max-width: 760px) { .cx-filter { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .cx-filter > :first-child { grid-column: 1 / -1; } }
.cx-person { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.cx-person .name { font-weight: 800; color: var(--tf-text); text-decoration: none; }
.cx-person .name:hover { text-decoration: underline; }
.cx-person .head { font-size: 13px; color: var(--tf-muted); min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cx-person .cx-chips { justify-content: center; }
.cx-person .cx-chip { font-size: 11px; padding: 3px 9px; }
.cx-otw { font-size: 11px; font-weight: 800; color: #15803d; background: #dcfce7; border-radius: 999px; padding: 2px 9px; }
html.dark .cx-otw { background: rgba(34, 197, 94, .15); color: #4ade80; }
.cx-pager { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }

/* ---------- app page ---------- */
.cx-app-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 24px; align-items: center; }
@media (max-width: 760px) { .cx-app-hero { grid-template-columns: minmax(0, 1fr); } .cx-phone { display: none; } }
.cx-phone { justify-self: center; width: 230px; height: 440px; border-radius: 36px; background: #0f172a; padding: 12px; box-shadow: 0 30px 60px rgba(15, 23, 42, .35); }
.cx-phone-screen { width: 100%; height: 100%; border-radius: 26px; overflow: hidden; background: var(--tf-bg); display: flex; flex-direction: column; }
.cx-phone-bar { background: #1877f2; color: #fff; padding: 14px 12px 10px; font-weight: 800; display: flex; align-items: center; gap: 8px; font-size: 14px; }
.cx-phone-bar img { border-radius: 8px; }
.cx-phone-post { background: var(--tf-card); margin: 8px; border-radius: 12px; padding: 10px; font-size: 11px; color: var(--tf-muted); }
.cx-phone-post b { color: var(--tf-text); font-size: 12px; display: block; margin-bottom: 4px; }
.cx-phone-line { height: 7px; border-radius: 4px; background: var(--tf-line); margin-top: 6px; }
.cx-steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.cx-steps li { counter-increment: s; position: relative; padding: 0 0 14px 42px; font-size: 14px; line-height: 1.55; }
.cx-steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 50%; background: var(--tf-blue); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.cx-installed { display: none; }
html.tf-standalone .cx-installed { display: block; }
html.tf-standalone .cx-not-installed { display: none; }
.cx-badge-android { display: inline-flex; align-items: center; gap: 8px; background: #000; color: #fff; border-radius: 12px; padding: 10px 16px; font-weight: 700; text-decoration: none; }
.cx-badge-android svg { color: #3ddc84; }

/* ---------- home sidebar app card ---------- */
.cx-app-card { background: linear-gradient(135deg, #0f172a, #1e3a8a); color: #fff; border: 0; }
.cx-app-card p { color: #cbd5e1; }
.cx-app-card .btn { width: 100%; margin-top: 10px; }

/* ---------- prose (about, legal) ---------- */
.cx-prose { font-size: 15px; line-height: 1.7; }
.cx-prose h2 { font-size: 20px; font-weight: 800; margin: 22px 0 6px; }
.cx-prose p { margin: 0 0 12px; }
.cx-prose ul { padding-left: 20px; margin: 0 0 12px; }
.cx-prose li { margin-bottom: 4px; }
@media (max-width: 480px) {
  .cx-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .cx-stats b { font-size: 20px; }
  .cx-stats span { font-size: 10px; }
}
