/* --- FYP Portal: Landing Page Project Ideas Module (v3.3) --- */
body.landing-page .section-ideas {
    background: radial-gradient(circle at 10% 20%, rgba(56, 189, 248, 0.08) 0%, transparent 40%),
                linear-gradient(180deg, #eef8ff 0%, #ffffff 50%, #edf5ff 100%);
    padding: 56px 0;
    position: relative;
}

/* Studio Controls: Search & Filter Bar */
body.landing-page .idea-studio-controls {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(2, 132, 199, 0.14);
    border-radius: 20px;
    padding: 20px 22px;
    box-shadow: 0 10px 30px rgba(15, 39, 66, 0.06);
    margin-bottom: 24px;
    position: relative;
    z-index: 30;
}

/* Search Box */
body.landing-page .idea-search-box { position: relative; display: flex; align-items: center; }
body.landing-page .idea-search-box .search-icon {
    position: absolute; left: 16px; color: #0284c7; font-size: 0.95rem; pointer-events: none; transition: color 0.2s ease;
}
body.landing-page .idea-search-input {
    width: 100%; min-height: 46px; padding: 10px 42px 10px 44px; border-radius: 12px;
    border: 1.5px solid #cbd5e1; background: #ffffff; font-size: 0.92rem; color: #0f2742;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
body.landing-page .idea-search-input:focus {
    border-color: #0284c7; background: #ffffff; box-shadow: 0 0 0 3.5px rgba(2, 132, 199, 0.16); outline: none;
}
body.landing-page .idea-search-clear {
    position: absolute; right: 12px; width: 28px; height: 28px; border: none; background: #e2e8f0;
    color: #475569; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.78rem; cursor: pointer; transition: background 0.15s ease, color 0.15s ease;
}
body.landing-page .idea-search-clear:hover { background: #cbd5e1; color: #0f172a; }

/* Custom Dropdown Wrappers */
body.landing-page .idea-dropdown-wrap {
    position: relative; display: flex; align-items: center; width: 100%;
}
body.landing-page .idea-dropdown-wrap.is-open { z-index: 1100 !important; }
body.landing-page .dropdown-lead-icon {
    position: absolute; left: 15px; font-size: 0.90rem; pointer-events: none; z-index: 2;
    transition: color 0.2s ease, transform 0.2s ease;
}
body.landing-page .idea-custom-select {
    width: 100%; min-height: 46px; padding: 10px 38px 10px 42px; border-radius: 12px;
    border: 1.5px solid #cbd5e1; background-color: #ffffff; font-size: 0.88rem; font-weight: 600;
    color: #0f2742; cursor: pointer; appearance: none; -webkit-appearance: none; -moz-appearance: none;
    background-position: right 14px center; background-repeat: no-repeat; background-size: 16px 16px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 1. Tech Stack Dropdown Theming (Electric Blue) */
body.landing-page .tech-dropdown-wrap .dropdown-lead-icon { color: #0284c7; }
body.landing-page .tech-dropdown-wrap .idea-custom-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230284c7' stroke-width='2.2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
}
body.landing-page .tech-dropdown-wrap .idea-custom-select:hover { border-color: #93c5fd; background-color: #f8fbff; }
body.landing-page .tech-dropdown-wrap .idea-custom-select:focus {
    border-color: #0284c7; background-color: #ffffff; box-shadow: 0 0 0 3.5px rgba(2, 132, 199, 0.18); outline: none;
}
body.landing-page .tech-dropdown-wrap:focus-within .dropdown-lead-icon { color: #0369a1; transform: scale(1.1); }

/* 2. Faculty Supervisor Dropdown Theming (Royal Violet) */
body.landing-page .supervisor-dropdown-wrap .dropdown-lead-icon { color: #7c3aed; }
body.landing-page .supervisor-dropdown-wrap .idea-custom-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%237c3aed' stroke-width='2.2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
}
body.landing-page .supervisor-dropdown-wrap .idea-custom-select:hover { border-color: #c4b5fd; background-color: #faf5ff; }
body.landing-page .supervisor-dropdown-wrap .idea-custom-select:focus {
    border-color: #7c3aed; background-color: #ffffff; box-shadow: 0 0 0 3.5px rgba(124, 58, 237, 0.18); outline: none;
}
body.landing-page .supervisor-dropdown-wrap:focus-within .dropdown-lead-icon { color: #6d28d9; transform: scale(1.1); }

/* Optgroups and Options fallback */
body.landing-page .idea-custom-select optgroup {
    font-weight: 700; font-size: 0.78rem; color: #0284c7; background-color: #f8fafc; padding: 6px 4px;
}
body.landing-page .idea-custom-select option {
    font-weight: 500; font-size: 0.86rem; color: #0f2742; background-color: #ffffff; padding: 6px 12px;
}

/* Searchable Select Interactive UI */
body.landing-page .searchable-select-trigger {
    width: 100%; min-height: 46px; padding: 10px 36px 10px 42px; border-radius: 12px;
    border: 1.5px solid #cbd5e1; background: #ffffff; font-size: 0.88rem; font-weight: 600;
    color: #0f2742; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
    user-select: none; transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1); position: relative;
}
body.landing-page .searchable-select-trigger:hover { border-color: #93c5fd; background: #f8fbff; }
body.landing-page .searchable-select-trigger.is-open {
    border-color: #0284c7; background: #ffffff; box-shadow: 0 0 0 3.5px rgba(2, 132, 199, 0.18);
}
body.landing-page .searchable-trigger-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.landing-page .searchable-trigger-chevron { font-size: 0.76rem; color: #0284c7; transition: transform 0.22s ease; flex-shrink: 0; }
body.landing-page .searchable-select-trigger.is-open .searchable-trigger-chevron { transform: rotate(180deg); }

/* Themed Triggers */
body.landing-page .supervisor-dropdown-wrap .searchable-select-trigger:hover { border-color: #c4b5fd; background: #faf5ff; }
body.landing-page .supervisor-dropdown-wrap .searchable-select-trigger.is-open { border-color: #7c3aed; box-shadow: 0 0 0 3.5px rgba(124, 58, 237, 0.18); }
body.landing-page .supervisor-dropdown-wrap .searchable-trigger-chevron { color: #7c3aed; }

/* Panel Popover */
body.landing-page .searchable-select-panel {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 1050;
    background: #ffffff; border: 1.5px solid #cbd5e1; border-radius: 14px;
    box-shadow: 0 16px 36px rgba(15, 39, 66, 0.14); padding: 8px; display: none; min-width: 250px;
}
body.landing-page .searchable-select-panel.is-open { display: block; }
body.landing-page .searchable-search-wrap {
    position: relative; display: flex; align-items: center; margin-bottom: 6px; padding-bottom: 6px;
    border-bottom: 1px solid #f1f5f9;
}
body.landing-page .searchable-search-icon { position: absolute; left: 10px; font-size: 0.80rem; color: #64748b; pointer-events: none; }
body.landing-page .searchable-search-input {
    width: 100%; min-height: 36px; padding: 6px 28px 6px 30px; border-radius: 8px;
    border: 1px solid #cbd5e1; font-size: 0.84rem; color: #0f2742; background: #f8fafc; outline: none;
}
body.landing-page .searchable-search-input:focus { border-color: #0284c7; background: #ffffff; box-shadow: 0 0 0 2.5px rgba(2, 132, 199, 0.15); }
body.landing-page .searchable-search-clear {
    position: absolute; right: 8px; background: none; border: none; color: #94a3b8; font-size: 1rem; cursor: pointer; line-height: 1;
}
body.landing-page .searchable-options-list { max-height: 240px; overflow-y: auto; }
body.landing-page .searchable-optgroup-title {
    font-size: 0.70rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px;
    color: #0284c7; background: #f0f9ff; padding: 5px 8px; border-radius: 6px; margin: 6px 0 2px;
}
body.landing-page .searchable-select-item {
    padding: 7px 10px; border-radius: 8px; font-size: 0.84rem; font-weight: 500; color: #1e293b;
    cursor: pointer; display: flex; align-items: center; justify-content: space-between;
}
body.landing-page .searchable-select-item:hover { background: #f1f5f9; color: #0284c7; }
body.landing-page .searchable-select-item.is-selected { background: #e0f2fe; color: #0369a1; font-weight: 700; }
body.landing-page .searchable-select-item.is-keyboard-active { background: #e0f2fe; color: #0284c7; }
body.landing-page .searchable-count-badge {
    font-size: 0.70rem; font-weight: 700; background: #e2e8f0; color: #475569; padding: 1px 7px; border-radius: 999px;
}
body.landing-page .searchable-no-results { padding: 14px 10px; text-align: center; color: #64748b; font-size: 0.82rem; font-style: italic; }

/* Reset Button */
body.landing-page .idea-reset-icon-btn {
    min-height: 46px; border-radius: 12px; background: #fef2f2; border: 1.5px solid #fecaca;
    color: #dc2626; font-size: 0.88rem; font-weight: 700; display: inline-flex; align-items: center;
    justify-content: center; cursor: pointer; transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
body.landing-page .idea-reset-icon-btn:hover {
    background: #fee2e2; border-color: #f87171; color: #b91c1c; transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

/* Popular Tech Quick Pills Bar */
body.landing-page .popular-tech-bar {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding-top: 12px;
    border-top: 1px dashed rgba(2, 132, 199, 0.16);
}
body.landing-page .popular-tech-label {
    font-size: 0.78rem; font-weight: 700; color: #475569; text-transform: uppercase; letter-spacing: 0.4px;
    display: inline-flex; align-items: center;
}
body.landing-page .popular-tech-pills { display: flex; flex-wrap: wrap; gap: 6px; }
body.landing-page .popular-tech-pill {
    border: 1px solid #bae6fd; background: #f0f9ff; color: #0284c7; font-size: 0.76rem;
    font-weight: 600; padding: 3px 11px; border-radius: 999px; cursor: pointer;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
body.landing-page .popular-tech-pill:hover { background: #e0f2fe; border-color: #7dd3fc; color: #0369a1; transform: translateY(-1px); }
body.landing-page .popular-tech-pill.is-active {
    background: #0284c7; color: #ffffff; border-color: #0284c7; box-shadow: 0 3px 10px rgba(2, 132, 199, 0.3);
}

/* Active Filters Chips & Results Bar */
body.landing-page .idea-results-bar {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
    padding-top: 12px; border-top: 1px solid rgba(226, 232, 240, 0.8);
}
body.landing-page .idea-results-count { display: flex; align-items: center; gap: 8px; font-size: 0.84rem; color: #475569; }
body.landing-page .count-dot { width: 8px; height: 8px; border-radius: 50%; background: #10b981; display: inline-block; }
body.landing-page .idea-active-chips { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
body.landing-page .active-filter-chip {
    display: inline-flex; align-items: center; gap: 6px; background: #e0f2fe; color: #0369a1;
    border: 1px solid #7dd3fc; padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600;
}
body.landing-page .active-filter-chip button {
    border: none; background: none; color: #0369a1; font-size: 1rem; line-height: 1; cursor: pointer; padding: 0; margin: 0;
}
body.landing-page .active-filter-chip-clear { background: #fee2e2; color: #b91c1c; border-color: #fca5a5; cursor: pointer; }
body.landing-page .active-filter-chip-clear:hover { background: #fecaca; }

/* Ideas Card (v3) */
body.landing-page .idea-card-v3 {
    border: 1.5px solid rgba(15, 39, 66, 0.08); background: #ffffff; box-shadow: 0 8px 24px rgba(15, 39, 66, 0.05);
    border-radius: 16px; padding: 18px 18px 16px; height: 100%; display: flex; flex-direction: column;
    position: relative; overflow: hidden;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease;
}
body.landing-page .idea-card-v3::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, #38bdf8 0%, #0284c7 50%, #0369a1 100%); opacity: 0; transition: opacity 0.25s ease;
}
body.landing-page .idea-card-v3:hover {
    transform: translateY(-6px); border-color: rgba(2, 132, 199, 0.32);
    box-shadow: 0 20px 42px rgba(2, 132, 199, 0.12), 0 0 0 1px rgba(2, 132, 199, 0.12);
}
body.landing-page .idea-card-v3:hover::before { opacity: 1; }

/* Card Header */
body.landing-page .idea-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
body.landing-page .idea-type-pill {
    padding: 4px 12px; border-radius: 999px; font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.4px; color: #0284c7; background: #f0f9ff; border: 1px solid #bae6fd;
}
body.landing-page .idea-difficulty {
    padding: 4px 11px; border-radius: 999px; font-size: 0.70rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px;
}
body.landing-page .idea-difficulty.easy { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
body.landing-page .idea-difficulty.medium { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
body.landing-page .idea-difficulty.hard { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }

/* Idea Title */
body.landing-page .idea-title-v3 {
    font-family: var(--home-font-title, 'Inter', sans-serif); font-size: 1.05rem; font-weight: 700;
    color: #0f2742; line-height: 1.38; margin: 0 0 8px; transition: color 0.2s ease;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    text-overflow: ellipsis; min-height: 2.76em; max-height: 2.76em; word-break: break-word;
}
body.landing-page .idea-card-v3:hover .idea-title-v3 { color: #0284c7; }

/* Description */
body.landing-page .idea-description-wrap { margin-bottom: 10px; }
body.landing-page .idea-description-v3 { font-size: 0.84rem; line-height: 1.5; color: #475569; margin: 0; }
body.landing-page .idea-description-v3.is-clamped {
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    overflow: hidden; min-height: 4.5em; word-break: break-word;
}
body.landing-page .idea-desc-toggle {
    background: none; border: 0; padding: 0; margin-top: 4px; font-size: 0.78rem; font-weight: 700;
    color: #0284c7; cursor: pointer; text-decoration: none;
}
body.landing-page .idea-desc-toggle:hover { text-decoration: underline; color: #0369a1; }

/* Meta Grid */
body.landing-page .idea-meta-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 10px; padding: 8px 12px;
    background: #f8fbff; border: 1px solid #e2e8f0; border-radius: 10px; margin: 4px 0 10px;
}
body.landing-page .idea-meta-item { display: flex; flex-direction: column; gap: 1px; }
body.landing-page .idea-meta-label {
    font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #64748b;
}
body.landing-page .idea-meta-value { font-size: 0.82rem; font-weight: 700; color: #0f2742; }
body.landing-page .idea-meta-value.is-open { color: #15803d; }
body.landing-page .idea-meta-value.is-closed { color: #dc2626; }

/* Chips */
body.landing-page .idea-chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
body.landing-page .idea-chip {
    padding: 3px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 600; color: #1e293b;
    background: #f1f5f9; border: 1px solid #e2e8f0;
}
body.landing-page .idea-chip-more { background: #e2e8f0; color: #475569; font-weight: 700; }
body.landing-page .idea-chip-soft { color: #0284c7; background: #f0f9ff; border-color: #bae6fd; font-size: 0.70rem; }

/* Card Footer */
body.landing-page .idea-card-footer {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding-top: 10px; border-top: 1px solid #e2e8f0; margin-top: auto;
}
body.landing-page .idea-supervisor { display: flex; align-items: center; gap: 10px; }
body.landing-page .idea-avatar {
    width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
    display: inline-flex; align-items: center; justify-content: center; color: #ffffff; font-weight: 800;
    font-size: 0.82rem; box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25); flex-shrink: 0;
}
body.landing-page .idea-supervisor strong {
    color: #0f2742; font-size: 0.84rem; max-width: 140px; overflow: hidden; text-overflow: ellipsis;
    white-space: nowrap; display: inline-block;
}
body.landing-page .btn-idea-explore {
    border: 1px solid #cbd5e1; background: #ffffff; color: #0284c7; font-size: 0.76rem; font-weight: 700;
    padding: 6px 12px; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center;
    transition: all 0.2s ease; flex-shrink: 0;
}
body.landing-page .btn-idea-explore:hover {
    background: #0284c7; border-color: #0284c7; color: #ffffff; box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

/* Skeletons */
body.landing-page .idea-skeleton-card { pointer-events: none; border-color: #e2e8f0; }
body.landing-page .skeleton-shimmer {
    background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%); background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite linear; border-radius: 6px;
}
@keyframes skeletonShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
body.landing-page .skeleton-pill { border-radius: 999px; }

/* Empty State */
body.landing-page .empty-idea-box {
    max-width: 480px; margin: 0 auto; padding: 40px 24px; background: rgba(2, 132, 199, 0.03);
    border: 1.5px dashed rgba(2, 132, 199, 0.2); border-radius: 20px;
}

/* Pagination Bar */
body.landing-page .idea-pagination-wrap {
    background: rgba(255, 255, 255, 0.8); border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px 18px;
}
body.landing-page .idea-page-btn { min-height: 36px; padding: 6px 14px; border-radius: 8px; font-weight: 600; }
body.landing-page .pagination-pages { display: flex; gap: 4px; align-items: center; }
body.landing-page .idea-page-num {
    min-width: 34px; height: 32px; padding: 0 8px; display: inline-flex; align-items: center;
    justify-content: center; font-size: 0.84rem; font-weight: 600; border-radius: 8px;
}
body.landing-page .idea-page-num.is-active {
    background: #0284c7; color: #ffffff; border-color: #0284c7; box-shadow: 0 2px 6px rgba(2, 132, 199, 0.28);
}

/* Modal */
body.landing-page .idea-modal-content {
    border-radius: 20px; border: 1px solid rgba(2, 132, 199, 0.2);
    box-shadow: 0 25px 50px -12px rgba(15, 39, 66, 0.25); overflow: hidden;
}
body.landing-page .idea-modal-header { background: #f8fafc; border-bottom: 1px solid #e2e8f0; padding: 18px 24px; }
body.landing-page .idea-modal-body { padding: 24px; }
body.landing-page .idea-modal-title { font-size: 1.35rem; font-weight: 700; color: #0f2742; margin-bottom: 14px; line-height: 1.35; }
body.landing-page .idea-modal-supervisor-strip {
    display: flex; align-items: center; gap: 12px; background: #f0f9ff; border: 1px solid #bae6fd;
    border-radius: 12px; padding: 12px 16px;
}
body.landing-page .idea-modal-description { font-size: 0.92rem; line-height: 1.65; color: #334155; white-space: pre-line; }
body.landing-page .idea-modal-footer { background: #f8fafc; border-top: 1px solid #e2e8f0; padding: 16px 24px; }

/* Responsive Media Queries */
@media (max-width: 767.98px) {
    body.landing-page .section-ideas { padding: 40px 0; }
    body.landing-page .idea-studio-controls { padding: 14px; border-radius: 16px; }
    body.landing-page .idea-search-input,
    body.landing-page .idea-custom-select,
    body.landing-page .searchable-search-input { font-size: 16px !important; }
    body.landing-page .popular-tech-pills {
        flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 4px;
    }
    body.landing-page .popular-tech-pills::-webkit-scrollbar { display: none; }
    body.landing-page .idea-card-v3 { padding: 16px; border-radius: 14px; }
    body.landing-page .idea-title-v3 { font-size: 1.02rem; min-height: auto; max-height: none; }
    body.landing-page .idea-description-v3.is-clamped { min-height: auto; }
    body.landing-page .idea-meta-grid { padding: 8px 10px; gap: 6px 8px; }
    body.landing-page .idea-pagination-wrap {
        flex-direction: column; align-items: stretch !important; text-align: center; gap: 10px;
    }
    body.landing-page .idea-page-btn { flex: 1; }
}
