/**
 * Staff Members Widget Styles
 *
 * @package KB_Local_Business_Schema
 */

/* Wrapper */
.kb-staff-wrapper {
    width: 100%;
}

/* Grid Layout */
.kb-staff-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* List Layout */
.kb-staff-layout-list .kb-staff-grid {
    grid-template-columns: 1fr;
}

.kb-staff-layout-list .kb-staff-item {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    text-align: left;
}

.kb-staff-layout-list .kb-staff-image {
    flex-shrink: 0;
    margin-bottom: 0;
}

.kb-staff-layout-list .kb-staff-content {
    flex: 1;
}

/* Staff Item */
.kb-staff-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kb-staff-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Staff Image */
.kb-staff-image {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    overflow: hidden;
}

.kb-staff-item.kb-staff-image-circle .kb-staff-image,
.kb-staff-item.kb-staff-image-circle .kb-staff-image img {
    border-radius: 50%;
}

.kb-staff-item.kb-staff-image-square .kb-staff-image,
.kb-staff-item.kb-staff-image-square .kb-staff-image img {
    border-radius: 0;
}

.kb-staff-item.kb-staff-image-rounded .kb-staff-image,
.kb-staff-item.kb-staff-image-rounded .kb-staff-image img {
    border-radius: 12px;
}

.kb-staff-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Image Placeholder */
.kb-staff-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bdbdbd;
    border-radius: inherit;
}

.kb-staff-image-placeholder svg {
    width: 60%;
    height: 60%;
}

/* Staff Content */
.kb-staff-content {
    flex: 1;
}

/* Staff Name */
.kb-staff-name {
    margin: 0 0 8px 0;
    font-size: 1.25em;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
}

/* Staff Position */
.kb-staff-position {
    margin: 0 0 12px 0;
    font-size: 0.95em;
    color: #666666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Staff Bio */
.kb-staff-bio {
    margin: 0 0 15px 0;
    font-size: 0.9em;
    color: #555555;
    line-height: 1.6;
}

/* Contact Info */
.kb-staff-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.kb-staff-layout-list .kb-staff-contact {
    justify-content: flex-start;
}

.kb-staff-contact a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #555555;
    text-decoration: none;
    transition: color 0.2s ease;
}

.kb-staff-contact a:hover {
    color: #0073aa;
}

.kb-staff-contact svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Contact Style: Icons Only */
.kb-staff-contact.kb-contact-style-icons a span {
    display: none;
}

/* Contact Style: Text Only */
.kb-staff-contact.kb-contact-style-text svg {
    display: none;
}

/* Contact Style: Both (default styling, no hiding) */
.kb-staff-contact.kb-contact-style-both a {
    padding: 5px 10px;
    background: #f5f5f5;
    border-radius: 6px;
}

.kb-staff-contact.kb-contact-style-both a:hover {
    background: #e8e8e8;
}

/* No Data Message */
.kb-staff-no-data {
    padding: 40px 20px;
    text-align: center;
    background: #f9f9f9;
    border: 2px dashed #ddd;
    border-radius: 8px;
    color: #666;
    font-size: 14px;
}

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

@media (max-width: 768px) {
    .kb-staff-grid {
        grid-template-columns: 1fr;
    }

    .kb-staff-item {
        padding: 25px 20px;
    }

    .kb-staff-image {
        width: 120px;
        height: 120px;
    }

    .kb-staff-layout-list .kb-staff-item {
        flex-direction: column;
        text-align: center;
    }

    .kb-staff-layout-list .kb-staff-image {
        margin-bottom: 15px;
    }

    .kb-staff-layout-list .kb-staff-contact {
        justify-content: center;
    }

    /* Contact with text: stack on mobile */
    .kb-staff-contact.kb-contact-style-text,
    .kb-staff-contact.kb-contact-style-both {
        flex-direction: column;
        gap: 8px;
    }
}

/* Animation for items */
@keyframes kb-staff-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.kb-staff-item {
    animation: kb-staff-fade-in 0.5s ease forwards;
}

.kb-staff-item:nth-child(2) { animation-delay: 0.1s; }
.kb-staff-item:nth-child(3) { animation-delay: 0.2s; }
.kb-staff-item:nth-child(4) { animation-delay: 0.3s; }
.kb-staff-item:nth-child(5) { animation-delay: 0.4s; }
.kb-staff-item:nth-child(6) { animation-delay: 0.5s; }
.kb-staff-item:nth-child(n+7) { animation-delay: 0.6s; }

/* Schema.org compatible hidden data */
.kb-staff-schema-data {
    display: none;
}
