/* FYPIQ — FYP Ideas hub, detail, contest, homepage highlights */

.fyp-ideas-hub {
    min-height: 40vh;
}

/* Plain-text crumbs (idea detail, contest) — not the Bootstrap breadcrumb bar */
.fyp-ideas-crumb a {
    color: var(--gold-dark);
    text-decoration: none;
}
.fyp-ideas-crumb a:hover {
    text-decoration: underline;
}

/* Contest / legacy headings outside hub title strip */
.fyp-ideas-hero-title {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--text-dark);
}

.page-title-area .fyp-ideas-hero-hint {
    color: var(--text-mid);
}
.page-title-area .fyp-ideas-hero-hint a {
    color: var(--gold-dark);
    text-decoration: none;
}
.page-title-area .fyp-ideas-hero-hint a:hover {
    text-decoration: underline;
}
html[data-theme="dark"] .page-title-area .fyp-ideas-hero-hint a {
    color: var(--gold-light);
}

.fyp-ideas-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: flex-start;
    align-items: center;
    margin-top: 1.5rem;
    position: relative;
}

/* Hero CTAs — contrast on dark + light hero (avoid outline-light on pale gradients) */
.fyp-ideas-hero-actions .fyp-hero-btn--contest {
    font-weight: 600;
    border: 2px solid rgba(248, 250, 252, 0.9);
    color: #f8fafc;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(8px);
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.fyp-ideas-hero-actions .fyp-hero-btn--contest:hover {
    background: rgba(248, 250, 252, 0.14);
    border-color: #f8fafc;
    color: #fff;
}

.fyp-ideas-hero-actions .fyp-hero-btn--watch {
    transition: box-shadow 0.15s ease, transform 0.12s ease;
}
.fyp-ideas-hero-actions .fyp-hero-btn--watch:hover {
    transform: translateY(-1px);
}

.fyp-idea-card {
    border-radius: 1.15rem;
    padding: 1.35rem 1.35rem 1.25rem;
    background: linear-gradient(155deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.fyp-idea-card:hover {
    transform: translateY(-3px);
    border-color: rgba(250, 204, 21, 0.35);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
}

.fyp-idea-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.fyp-idea-date-chip {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(226, 232, 240, 0.75);
}

.fyp-idea-slot {
    font-size: 0.7rem;
    color: rgba(148, 163, 184, 0.9);
}

.fyp-idea-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    line-height: 1.35;
}

.fyp-idea-card-title a {
    color: #f8fafc;
    text-decoration: none;
}
.fyp-idea-card-title a:hover {
    color: #fde68a;
}

.fyp-idea-card-teaser {
    font-size: 0.88rem;
    color: rgba(203, 213, 225, 0.9);
    margin-bottom: 1rem;
    line-height: 1.55;
}

.fyp-idea-card-cta {
    font-size: 0.82rem;
    font-weight: 600;
    color: #fbbf24;
    text-decoration: none;
}
.fyp-idea-card-cta:hover {
    color: #fde047;
}

.fyp-ideas-hub-search-inner {
    max-width: 36rem;
}

.fyp-ideas-hub-search .input-group-text {
    border-radius: 0.65rem 0 0 0.65rem;
}

.fyp-ideas-hub-search .form-control {
    border-radius: 0;
}

.fyp-ideas-hub-search .btn-gold {
    border-radius: 0 0.65rem 0.65rem 0;
}

.fyp-idea-card-open .btn-gold {
    font-weight: 700;
    letter-spacing: 0.02em;
}

.fyp-idea-card-related {
    border-radius: 0.85rem;
    padding: 0.75rem 0.85rem 0.65rem;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.fyp-idea-card-related-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: rgba(196, 181, 253, 0.9);
    margin-bottom: 0.35rem;
}

.fyp-idea-card-related-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.78rem;
}

.fyp-idea-card-related-list li {
    margin-bottom: 0.35rem;
}

.fyp-idea-card-related-link {
    color: rgba(226, 232, 240, 0.92);
    text-decoration: none;
    display: inline-flex;
    align-items: baseline;
    gap: 0.15rem;
}

.fyp-idea-card-related-link:hover {
    color: #fde68a;
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

.fyp-idea-card-actions .btn-sm {
    font-size: 0.75rem;
}

/* Single idea */
.fyp-idea-single-hero {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.65), transparent);
}

.fyp-idea-single-layout {
    position: relative;
}

.fyp-idea-article-card {
    border-radius: 1.25rem;
    padding: 2rem 1.5rem;
    background: linear-gradient(160deg, rgba(30, 41, 59, 0.55), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
}

@media (min-width: 992px) {
    .fyp-idea-article-card {
        padding: 2.5rem 2.75rem;
    }
}

.fyp-idea-article-title {
    font-family: "Montserrat", system-ui, sans-serif;
    font-weight: 800;
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    letter-spacing: -0.03em;
    color: #f8fafc;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.fyp-idea-article-teaser {
    color: rgba(203, 213, 225, 0.92) !important;
}

.fyp-idea-creator-moves-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(125, 211, 252, 0.9);
    margin-bottom: 0.25rem;
}

.fyp-idea-creator-moves-list {
    margin: 0;
    padding-left: 1.15rem;
    font-size: 0.92rem;
    line-height: 1.5;
    color: rgba(226, 232, 240, 0.95);
}

.fyp-idea-creator-moves-list li {
    margin-bottom: 0.35rem;
}

.fyp-idea-body {
    font-size: 1.02rem;
    line-height: 1.75;
    color: rgba(226, 232, 240, 0.95);
}

.fyp-idea-body-center {
    max-width: 38rem;
    margin: 2rem auto 0;
}

.fyp-idea-body a {
    color: #fbbf24;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}
.fyp-idea-body a:hover {
    color: #fde047;
}

.fyp-idea-adjacent-nav .btn {
    min-width: 0;
}

@media (min-width: 992px) {
    .fyp-idea-adjacent-nav .d-flex > a,
    .fyp-idea-adjacent-nav .d-flex > span.btn {
        max-width: calc(50% - 0.35rem);
    }
}

.fyp-sidebar-panel {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

@media (min-width: 992px) {
    .fyp-idea-sidebar-sticky {
        position: sticky;
        top: 5.5rem;
    }
}

.fyp-related-card {
    border-radius: 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.15);
    background: rgba(15, 23, 42, 0.6);
    transition: border-color 0.2s ease, background 0.2s ease;
}
.fyp-related-card:hover {
    border-color: rgba(250, 204, 21, 0.35);
    background: rgba(30, 41, 59, 0.75);
}

.fyp-contest-body {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.18);
    line-height: 1.7;
    color: rgba(226, 232, 240, 0.95);
}

/* Homepage highlights */
.home-highlights {
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.35) 40%, transparent);
}

.home-highlights-title {
    font-family: "Montserrat", system-ui, sans-serif;
    font-weight: 700;
    color: var(--text, #e2e8f0);
}

.home-highlight-card {
    position: relative;
    border-radius: 1.2rem;
    padding: 1.35rem 1.35rem 1.25rem;
    background: linear-gradient(150deg, rgba(30, 41, 59, 0.75), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
    display: flex;
    flex-direction: column;
}

.home-highlight-card--idea {
    border-color: rgba(250, 204, 21, 0.22);
}

.home-highlight-badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.15);
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, 0.35);
}

.home-highlight-badge--idea {
    background: rgba(250, 204, 21, 0.12);
    color: #fde047;
    border-color: rgba(250, 204, 21, 0.4);
}

.home-highlight-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f8fafc;
}

/* Home card: full teaser + body lead — no line-clamp / ellipsis */
.home-highlight-idea-copy {
    min-height: 0;
}
.home-highlight-idea-teaser,
.home-highlight-idea-lead {
    line-height: 1.55;
    overflow: visible;
    overflow-wrap: break-word;
}

.home-highlight-watch-btn {
    color: #e2e8f0;
    border: 2px solid rgba(226, 232, 240, 0.78);
    background: rgba(15, 23, 42, 0.25);
    font-weight: 600;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.home-highlight-watch-btn:hover {
    color: #ffffff;
    background: rgba(15, 23, 42, 0.45);
    border-color: rgba(226, 232, 240, 0.75);
}

html[data-theme="light"] .fyp-idea-card-title a,
html[data-theme="light"] .fyp-idea-article-title,
html[data-theme="light"] .home-highlight-heading {
    color: #0f172a;
}
html[data-theme="light"] .home-highlight-heading a {
    color: #0f172a !important;
}
html[data-theme="light"] .home-highlight-heading a:hover {
    color: #7c3aed !important;
}
html[data-theme="light"] .fyp-idea-card-teaser,
html[data-theme="light"] .fyp-idea-article-teaser {
    color: #334155 !important;
}
html[data-theme="light"] .fyp-idea-creator-moves-list {
    color: #1e293b !important;
}
html[data-theme="light"] .fyp-idea-creator-moves-label {
    color: #0369a1;
}
html[data-theme="light"] .fyp-idea-card-related-link {
    color: #475569;
}
html[data-theme="light"] .fyp-idea-card-related-link:hover {
    color: #b45309;
}

html[data-theme="light"] .fyp-idea-card {
    background: #fff;
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}
html[data-theme="light"] .fyp-idea-card-related {
    background: rgba(241, 245, 249, 0.95);
    border-color: rgba(15, 23, 42, 0.08);
}
html[data-theme="light"] .fyp-idea-article-card,
html[data-theme="light"] .home-highlight-card {
    background: #fff;
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
}
html[data-theme="light"] .home-highlight-badge {
    background: rgba(14, 116, 144, 0.12);
    color: #0e7490;
    border-color: rgba(14, 116, 144, 0.3);
}
html[data-theme="light"] .home-highlight-badge--idea {
    background: rgba(217, 119, 6, 0.12);
    color: #92400e;
    border-color: rgba(217, 119, 6, 0.28);
}
html[data-theme="light"] .home-highlight-watch-btn {
    color: #334155;
    border-color: rgba(51, 65, 85, 0.8);
    background: #fff;
}
html[data-theme="light"] .home-highlight-watch-btn:hover {
    color: #0f172a;
    background: #f8fafc;
    border-color: #334155;
}
html[data-theme="light"] .home-highlight-card .text-white-50 {
    color: #64748b !important;
}

/* Single idea page — light theme: body was near-white on white; force readable slate. */
html[data-theme="light"] .fyp-idea-single .fyp-idea-body {
    color: #1e293b !important;
}
html[data-theme="light"] .fyp-idea-single .fyp-idea-body p,
html[data-theme="light"] .fyp-idea-single .fyp-idea-body li,
html[data-theme="light"] .fyp-idea-single .fyp-idea-body div {
    color: #334155 !important;
}
html[data-theme="light"] .fyp-idea-single .fyp-idea-body strong {
    color: #0f172a !important;
}
html[data-theme="light"] .fyp-idea-single .fyp-idea-body a,
html[data-theme="light"] .fyp-idea-single .fyp-idea-body p a {
    color: #a16207 !important;
}
html[data-theme="light"] .fyp-idea-single .fyp-idea-body a:hover {
    color: #854d0e !important;
}
html[data-theme="light"] .fyp-idea-single .fyp-related-card .text-light {
    color: #0f172a !important;
}
html[data-theme="light"] .fyp-idea-single .fyp-related-card .text-muted {
    color: #64748b !important;
}
html[data-theme="light"] .fyp-idea-single .fyp-related-card:hover .text-light {
    color: #0f172a !important;
}
html[data-theme="light"] .fyp-idea-single-hero {
    background: linear-gradient(180deg, rgba(241, 245, 249, 0.95), transparent);
}
html[data-theme="light"] .fyp-idea-single .fyp-idea-vote-tray .text-muted {
    color: #64748b !important;
}

/* Contest page — two-column layout + metrics sidebar */
.fyp-contest-page .fyp-contest-sidebar-inner {
    position: static;
}
@media (min-width: 992px) {
    .fyp-contest-page .fyp-contest-sidebar-inner {
        position: sticky;
        top: 5.5rem;
    }
}
.fyp-contest-page .fyp-sidebar-panel {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.18);
}
.fyp-contest-metric-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(148, 163, 184, 0.95);
}
.fyp-contest-stat {
    font-size: 1.05rem;
    font-weight: 700;
    color: #f8fafc;
}
.fyp-contest-stat--lg {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fde047;
}
.fyp-contest-emoji-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.fyp-contest-emoji-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.2);
    font-size: 0.95rem;
}
.fyp-contest-emoji-num {
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(226, 232, 240, 0.95);
    font-variant-numeric: tabular-nums;
}
.fyp-contest-explore-links a {
    color: rgba(226, 232, 240, 0.92);
    text-decoration: none;
    display: inline-block;
    padding: 0.2rem 0;
}
.fyp-contest-explore-links a:hover {
    color: #fde047;
    text-decoration: underline;
}
.fyp-contest-page .fyp-contest-theatre-btn {
    color: rgba(248, 250, 252, 0.95);
    border-color: rgba(148, 163, 184, 0.45);
}
.fyp-contest-page .fyp-contest-theatre-btn:hover {
    color: #0f172a;
    background: #fde047;
    border-color: #fde047;
}
html[data-theme="light"] .fyp-contest-page .fyp-sidebar-panel {
    background: #fff;
    border-color: rgba(15, 23, 42, 0.1);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}
html[data-theme="light"] .fyp-contest-page .fyp-contest-stat,
html[data-theme="light"] .fyp-contest-page .fyp-contest-emoji-num {
    color: #0f172a;
}
html[data-theme="light"] .fyp-contest-page .fyp-contest-stat--lg {
    color: #b45309;
}
html[data-theme="light"] .fyp-contest-page .fyp-contest-explore-links a {
    color: #334155;
}
html[data-theme="light"] .fyp-contest-page .fyp-contest-explore-links a:hover {
    color: #b45309;
}
html[data-theme="light"] .fyp-contest-page .fyp-contest-theatre-btn {
    color: #334155;
    border-color: rgba(15, 23, 42, 0.2);
}
html[data-theme="light"] .fyp-contest-page .fyp-contest-theatre-btn:hover {
    color: #fff;
    background: #b45309;
    border-color: #b45309;
}
