/* ==========================================================================
   Front-end (public pages) design system — Cộng Đồng LGBT
   Scope: everything lives under .fe so app (logged-in) pages are unaffected.
   ========================================================================== */

.fe {
    --brand: #ac2eac;
    --pink: #ff3d8b;
    --orange: #ff9a3c;
    --night: #1a0b2e;
    --night-2: #2a0f45;
    --ink: #241a2e;
    --muted: #6b6276;
    --soft: #fbf6fd;
    --line: #efe5f3;
    --grad: linear-gradient(135deg, #ac2eac 0%, #ff3d8b 60%, #ff9a3c 100%);
    --rainbow: linear-gradient(90deg, #e40303, #ff8c00, #ffed00, #008026, #24408e, #732982);
    --radius: 22px;
    --shadow: 0 12px 34px rgba(42, 15, 69, .08);
    --shadow-lg: 0 22px 48px rgba(42, 15, 69, .16);
    font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--ink);
    background: var(--soft);
    font-size: 16px;
    line-height: 1.7;
    overflow: hidden;
    min-height: 60vh;
}
.fe h1, .fe h2, .fe h3, .fe h4, .fe h5, .fe h6, .fe .h1, .fe .h3, .fe .h4, .fe .h5, .fe .h6 { font-family: inherit; }
.fe a { transition: color .2s, background-color .2s, border-color .2s, box-shadow .2s, transform .2s; }
.fe a:hover { text-decoration: none; }
.fe a:not(.btn) { color: var(--brand); }
.fe a:not(.btn):hover { color: var(--pink); }
@keyframes fe-float { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(26px,-22px) scale(1.07); } }

/* ---------- Page hero ---------- */
.fe-hero {
    position: relative; color: #fff; text-align: center;
    padding: 64px 0 104px;
    background: radial-gradient(ellipse at top left, #3d1466 0%, transparent 55%), linear-gradient(160deg, var(--night-2) 0%, var(--night) 75%);
}
.fe-hero .container { position: relative; z-index: 1; }
.fe-hero::before, .fe-hero::after {
    content: ""; position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none;
    animation: fe-float 14s ease-in-out infinite;
}
.fe-hero::before { width: 360px; height: 360px; background: #ff3d8b; opacity: .45; top: -140px; left: -80px; }
.fe-hero::after { width: 320px; height: 320px; background: #5b5bff; opacity: .35; bottom: -120px; right: 6%; animation-delay: -6s; }
.fe-hero h1, .fe-hero .fe-hero-title {
    color: #fff; font-weight: 800; letter-spacing: -.02em; line-height: 1.2;
    font-size: 2.6rem; margin: 0 auto 12px; max-width: 860px;
}
.fe-hero .fe-lead { color: rgba(255,255,255,.78); font-size: 1.08rem; max-width: 680px; margin: 0 auto; }
.fe-hero .text-danger { color: #fff !important; text-decoration: underline; text-decoration-color: #ffed00; text-decoration-thickness: 4px; text-underline-offset: 6px; }
.fe-eyebrow {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
    padding: 6px 16px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff;
}
.fe-eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--rainbow); }
.fe-hero .fe-eyebrow a { color: #fff !important; }
.fe-hero .fe-eyebrow a:hover { color: #ffd2e6 !important; }
.fe-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 70px; display: block; z-index: 1; }
.fe-wave path { fill: var(--soft); }
.fe-body { position: relative; z-index: 2; margin-top: -56px; padding-bottom: 80px; }
.fe-body-flat { padding: 40px 0 80px; }

/* ---------- Cards ---------- */
.fe-card {
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
    border: 1px solid var(--line); padding: 28px;
}
.fe-card + .fe-card { margin-top: 20px; }
.fe-card-title { font-size: 1.15rem; font-weight: 800; color: var(--ink); margin-bottom: 14px; }

/* ---------- Buttons ---------- */
.fe .btn { font-weight: 700; border-radius: 999px; }
.fe .btn-primary, .fe .fe-btn-glow {
    color: #fff; border: 0; background: var(--grad); background-size: 150% 150%;
    box-shadow: 0 10px 24px rgba(255, 61, 139, .35);
}
.fe .btn-primary:hover, .fe .btn-primary:focus, .fe .fe-btn-glow:hover {
    color: #fff; transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 14px 30px rgba(255, 61, 139, .5);
}
.fe .btn-outline-primary, .fe .btn-outline-info, .fe .btn-outline-dark {
    color: var(--brand); border: 2px solid var(--brand); background: #fff;
}
.fe .btn-outline-primary:hover, .fe .btn-outline-info:hover, .fe .btn-outline-dark:hover { color: #fff; background: var(--brand); border-color: var(--brand); }
.fe .btn:not(.btn-sm):not(.btn-block) { padding: .62rem 1.6rem; }
.fe .btn-sm { padding: .38rem 1rem; }
.fe-btn-ghost { color: #fff !important; border: 2px solid rgba(255,255,255,.55) !important; background: rgba(255,255,255,.06) !important; }
.fe-btn-ghost:hover { color: var(--night) !important; background: #fff !important; }

/* ---------- Section titles ---------- */
.fe-title {
    position: relative; font-size: 1.6rem; font-weight: 800; letter-spacing: -.01em; color: var(--ink);
    padding-bottom: 14px; margin-bottom: 26px;
}
.fe-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 5px; border-radius: 5px; background: var(--rainbow); }
.fe-title.text-center::after { left: 50%; transform: translateX(-50%); }

/* ---------- CTA panel ---------- */
.fe-cta {
    position: relative; overflow: hidden; color: #fff; border-radius: var(--radius);
    padding: 30px; background: var(--grad); box-shadow: 0 22px 48px rgba(172, 46, 172, .3);
}
.fe-cta::after { content: ""; position: absolute; width: 260px; height: 260px; right: -90px; top: -110px; border-radius: 50%; border: 2px solid rgba(255,255,255,.28); }
.fe-cta h3, .fe-cta .fe-cta-title { color: #fff; font-weight: 800; font-size: 1.4rem; line-height: 1.3; }
.fe-cta .btn-primary, .fe-cta .fe-btn-white { background: #fff !important; color: var(--brand) !important; box-shadow: 0 10px 22px rgba(0,0,0,.15); }
.fe-cta .btn-outline-primary { color: #fff; border-color: rgba(255,255,255,.7); background: transparent; }
.fe-cta .btn-outline-primary:hover { background: #fff; color: var(--brand); }

/* ---------- Pills / chips ---------- */
.fe-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.fe-chip, .fe-chips a {
    display: inline-block; padding: 8px 18px; border-radius: 999px; font-weight: 600; font-size: .92rem;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); color: #fff !important;
}
.fe-chips a:hover { background: rgba(255,255,255,.18); }
.fe-chips a.active { background: #fff; color: var(--brand) !important; border-color: #fff; }

/* ---------- Article / prose ---------- */
.fe-prose { font-size: 1.05rem; line-height: 1.85; color: #3a3044; overflow-wrap: break-word; }
.fe-prose p { margin-bottom: 1.1em; }
.fe-prose h2, .fe-prose h3, .fe-prose h4 { color: var(--ink); font-weight: 800; line-height: 1.35; margin: 1.6em 0 .7em; }
.fe-prose h2 { font-size: 1.5rem; }
.fe-prose h3 { font-size: 1.25rem; }
.fe-prose img { max-width: 100%; height: auto !important; border-radius: 14px; }
.fe-prose blockquote { border-left: 4px solid var(--brand); background: var(--soft); padding: 14px 20px; border-radius: 0 14px 14px 0; color: var(--muted); }
.fe-prose ul, .fe-prose ol { padding-left: 1.3em; }
.fe-prose table { width: 100%; max-width: 100%; display: block; overflow-x: auto; }
.fe-prose iframe { max-width: 100%; border-radius: 14px; }

/* ---------- Legacy helpers inside .fe ---------- */
.fe .box-shadow { box-shadow: var(--shadow) !important; border-radius: var(--radius) !important; background: #fff; border: 1px solid var(--line); }
.fe .bg-grey { background: #fff !important; }
.fe .text-info { color: var(--brand) !important; }
.fe .text-primary { color: var(--brand) !important; }

/* ---------- Guest footer ---------- */
.fe-footer { background: var(--night, #1a0b2e); color: rgba(255,255,255,.7); font-size: 14px; position: relative; }
.fe-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, #e40303, #ff8c00, #ffed00, #008026, #24408e, #732982); }
.fe-footer .container { padding-top: 40px; padding-bottom: 28px; }
.fe-footer b { color: #fff; }
.fe-footer a { color: rgba(255,255,255,.85); }
.fe-footer a:hover { color: #ff8cc0; text-decoration: none; }
.fe-footer .fe-footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 18px 0; margin: 18px 0; border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); }
.fe-footer .fe-footer-links a { margin: 0 !important; }

/* ---------- Responsive ---------- */
@media (max-width: 767.98px) {
    .fe-hero { padding: 44px 0 92px; }
    .fe-hero h1, .fe-hero .fe-hero-title { font-size: 1.8rem; }
    .fe-hero .fe-lead { font-size: 1rem; }
    .fe-body { margin-top: -50px; padding-bottom: 56px; }
    .fe-card { padding: 20px; border-radius: 18px; }
    .fe-title { font-size: 1.35rem; }
    .fe-cta { padding: 24px 20px; }
    .fe-prose { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
    .fe *, .fe *::before, .fe *::after, .fe-hero::before, .fe-hero::after { animation: none !important; transition: none !important; }
}
