/**
 * Staff Cards Simple - Stylesheet
 * Version: 1.0.0
 */

/* Staff Cards Container */
.staff-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

/* Individual Staff Card */
.staff-card {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.staff-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Staff Card Image */
.staff-card-image {
    position: relative;
    overflow: hidden;
}

.staff-card-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.staff-card:hover .staff-card-image img {
    transform: scale(1.03);
}

/* Staff Card Content */
.staff-card-content {
    padding: 1.5rem;
}

.staff-card-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
    color: #2c3e50;
}

/* Staff Position */
.staff-position {
    font-size: 1rem;
    font-weight: 500;
    color: #3498db;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Staff Meta Information */
.staff-card-meta {
    margin-bottom: 1rem;
}

.staff-card-meta > div {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #666666;
}

.staff-card-meta .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
    margin-right: 0.5rem;
    color: #3498db;
}

.staff-email a,
.staff-phone a {
    color: #666666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.staff-email a:hover,
.staff-phone a:hover {
    color: #3498db;
}

/* Staff Excerpt */
.staff-card-excerpt {
    color: #555555;
    line-height: 1.6;
    font-size: 0.9rem;
    text-align: left;
}

/* No Staff Message */
.no-staff {
    text-align: center;
    color: #666666;
    font-style: italic;
    padding: 2rem;
    margin: 2rem 0;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

/* Responsive Design */
@media (max-width: 768px) {
    .staff-cards-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
        margin: 1rem 0;
    }
    
    .staff-card-content {
        padding: 1rem;
    }
    
    .staff-card-title {
        font-size: 1.2rem;
    }
    
    .staff-position {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .staff-cards-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .staff-card-content {
        padding: 1rem;
    }
    
    .staff-card-meta > div {
        font-size: 0.85rem;
    }
    
    .staff-card-excerpt {
        font-size: 0.85rem;
    }
    
    .staff-card-image img {
        height: 200px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .staff-card {
        background: #2c3e50;
        border-color: #34495e;
        color: #ecf0f1;
    }
    
    .staff-card-title {
        color: #ecf0f1;
    }
    
    .staff-position {
        color: #74b9ff;
    }
    
    .staff-card-meta > div {
        color: #bdc3c7;
    }
    
    .staff-email a,
    .staff-phone a {
        color: #bdc3c7;
    }
    
    .staff-email a:hover,
    .staff-phone a:hover {
        color: #74b9ff;
    }
    
    .staff-card-excerpt {
        color: #bdc3c7;
    }
    
    .no-staff {
        background: #34495e;
        border-color: #2c3e50;
        color: #bdc3c7;
    }
}

/* Print Styles */
@media print {
    .staff-cards-container {
        display: block;
    }
    
    .staff-card {
        break-inside: avoid;
        margin-bottom: 1rem;
        box-shadow: none;
        border: 1px solid #000;
        page-break-inside: avoid;
    }
    
    .staff-card-image img {
        height: 150px;
    }
    
    .staff-card-content {
        padding: 1rem;
    }
}

/* Additional hover effects for better UX */
.staff-card-meta a {
    position: relative;
    overflow: hidden;
}

.staff-card-meta a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background-color: #3498db;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.staff-card-meta a:hover::before {
    width: 100%;
}

/* Focus states for accessibility */
.staff-card-meta a:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Better spacing for staff cards */
.staff-card:last-child {
    margin-bottom: 0;
}

/* Improved typography for staff cards */
.staff-card-title {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.staff-position {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}