/* ═══════════════════════════════════════════════════════════
   FEATURE COMMAND CENTER — ClinicPlusPro Landing Page
   Split-panel feature explorer: sidebar + animated card grid
   Light-mode — transparent glass panels, particles visible
   ═══════════════════════════════════════════════════════════ */

/* ── Section wrapper ────────────────────────────────────── */
.features.feature-explorer {
    padding: 60px 0 80px;
    background-color: var(--white);
    color: var(--text-color-light);
    position: relative;
    overflow: hidden;
}

.feature-explorer .section-header h2,
.feature-explorer .section-header p {
    color: var(--text-color-light);
}

.feature-explorer .section-header {
    margin-bottom: 48px;
}

.fe-badge-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.fe-badge-main {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-dark));
    color: #000;
    font-family: var(--font-primary), sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 4px 16px;
    border-radius: 20px;
    letter-spacing: 0.05em;
}

.fe-badge-standards {
    display: inline-block;
    background: rgba(255, 152, 0, 0.08);
    border: 1px solid rgba(255, 152, 0, 0.25);
    color: var(--primary-color-dark);
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 16px;
    border-radius: 20px;
    letter-spacing: 0.08em;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}


/* ── Panel layout ───────────────────────────────────────── */
/* Same glass recipe as .testimonial-content */
.fe-layout {
    display: flex;
    background-color: rgba(255, 152, 0, 0.04);
    border: 1px solid rgba(255, 152, 0, 0.2);
    border-radius: var(--border-radius);
    overflow: hidden;
    min-height: 580px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    position: relative;
}

.fe-layout::before { display: none; }

/* ── Sidebar ────────────────────────────────────────────── */
.fe-sidebar {
    width: 248px;
    min-width: 248px;
    background-color: rgba(255, 152, 0, 0.05);
    border-right: 1px solid rgba(255, 152, 0, 0.15);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.fe-search-wrap {
    padding: 16px 14px;
    border-bottom: 1px solid rgba(255, 152, 0, 0.12);
}

.fe-search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 152, 0, 0.28);
    border-radius: 10px;
    padding: 9px 13px;
    color: var(--dark-gray);
    font-family: var(--font-body), sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.fe-search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.12);
}

.fe-search-input::placeholder {
    color: rgba(80, 60, 30, 0.38);
}

/* nav list */
.fe-nav {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 152, 0, 0.25) transparent;
}

.fe-nav::-webkit-scrollbar { width: 4px; }
.fe-nav::-webkit-scrollbar-track { background: transparent; }
.fe-nav::-webkit-scrollbar-thumb { background: rgba(255,152,0,0.25); border-radius: 4px; }

.fe-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 16px;
    background: transparent;
    border: none;
    border-left: 3px solid transparent;
    color: rgba(34, 34, 34, 0.5);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    position: relative;
}

.fe-nav-item:hover {
    background: rgba(255, 152, 0, 0.07);
    color: var(--dark-gray);
}

.fe-nav-item.active {
    border-left-color: var(--primary-color);
    background: rgba(255, 152, 0, 0.11);
    color: var(--primary-color-dark);
}

.fe-nav-icon {
    font-size: 1.25rem;
    width: 26px;
    text-align: center;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fe-nav-icon i {
    font-size: 1.2rem;
    line-height: 1;
}

.fe-nav-label {
    flex: 1;
    font-family: var(--font-primary), sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.25;
}

.fe-nav-badge {
    background: rgba(255, 152, 0, 0.15);
    color: var(--primary-color-dark);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    min-width: 22px;
    text-align: center;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}

.fe-nav-item.active .fe-nav-badge {
    background: var(--primary-color);
    color: #000;
}

/* ── Main content area ──────────────────────────────────── */
.fe-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* category header bar */
.fe-category-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 28px;
    border-bottom: 1px solid rgba(255, 152, 0, 0.14);
    flex-shrink: 0;
    background-color: rgba(255, 152, 0, 0.03);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.fe-category-header.fe-header-animate {
    animation: fe-header-in 0.3s ease both;
}

@keyframes fe-header-in {
    from { opacity: 0; transform: translateX(14px); }
    to   { opacity: 1; transform: translateX(0); }
}

.fe-category-emoji {
    font-size: 2.4rem;
    line-height: 1;
    flex-shrink: 0;
    color: var(--primary-color);
    opacity: 0.9;
    display: flex;
    align-items: center;
}

.fe-cat-emoji-icon {
    font-size: 2.2rem;
    line-height: 1;
}

.fe-category-header-text {
    flex: 1;
    min-width: 0;
}

.fe-category-title {
    font-family: var(--font-primary), sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin: 0 0 3px;
    line-height: 1.15;
}

.fe-category-desc {
    font-size: 0.875rem;
    color: rgba(34, 34, 34, 0.52);
    margin: 0;
    line-height: 1.4;
}

.fe-category-count-box {
    background: rgba(255, 152, 0, 0.08);
    border: 1px solid rgba(255, 152, 0, 0.22);
    border-radius: 12px;
    padding: 8px 16px;
    text-align: center;
    flex-shrink: 0;
}

.fe-category-count-num {
    display: block;
    font-family: var(--font-accent), sans-serif;
    font-size: 1.9rem;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1;
}

.fe-category-count-label {
    display: block;
    font-size: 0.65rem;
    color: rgba(34, 34, 34, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 2px;
}

/* ── Grid scrollable wrapper ────────────────────────────── */
.fe-grid-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 24px 28px 32px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 152, 0, 0.2) transparent;
}

.fe-grid-wrapper::-webkit-scrollbar { width: 4px; }
.fe-grid-wrapper::-webkit-scrollbar-track { background: transparent; }
.fe-grid-wrapper::-webkit-scrollbar-thumb { background: rgba(255,152,0,0.2); border-radius: 4px; }

/* ── Feature card grid ──────────────────────────────────── */
.fe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
    gap: 16px;
}

/* ── Individual feature card — same as .testimonial-content ── */
.fe-card {
    background-color: rgba(255, 152, 0, 0.05);
    border: 1px solid rgba(255, 152, 0, 0.14);
    border-radius: 14px;
    padding: 20px;
    cursor: default;
    box-shadow: var(--box-shadow);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
    position: relative;
    overflow: hidden;
}

.fe-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.06) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.22s ease;
    pointer-events: none;
}

.fe-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 152, 0, 0.45);
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 152, 0, 0.18);
}

.fe-card:hover::after { opacity: 1; }

.fe-card-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 14px;
    line-height: 1;
    color: var(--primary-color);
    opacity: 0.9;
}

.fe-card-title {
    font-family: var(--font-primary), sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin: 0 0 8px;
    line-height: 1.2;
}

.fe-card-desc {
    font-size: 0.84rem;
    color: rgba(34, 34, 34, 0.62);
    margin: 0 0 14px;
    line-height: 1.55;
}

.fe-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.fe-tag {
    background: rgba(255, 152, 0, 0.1);
    color: var(--primary-color-dark);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    font-family: var(--font-primary), sans-serif;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* ── No-results state ───────────────────────────────────── */
.fe-no-results {
    text-align: center;
    padding: 60px 20px;
    color: rgba(34, 34, 34, 0.35);
}

.fe-no-results-icon {
    font-size: 2.8rem;
    margin-bottom: 12px;
    display: block;
}

.fe-no-results p {
    margin: 0;
    font-size: 1rem;
    color: rgba(34, 34, 34, 0.35);
}

/* ── Card animations ────────────────────────────────────── */
@keyframes fe-card-enter {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fe-card-exit {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-10px) scale(0.97);
    }
}

.fe-card.fe-entering {
    animation: fe-card-enter 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.fe-card.fe-exiting {
    animation: fe-card-exit 0.2s ease forwards;
    pointer-events: none;
}

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */

/* tablet: collapse sidebar to top horizontal tabs */
@media (max-width: 960px) {
    .fe-layout {
        flex-direction: column;
        min-height: unset;
    }

    .fe-sidebar {
        width: 100%;
        min-width: 0;
        border-right: none;
        border-bottom: 1px solid rgba(255, 152, 0, 0.14);
    }

    .fe-search-wrap { display: none; }

    .fe-nav {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .fe-nav::-webkit-scrollbar { display: none; }

    .fe-nav-item {
        flex-direction: column;
        align-items: center;
        min-width: 88px;
        padding: 12px 10px 10px;
        border-left: none;
        border-bottom: 3px solid transparent;
        gap: 5px;
        text-align: center;
        white-space: nowrap;
    }

    .fe-nav-item.active {
        border-left-color: transparent;
        border-bottom-color: var(--primary-color);
    }

    .fe-nav-label {
        font-size: 0.75rem;
        white-space: normal;
        text-align: center;
        line-height: 1.2;
    }

    .fe-nav-badge {
        position: absolute;
        top: 6px;
        right: 4px;
        font-size: 0.62rem;
        padding: 1px 5px;
    }

    .fe-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

    .fe-category-header {
        padding: 18px 20px;
    }

    .fe-grid-wrapper {
        padding: 18px 20px 26px;
    }
}

/* phone: single-column cards */
@media (max-width: 540px) {
    .fe-grid {
        grid-template-columns: 1fr;
    }

    .fe-category-count-box {
        display: none;
    }

    .fe-category-emoji {
        font-size: 1.8rem;
    }

    .fe-category-title {
        font-size: 1.2rem;
    }

    .features.feature-explorer {
        padding: 40px 0 60px;
    }
}
