/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

 .im-vcard-single-team-template .team-member {
   margin: 2rem auto;
 }

 .team-member {
    max-width: 600px;
    padding: 60px 0;
    margin: 0 auto;
    position: relative;
 }

 .team-member-share {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
 }

 .team-member-share:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.2);
 }

 .team-member-share:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
 }

 .team-member-share svg {
    width: 18px;
    height: 18px;
 }

 .team-member h1 {
    font-size: 1.5rem !important;
    margin-bottom: .2rem;
 }

 @media screen and (min-width: 992px) {

    .team-member h1 {
        font-size: 2.5rem!important;
    }
 }

 .team-member-image {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
 }

 @media screen and (min-width: 992px) {

    .team-member-image {
        width: 120px;
        height: 120px;
    }

    .team-member-image .wp-post-image {
      width: 100%;
      height: 100%;
   }
 }

 .team-member-header {
    text-align: center;
    margin-bottom: 1.5rem;
 }

 .team-member-header p {
    font-size: 1rem;
    margin-top: 0;
 }

 .team-member-description {
    margin: 10px auto 0;
    max-width: 44ch;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #64748b;
 }

 .team-member-details {
    text-align: center;
    padding: 10px 20px 20px;
    background-color: rgb(238, 238, 238);
 }

 .team-member-cover {
    width: 100%;
    height: 160px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #dbeafe, #e2e8f0);
    border: 1px solid rgba(148, 163, 184, 0.35);
 }

 .team-member-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
 }

 .team-member-cover.is-empty img {
    display: none;
 }

 .team-member-cover--hero {
    display: none;
 }

 .team-member-details .team-member-list .item {
   justify-content: center;
   text-align: center;
 }

 .team-member-details ul {
    list-style: none;
    padding:0;
 }

 .team-member-details li {
    margin-bottom: 0;
    text-align: left;
    font-size: 0.875rem;
 }

 @media screen and (min-width: 470px) {

    .team-member-details li {
        font-size: 1rem;
    }
 }

 .team-member-details li span {
    display: inline-block;
 }

 .team-member-details li .icon {
    margin-right: 10px;
 }

 .team-member-details li svg {
    width: 25px;
    height: 25px;
 }

 @media screen and (min-width: 470px) {

    .team-member-details li svg {
    width: 30px;
    height: 30px;
    }
 }

 .team-member-details .item {
    padding: 10px 0;
    align-items: center;
    display: flex;
    border-bottom: 1px solid #e0dede;
 }

 .team-member-details li:last-child {
    border-bottom: 0;
 }

 .team-member-details .label {
    display: block;
    font-size: 0.6875rem;
    opacity: .6;
 }

 @media screen and (min-width: 470px) {

    .team-member-details .label {
        font-size: .85rem;
    }
 }

 .team-member-details .btn,
 .team-member-qr-toggle {
    width: 100%;
    max-width: 400px;
    padding: 12px 20px;
    border-radius: 999px;
    font-size: clamp(1rem, 2vw, 1.35rem);
    font-weight: 700;
    letter-spacing: 0.01em;
 }

 .team-member-qr-toggle {
    min-height: 52px;
 }

.team-member-details .btn {
    background-color: rgb(0, 69, 139);
    border: 1px solid transparent;
    color:#fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 18px auto 0;
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

 .team-member-details .btn:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(2, 132, 199, 0.2);
    background-size: 0 !important;
 }

 .team-member-details a {
   text-decoration: none;
 }

 .team-member-details .item .details > a {
   transition: filter 0.3s;
 }

 .team-member-details .item .details > a:hover {
   filter: brightness(1.25);
 }

 /* QR Code */
 .team-member-qr {
    margin-top: 16px;
    text-align: center;
 }

 .team-member-qr-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: none;
    border: 2px solid currentColor;
    cursor: pointer;
    opacity: 0.95;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
 }

 .team-member-qr-toggle:hover {
    opacity: 1;
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
 }

 .team-member-qr-toggle svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
 }

 .team-member-qr-toggle:focus-visible,
 .team-member-details .btn:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
 }

 .team-member-qr-code {
    margin: 12px auto 0;
    max-width: 180px;
 }

 .team-member-qr-code img,
 .team-member-qr-code svg {
    width: 100%;
    height: auto;
    display: block;
 }

 .team-member-posts {
    margin-top: 18px;
    text-align: left;
 }

 .team-member-posts-title {
    margin: 0 0 12px;
    font-size: 1.1rem;
    line-height: 1.2;
    font-weight: 700;
 }

 .team-member-posts-grid {
    display: grid;
    gap: 14px;
 }

 @media screen and (min-width: 560px) {
    .team-member-posts-grid--two-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
 }

 .team-member-post-card {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
 }

 .team-member-post-thumb {
    display: block;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    overflow: hidden;
    transition: transform 0.25s ease;
 }

 .team-member-post-card:hover .team-member-post-thumb {
    transform: scale(1.02);
 }

 .team-member-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
 }

 .team-member-post-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: block;
 }

 .team-member-post-content {
    padding: 14px;
 }

 .team-member-post-title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.35;
    font-weight: 700;
 }

 .team-member-post-title a {
    color: inherit;
    text-decoration: none;
 }

 .team-member-post-excerpt {
    margin: 8px 0 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #475569;
 }

/* ===================================
   Template: Horizontal
   =================================== */
@media screen and (min-width: 600px) {
    .team-member--horizontal {
        display: flex;
        align-items: flex-start;
        gap: 24px;
        padding: 40px 0;
    }

    .team-member--horizontal .team-member-image {
        flex: 0 0 120px;
        width: 120px;
        height: 120px;
        margin: 0;
    }

    .team-member--horizontal .team-member-header {
        text-align: left;
    }

    .team-member--horizontal .team-member-details {
        flex: 1;
        text-align: left;
    }

    .team-member--horizontal .team-member-details .team-member-list .item {
        justify-content: flex-start;
        text-align: left;
    }
}

/* ===================================
   Template: Minimal
   =================================== */
.team-member--minimal .team-member-details {
    background-color: transparent !important;
    padding: 0;
    border-radius: 0 !important;
}

.team-member--minimal .team-member-details .item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 8px 0;
}

.team-member--minimal .team-member-details li:last-child .item {
    border-bottom: 0;
}

.team-member--minimal .team-member-header {
    margin-bottom: 1rem;
}

.team-member--minimal .team-member-details .btn {
    background-color: transparent !important;
    border: 2px solid currentColor;
    color: inherit !important;
    padding: 10px 20px;
}

.team-member--minimal .team-member-image {
    width: 90px;
    height: 90px;
}

/* ===================================
   Template: Modern
   =================================== */
.team-member--modern {
    padding: 0 0 24px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #d6d9de;
    background: #ffffff;
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.1);
}

.team-member--modern .team-member-cover--hero {
    display: block;
    height: 190px;
    border-radius: 0;
    border: 0;
    margin: 0;
}

.team-member--modern .team-member-cover--details {
    display: none;
}

.team-member--modern .team-member-image {
    width: 108px;
    height: 108px;
    margin: -54px auto 12px;
    border: 4px solid #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.22);
    position: relative;
    z-index: 2;
}

.team-member--modern.team-member--no-cover .team-member-image {
    margin: 20px auto 12px;
}

.team-member--modern .team-member-header {
    padding: 0 20px;
    margin-bottom: 1rem;
}

.team-member--modern.team-member--no-avatar.team-member--has-cover .team-member-header {
    padding-top: 22px;
}

.team-member--modern.team-member--no-avatar.team-member--no-cover .team-member-header {
    padding-top: 28px;
}

.team-member--modern .team-member-details {
    background-color: transparent !important;
    padding: 8px 20px 0;
    border-radius: 0 !important;
}

/* Social Links */
.team-member-social-row {
    margin-top: 14px;
}

.team-member-icons-label {
    display: block;
    margin: 0 0 10px !important;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700 !important;
    line-height: 1.35;
    color: inherit;
}

.team-member-social-row--bottom {
    margin-top: 16px;
}

.team-member-contact-row {
    margin-top: 14px;
}

.team-member-contact-row--bottom {
    margin-top: 16px;
}

.social-links {
    --im-social-border-color: #cbd5e1;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 4px 0;
    align-items: center;
    justify-content: center;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s, transform 0.2s ease;
    color: inherit;
    text-decoration: none;
}

.social-link:hover {
    opacity: 1;
    filter: none;
    transform: translateY(-1px);
}

.social-links--plain .social-link {
    border: 0;
    background: transparent;
    border-radius: 0;
    width: auto;
    height: auto;
    padding: 0;
}

.social-links--circle .social-link,
.social-links--square .social-link,
.social-links--rounded-square .social-link {
    width: 42px;
    height: 42px;
    border: 1px solid var(--im-social-border-color);
    background: #ffffff;
}

.social-links--circle .social-link {
    border-radius: 999px;
}

.social-links--square .social-link {
    border-radius: 0;
}

.social-links--rounded-square .social-link {
    border-radius: 12px;
}

.social-link svg {
    width: 24px;
    height: 24px;
}

.social-link img {
    width: 24px;
    height: 24px;
    display: block;
    object-fit: contain;
}

.social-links--circle .social-link svg,
.social-links--square .social-link svg,
.social-links--rounded-square .social-link svg,
.social-links--circle .social-link img,
.social-links--square .social-link img,
.social-links--rounded-square .social-link img {
    width: 20px;
    height: 20px;
}

/* Gutenberg editor preview parity */
.editor-styles-wrapper .wp-block[data-type="im-vcard/team-member"] {
    max-width: none !important;
    width: 100%;
}

.editor-styles-wrapper .wp-block[data-type="im-vcard/team-member"] .components-placeholder {
    max-width: 100%;
}

.editor-styles-wrapper .wp-block[data-type="im-vcard/team-member"] .wp-block-im-vcard-team-member {
    max-width: 100%;
}

.editor-styles-wrapper .wp-block[data-type="im-vcard/team-member"] .team-member {
    margin-left: auto;
    margin-right: auto;
    max-width: 600px;
}
