/**
 * Team Member Block - Frontend Styles
 * Modern professional design with button styling for LinkedIn
 */

/* Main block container */
.wp-block-custom-team-member {
    margin: 2.5rem 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Hide placeholder content - only show server-rendered content */
.team-member-block-placeholder {
    display: none;
}

/* Team member container - enhanced card design */
.team-member-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.team-member-container: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);
}

/* Header section with photo and basic info */
.team-member-header {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

/* Photo styling - enhanced with better shadows */
.team-member-photo {
    flex-shrink: 0;
    width: 140px;
    height: 140px;
}

.team-member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.team-member-photo img:hover {
    transform: scale(1.02);
}

/* Info section */
.team-member-info {
    flex: 1;
    min-width: 0;
}

/* Name styling - enhanced typography */
.team-member-name {
    margin: 0 0 0.75rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1a202c;
    letter-spacing: -0.025em;
}

/* Job title styling - improved color and spacing */
.team-member-title {
    margin: 0 0 1.5rem 0;
    font-size: 1.125rem;
    font-weight: 500;
    color: #4a5568;
    line-height: 1.4;
}

/* Contact links container - improved spacing and layout */
.team-member-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

/* LinkedIn icon button styling - circular icon design */
.team-member-linkedin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #0077b5;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 700;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
}

.team-member-linkedin:hover {
    background: #005885;
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px -1px rgba(0, 0, 0, 0.15);
}

.team-member-linkedin:focus {
    outline: 2px solid #0077b5;
    outline-offset: 2px;
}

.linkedin-icon {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
}

/* Email and phone links - improved styling */
.team-member-email,
.team-member-phone {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: #f7fafc;
    color: #2d3748;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

.team-member-email:hover,
.team-member-phone:hover {
    background: #edf2f7;
    color: #1a202c;
    text-decoration: none;
    border-color: #cbd5e0;
    transform: translateY(-1px);
}

/* Description/Bio section - enhanced typography */
.team-member-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #2d3748;
    margin-top: 0.5rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid #0077b5;
}

.team-member-description p {
    margin: 0 0 1rem 0;
}

.team-member-description p:last-child {
    margin-bottom: 0;
}

/* Screen reader text */
.team-member-block .screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Responsive Design */

/* Tablet */
@media (max-width: 768px) {
    .wp-block-custom-team-member {
        margin: 2rem 0;
    }
    
    .team-member-container {
        padding: 1.5rem;
    }
    
    .team-member-header {
        gap: 1.5rem;
    }
    
    .team-member-photo {
        width: 120px;
        height: 120px;
    }
    
    .team-member-name {
        font-size: 1.375rem;
    }
    
    .team-member-title {
        font-size: 1rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .wp-block-custom-team-member {
        margin: 1.5rem 0;
    }
    
    .team-member-container {
        padding: 1.25rem;
    }
    
    .team-member-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.25rem;
    }
    
    .team-member-photo {
        width: 120px;
        height: 120px;
    }
    
    .team-member-info {
        width: 100%;
    }
    
    .team-member-name {
        font-size: 1.25rem;
        text-align: center;
    }
    
    .team-member-title {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .team-member-contact {
        justify-content: center;
        margin-top: 0.75rem;
    }
    
    .team-member-description {
        text-align: left;
        margin-top: 1rem;
        padding: 1.25rem;
    }
    
    /* Stack contact buttons vertically on very small screens */
    .team-member-contact {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .team-member-linkedin {
        width: 36px;
        height: 36px;
    }
    
    .team-member-email,
    .team-member-phone {
        min-width: 120px;
        justify-content: center;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .team-member-linkedin {
        background: #000000;
        border: 2px solid #ffffff;
        color: #ffffff !important;
    }
    
    .team-member-linkedin:hover {
        background: #333333;
    }
    
    .team-member-email,
    .team-member-phone {
        border: 2px solid #000000;
        color: #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .team-member-container,
    .team-member-photo img,
    .team-member-linkedin,
    .team-member-email,
    .team-member-phone {
        transition: none;
        transform: none;
    }
    
    .team-member-container:hover {
        transform: none;
    }
    
    .team-member-photo img:hover {
        transform: none;
    }
}

/* Print styles */
@media print {
    .wp-block-custom-team-member {
        margin: 1rem 0;
        break-inside: avoid;
    }
    
    .team-member-container {
        box-shadow: none;
        border: 1px solid #000000;
        background: #ffffff;
    }
    
    .team-member-linkedin,
    .team-member-email,
    .team-member-phone {
        background: transparent;
        color: #000000;
        border: 1px solid #000000;
    }
    
    .team-member-contact a[href^="mailto:"]:after {
        content: " (" attr(href) ")";
    }
    
    .team-member-contact a[href^="tel:"]:after {
        content: " (" attr(href) ")";
    }
} 