/**
 * Team Profiles Frontend Styles
 */

.team-profiles-gallery {
    display: grid;
    gap: 30px;
    margin: 30px 0;
}

.team-profiles-gallery.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.team-profiles-gallery.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.team-profiles-gallery.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.team-profiles-gallery.columns-5 {
    grid-template-columns: repeat(5, 1fr);
}

.team-profile-item {
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-profile-item:hover {
    transform: translateY(-5px);
}

.team-profile-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.team-profile-thumbnail {
    width: 100%;
    padding-bottom: 100%; /* Square aspect ratio */
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #f0f0f0;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.team-profile-item:hover .team-profile-thumbnail {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.team-profile-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-profile-thumbnail .no-photo-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 2.5em;
    font-weight: bold;
    text-transform: uppercase;
}

.team-profile-info {
    padding: 0 10px;
}

.team-profile-name {
    margin: 0 0 8px 0;
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.team-profile-job-title {
    margin: 0;
    font-size: 0.95em;
    color: #666;
    line-height: 1.4;
}

/* Single Profile Page */
.team-profile-single {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.team-profile-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 50px;
    align-items: start;
}

.team-profile-image-section {
    position: sticky;
    top: 20px;
}

.team-profile-full-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: block;
}

.team-profile-image-section .no-photo-placeholder.large {
    width: 100%;
    padding-bottom: 100%;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.team-profile-image-section .no-photo-placeholder.large span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4em;
}

.team-profile-content-section {
    padding-top: 20px;
}

.team-profile-content-section .team-profile-name {
    font-size: 2em;
    margin-bottom: 10px;
    color: #333;
}

.team-profile-credentials {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
}

.team-profile-content-section .team-profile-job-title {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.team-profile-section {
    margin-bottom: 35px;
}

.team-profile-section h2 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.team-profile-content {
    line-height: 1.8;
    color: #555;
}

.team-profile-content p {
    margin-bottom: 15px;
}

.team-profile-content ul,
.team-profile-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.team-profile-back-link {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.team-profile-back-link .button {
    padding: 12px 24px;
    font-size: 1em;
    text-decoration: none;
    display: inline-block;
    background: #2271b1;
    color: #fff;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.team-profile-back-link .button:hover {
    background: #135e96;
    color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .team-profiles-gallery.columns-2,
    .team-profiles-gallery.columns-3,
    .team-profiles-gallery.columns-4,
    .team-profiles-gallery.columns-5 {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .team-profile-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .team-profile-image-section {
        position: relative;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .team-profile-content-section .team-profile-name {
        font-size: 1.5em;
    }
}

@media (max-width: 480px) {
    .team-profiles-gallery.columns-2,
    .team-profiles-gallery.columns-3,
    .team-profiles-gallery.columns-4,
    .team-profiles-gallery.columns-5 {
        grid-template-columns: 1fr;
    }
    
    .team-profile-single {
        padding: 20px 15px;
    }
}
