/* ==========================================================
   FIJ MSC Member Widget — Professional Styles
   ========================================================== */

/* ---- Grid Layout ---- */
.fij-msc-wrapper { width: 100%; }

.fij-msc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ---- Card Base ---- */
.fij-msc-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.32s cubic-bezier(.175,.885,.32,1.1),
                box-shadow 0.32s ease;
    position: relative;
}

/* Hover Effects */
.fij-msc-card.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(108,99,255,.16);
}
.fij-msc-card.hover-scale:hover {
    transform: scale(1.04);
    box-shadow: 0 16px 32px rgba(0,0,0,.12);
}
.fij-msc-card.hover-glow:hover {
    box-shadow: 0 0 0 3px #6c63ff, 0 16px 40px rgba(108,99,255,.22);
}
.fij-msc-card.hover-none { /* no extra */ }

/* ---- Photo Wrap ---- */
.fij-msc-photo-wrap {
    display: flex;
    justify-content: center;
    padding-top: 24px;
    margin-bottom: 16px;
}

.fij-msc-photo {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.fij-msc-photo-placeholder {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background-color: #6c63ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0;
    line-height: 1;
    text-transform: uppercase;
}

/* ---- Card Body ---- */
.fij-msc-card-body {
    padding: 4px 20px 24px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

/* ---- Name ---- */
.fij-msc-name {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.3;
    word-break: break-word;
}

/* ---- Designation (Committee) ---- */
.fij-msc-designation {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #e74c3c;
    background-color: #fff0f0;
    padding: 3px 12px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    line-height: 1.5;
}

/* ---- Member Type Badge ---- */
.fij-msc-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    color: #fff;
    background-color: #6c63ff;
    padding: 4px 14px;
    border-radius: 20px;
    line-height: 1.5;
    letter-spacing: 0.3px;
}

/* Honorary badge — different color */
.fij-msc-badge.is-honorary {
    background-color: #f39c12;
}

/* ---- Social Icons ---- */
.fij-msc-social {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.fij-msc-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f0f0f0;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 15px;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.fij-msc-social a:hover {
    background-color: #6c63ff;
    color: #fff;
    transform: translateY(-3px);
}

/* ---- Empty State ---- */
.fij-msc-empty {
    text-align: center;
    color: #aaa;
    padding: 30px;
    font-size: 0.9rem;
    background: #fafafa;
    border: 2px dashed #ddd;
    border-radius: 12px;
}

/* ---- Layout: Circle Focus ---- */
.layout-circle .fij-msc-photo-wrap {
    padding-top: 30px;
}
.layout-circle .fij-msc-photo,
.layout-circle .fij-msc-photo-placeholder {
    border: 4px solid #6c63ff;
    box-shadow: 0 4px 20px rgba(108,99,255,.25);
}
.layout-circle .fij-msc-card-body {
    padding-top: 0;
}

/* ---- Layout: Minimal ---- */
.layout-minimal .fij-msc-card {
    background: transparent;
    border-radius: 0;
    border-bottom: 1px solid #eee;
}
.layout-minimal .fij-msc-card-body {
    padding: 12px 0 20px;
}

/* ---- Layout: Overlay ---- */
.layout-overlay .fij-msc-card {
    overflow: hidden;
    position: relative;
    min-height: 240px;
    justify-content: flex-end;
}
.layout-overlay .fij-msc-photo-wrap {
    position: absolute;
    inset: 0;
    padding: 0;
    margin: 0;
}
.layout-overlay .fij-msc-photo {
    width: 100%;
    height: 100%;
    border-radius: 0;
}
.layout-overlay .fij-msc-photo-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 0;
    font-size: 3rem;
}
.layout-overlay .fij-msc-card-body {
    position: relative;
    z-index: 2;
    background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 100%);
    padding: 20px;
    width: 100%;
}
.layout-overlay .fij-msc-name { color: #fff !important; }
.layout-overlay .fij-msc-badge,
.layout-overlay .fij-msc-designation { box-shadow: 0 1px 4px rgba(0,0,0,.3); }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .fij-msc-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
    .fij-msc-grid { grid-template-columns: 1fr; }
}
