/*
 * SEN Directory Display Styles
 * Clean, professional, premium UI
 */

.sen-directory-container {
    font-family: "Fredoka", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* --- Global Component Typography Override --- */
.sen-section-title,
.sen-news-title,
.sen-profile-title,
.sen-funnel-title,
.sen-expert-name,
.article-title {
    font-family: 'Cal Sans', sans-serif !important;
    font-weight: 400 !important;
    letter-spacing: normal !important;
}

/* --- Directory Filter Form --- */
.sticky-search-bar {
    box-sizing: border-box;
    margin-bottom: 2rem;
    background-color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 20px;
    box-shadow: none;
}

.sen-directory-filter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
}

.mobile-filter-toggle {
    display: none;
    width: 100%;
    padding: 1rem;
    background-color: #3a7bd4;
    color: white;
    font-size: 1rem;
    font-weight: 400 !important;
    cursor: pointer;
    text-align: center;
    margin-bottom: 0;
    transition: background 0.2s;
    border: none;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none !important;
    border-radius: 30px !important;
}

.mobile-filter-toggle:hover {
    background-color: #2760a8;
}

.filter-controls {
    display: flex;
    gap: 15px;
    width: 100%;
    align-items: center;
    border: none;
    outline: none;
    background-color: transparent;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none !important;
}

.sen-filter-group {
    flex: 1 1 200px;
}

.sen-filter-select {
    width: 100%;
    border-radius: 30px;
    font-size: 1rem;
    font-family: "Fredoka", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #334155;
    transition: border-color 0.2s;
    background-color: #f4f4f5;
    border: 1px solid #e4e4e7;
    padding: 12px 40px 12px 16px;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none !important;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23131313%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 16px top 50%;
    background-size: 12px auto;
}

.sen-filter-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.sen-filter-submit {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background-color: #3a7bd4;
    color: white;
    border-radius: 30px !important;
    font-size: 1rem;
    font-family: 'Cal Sans', sans-serif !important;
    font-weight: 400 !important;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    border: none;
    outline: none;
}

.sen-filter-submit:hover {
    background-color: #2760a8;
}

.sen-filter-submit:active {
    transform: translateY(1px);
}

/* --- No Search Prompt --- */
.sen-no-search-prompt {
    text-align: center;
    padding: 3rem 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    color: #64748b;
    font-size: 1.05rem;
    font-family: "Fredoka", sans-serif;
    border: 1px dashed #cbd5e1;
}

/* --- The Grid --- */
.sen-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* --- Premium Cards --- */
.sen-premium-card {
    background: #ebf3ff;
    border-radius: 16px;
    padding: 1.5rem 1.5rem 2rem 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.sen-premium-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.sen-card-header {
    margin-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 1rem;
}

.sen-card-title {
    margin: 0 0 0.5rem 0 !important;
    font-size: 1.25rem !important;
    color: #0f172a;
    line-height: 1.3 !important;
    letter-spacing: normal !important;
}

.sen-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background-color: #ecfdf5;
    color: #059669;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.sen-card-body {
    flex-grow: 1;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sen-card-detail {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.5;
}

.sen-card-detail strong {
    color: #1e293b;
    font-weight: 600;
}

/* --- Specialisation Pills --- */
.sen-spec-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 0.25rem;
}

.sen-spec-pill {
    display: inline-block;
    background: #EBF5FB;
    color: #1e293b;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.sen-spec-more {
    background: #f1f5f9;
    color: #64748b;
}

.sen-card-footer {
    margin-top: auto;
}

.sen-request-review-btn {
    display: block;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem 1.5rem;
    background-color: #3a7bd4;
    color: white;
    border: none;
    border-radius: 30px !important;
    font-size: 1rem;
    font-weight: 400 !important;
    text-decoration: none !important;
    transition: background-color 0.2s, transform 0.1s;
}

.sen-request-review-btn:hover {
    background-color: #2760a8;
    color: white;
}

.sen-request-review-btn:active {
    transform: translateY(1px);
}

/* --- No Results Box --- */
.sen-no-results-box {
    text-align: center;
    padding: 3rem 1.5rem;
    background: #ebf3ff;
    border-radius: 12px;
    border: 1px dashed #cbd5e1;
}

.sen-no-results-title {
    font-family: 'Cal Sans', sans-serif;
    font-size: 1.3rem;
    color: #0f172a;
    margin: 0 0 0.75rem;
}

.sen-no-results-desc {
    font-size: 1rem;
    color: #475569;
    margin: 0 0 1.5rem;
}

.sen-no-results {
    text-align: center;
    padding: 3rem;
    background: #ebf3ff;
    border-radius: 12px;
    color: #64748b;
    font-size: 1.1rem;
    border: 1px dashed #cbd5e1;
}

.sen-section-title {
    font-size: 1.75rem;
    color: #0f172a;
    margin: 2rem 0 1.5rem 0;
    letter-spacing: normal !important;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.75rem;
}

/* --- News Grid Layout (used on blog/news pages) --- */
.sen-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.sen-news-card {
    background: #ebf3ff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: none;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.sen-news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.sen-news-thumbnail {
    margin: -1.5rem -1.5rem 1rem -1.5rem;
}

.sen-news-thumbnail img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    display: block;
}

.sen-news-title {
    font-size: 1.3rem !important;
    color: #0f172a;
    margin: 0 0 1rem 0 !important;
    line-height: 1.25 !important;
    letter-spacing: normal !important;
}

.sen-news-excerpt {
    font-family: 'Fredoka', sans-serif !important;
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.45;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sen-news-excerpt p,
.sen-news-excerpt span,
.sen-news-excerpt div {
    font-family: 'Fredoka', sans-serif !important;
    margin: 0;
}

.sen-news-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 0.6rem 1.25rem;
    background-color: #3a7bd4;
    color: white;
    font-family: 'Cal Sans', sans-serif !important;
    text-decoration: none !important;
    font-weight: 400 !important;
    font-size: 0.9rem;
    border-radius: 30px !important;
    border: none;
    text-align: center;
    transition: all 0.2s;
    letter-spacing: normal !important;
}

.sen-news-btn:hover {
    background-color: #2760a8;
    color: white;
}

@media (max-width: 900px) {
    .sen-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .sen-news-grid {
        grid-template-columns: 1fr;
    }

    .sen-news-title {
        font-size: 1.8rem !important;
    }

    .sen-news-excerpt {
        font-size: 1.15rem !important;
        line-height: 1.45 !important;
    }
}

/* --- Floating Filter Button (FAB) --- */
.sen-fab-filter {
    position: fixed;
    top: 80px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #1A56A8;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
    z-index: 900;
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s;
}

.sen-fab-filter:hover {
    background-color: #3A7BD4;
}

.sen-fab-filter.sen-fab-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.sen-fab-filter svg {
    width: 24px;
    height: 24px;
}

.sen-fab-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 12px;
    height: 12px;
    background: #3A7BD4;
    border: 2px solid #ffffff;
    border-radius: 50%;
}

/* --- Bottom Sheet Overlay --- */
.sen-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.4);
    z-index: 950;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sen-sheet-overlay-active {
    opacity: 1;
    pointer-events: auto;
}

/* --- Bottom Sheet Panel --- */
.sen-bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 100%);
    width: 100%;
    max-width: 500px;
    background: #ffffff;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 30px rgba(15, 23, 42, 0.12);
    z-index: 960;
    padding: 1rem 1.5rem 2rem;
    box-sizing: border-box;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.sen-bottom-sheet.sen-sheet-open {
    transform: translate(-50%, 0);
}

.sen-sheet-handle {
    text-align: center;
    padding: 0.5rem 0 1rem;
    cursor: pointer;
}

.sen-sheet-handle span {
    display: inline-block;
    width: 40px;
    height: 4px;
    background: #cbd5e1;
    border-radius: 4px;
}

.sen-sheet-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sen-sheet-field label {
    display: block;
    font-family: 'Fredoka', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: #334155;
    margin-bottom: 6px;
}

.sen-sheet-field .sen-filter-select {
    font-size: 16px;
}

@media (max-width: 768px) {
    .sen-bottom-sheet {
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        padding: 1rem 1.25rem 2rem;
    }
}

/* --- Container & Hero (Profile pages) --- */
.sen-profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem 1.5rem;
}

.sen-profile-header {
    background: #ebf3ff;
    border-radius: 12px;
    padding: 3.5rem 2rem;
    margin-bottom: 3rem;
    text-align: center;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.sen-profile-title {
    font-size: 2.5rem !important;
    color: #0f172a;
    margin: 0 0 1rem 0 !important;
    line-height: 1.2 !important;
    letter-spacing: normal !important;
}

.sen-profile-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    font-size: 1.05rem;
    color: #475569;
}

.sen-profile-meta strong {
    color: #1e293b;
    font-weight: 600;
}

/* --- Main Layout (Profile) --- */
.sen-profile-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.sen-profile-bio {
    background: #ebf3ff;
    border-radius: 12px;
    padding: 2.5rem;
    border: none;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #334155;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.sen-profile-bio h2,
.sen-profile-bio h3 {
    color: #0f172a;
    margin-top: 2rem;
}

.sen-profile-sidebar {
    background: #ebf3ff;
    border: none;
    border-radius: 12px;
    padding: 2rem;
    position: sticky;
    top: 6rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.sen-funnel-title {
    font-size: 1.5rem !important;
    color: #0f172a;
    margin: 0 0 0.5rem 0 !important;
    letter-spacing: normal !important;
}

.sen-funnel-desc {
    font-size: 0.95rem;
    color: #475569;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .sen-directory-grid {
        grid-template-columns: 1fr;
    }

    .sen-directory-filter-form {
        flex-direction: column;
    }

    .sen-filter-group {
        width: 100%;
        flex: 1 1 auto;
    }

    .sen-profile-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sen-profile-header {
        padding: 2rem 1rem;
    }

    .sen-profile-bio {
        padding: 1.5rem;
    }

    .sen-profile-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .mobile-filter-toggle {
        display: block;
    }

    .filter-controls {
        display: none;
        flex-direction: column;
        gap: 15px;
        margin-top: 15px;
        width: 100%;
    }

    .filter-controls.show-filters {
        display: flex;
    }
}
