/**
 * Staff Modal Styles
 */

.sd-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
}

.sd-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
}

.sd-modal-content {
    position: relative;
    max-width: 800px;
    max-height: 90vh;
    margin: 5vh auto;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    z-index: 1;
}

.sd-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border: none;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sd-modal-close:hover {
    background: rgba(0,0,0,0.7);
}

.sd-modal-body {
    padding: 30px;
    max-height: calc(90vh - 60px);
    overflow-y: auto;
}

.sd-modal-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Bio Content */
.sd-modal-staff-bio {
    color: #333;
}

.sd-bio-header {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.sd-bio-image {
    flex-shrink: 0;
}

.sd-bio-image img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
}

.sd-bio-info {
    flex: 1;
}

.sd-bio-name {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 600;
}

.sd-bio-title {
    margin: 0 0 5px 0;
    color: #666;
    font-size: 18px;
}

.sd-bio-email {
    margin: 0;
    color: #999;
    font-size: 14px;
}

.sd-bio-social-links {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.sd-bio-social-links .sd-social-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #fff;
}

.sd-bio-social-links .sd-social-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.sd-bio-social-links .sd-social-link span {
    display: none; /* Hide text in modal, show only icons */
}

.sd-bio-social-links .sd-social-twitter {
    background: #1DA1F2;
}

.sd-bio-social-links .sd-social-twitter:hover {
    background: #0d8bd9;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(29, 161, 242, 0.3);
}

.sd-bio-social-links .sd-social-facebook {
    background: #1877F2;
}

.sd-bio-social-links .sd-social-facebook:hover {
    background: #0e6ae0;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(24, 119, 242, 0.3);
}

.sd-bio-social-links .sd-social-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.sd-bio-social-links .sd-social-instagram:hover {
    opacity: 0.9;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(188, 24, 136, 0.3);
}

.sd-bio-content {
    margin-bottom: 30px;
    line-height: 1.6;
}

.sd-bio-taxonomies {
    margin-bottom: 30px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
}

.sd-bio-categories,
.sd-bio-team-types {
    margin-bottom: 10px;
}

.sd-bio-categories:last-child,
.sd-bio-team-types:last-child {
    margin-bottom: 0;
}

.sd-bio-taxonomies a {
    color: #0073aa;
    text-decoration: none;
}

.sd-bio-taxonomies a:hover {
    text-decoration: underline;
}

/* Achievements */
.sd-bio-achievements h3 {
    margin-bottom: 20px;
    font-size: 22px;
}

.sd-achievements-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.sd-achievement-item {
    background: #f9f9f9;
    border-radius: 4px;
    overflow: hidden;
}

.sd-achievement-image img {
    width: 100%;
    height: auto;
    display: block;
}

.sd-achievement-title {
    margin: 10px 15px 5px;
    font-weight: 600;
    font-size: 14px;
}

.sd-achievement-description {
    margin: 0 15px 15px;
    font-size: 13px;
    color: #666;
}

.sd-achievement-video {
    padding: 15px;
}

.sd-achievement-video iframe {
    width: 100%;
    max-width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .sd-modal-content {
        max-width: 95%;
        margin: 2.5vh auto;
    }
    
    .sd-bio-header {
        flex-direction: column;
        text-align: center;
    }
    
    .sd-bio-image {
        margin: 0 auto;
    }
    
    .sd-achievements-gallery {
        grid-template-columns: 1fr;
    }
}
