/**
 * Staff Module - Frontend Styles
 *
 * Author: Tobalt — https://tobalt.lt
 */

/* Staff List Grid */
.tobalt-staff-list {
    display: grid;
    gap: 24px;
    margin: 32px 0;
}

.tobalt-staff-grid-1 {
    grid-template-columns: 1fr;
}

.tobalt-staff-grid-2 {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.tobalt-staff-grid-3 {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.tobalt-staff-grid-4 {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

/* Staff Card */
.tobalt-staff-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.tobalt-staff-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.tobalt-staff-featured {
    border: 2px solid #4299e1;
    background: #f7fafc;
}

/* Staff Photo */
.tobalt-staff-photo {
    margin-bottom: 16px;
    text-align: center;
}

.tobalt-staff-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 6px;
}

.tobalt-staff-placeholder {
    width: 100%;
    height: 240px;
    background: #f7fafc;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tobalt-staff-placeholder .dashicons {
    font-size: 80px;
    width: 80px;
    height: 80px;
    color: #cbd5e0;
}

/* Staff Info */
.tobalt-staff-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tobalt-staff-name {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #2d3748;
}

.tobalt-staff-name a {
    color: inherit;
    text-decoration: none;
}

.tobalt-staff-name a:hover {
    color: #4299e1;
}

.tobalt-staff-position {
    font-size: 15px;
    color: #4a5568;
    margin: 0 0 16px 0;
}

/* Contact Info */
.tobalt-staff-contact {
    margin-bottom: 16px;
    flex: 1;
}

.tobalt-staff-contact p {
    margin: 0 0 8px 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tobalt-staff-contact .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
    color: #4299e1;
}

.tobalt-staff-contact a {
    color: #4299e1;
    text-decoration: none;
}

.tobalt-staff-contact a:hover {
    text-decoration: underline;
}

.tobalt-staff-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #4299e1;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    transition: background 0.2s;
    align-self: flex-start;
}

.tobalt-staff-link:hover {
    background: #2b6cb0;
    color: #ffffff;
}

.tobalt-staff-link .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
}

/* Single Staff Page */
.tobalt-staff-single {
    max-width: 900px;
    margin: 0 auto;
}

.tobalt-staff-header {
    display: flex;
    gap: 32px;
    margin-bottom: 32px;
    padding: 24px;
    background: #f7fafc;
    border-radius: 8px;
}

.tobalt-staff-header-photo {
    flex-shrink: 0;
}

.tobalt-staff-header-image {
    width: 200px;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tobalt-staff-header-info {
    flex: 1;
}

.tobalt-staff-header-position {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 12px 0;
}

.tobalt-staff-header-department {
    margin: 0 0 12px 0;
}

.tobalt-staff-dept-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #4299e1;
    color: #ffffff;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
}

.tobalt-staff-header-subjects {
    font-size: 15px;
    color: #4a5568;
    margin: 0;
}

.tobalt-staff-content {
    margin-bottom: 32px;
    line-height: 1.7;
    color: #2d3748;
}

/* Details Grid */
.tobalt-staff-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.tobalt-staff-detail-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
}

.tobalt-staff-detail-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #4299e1;
}

.tobalt-staff-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tbt-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 15px;
}

.tbt-contact-item:last-child {
    margin-bottom: 0;
}

.tbt-contact-item .dashicons {
    width: 24px;
    height: 24px;
    font-size: 24px;
    color: #4299e1;
    flex-shrink: 0;
}

.tbt-contact-item a {
    color: #4299e1;
    text-decoration: none;
}

.tbt-contact-item a:hover {
    text-decoration: underline;
}

.tobalt-staff-hours,
.tobalt-staff-qualifications {
    font-size: 15px;
    line-height: 1.6;
    color: #4a5568;
}

/* Profile View (from shortcode) */
.tobalt-staff-profile {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 32px;
    margin: 32px 0;
}

.tobalt-staff-profile-header {
    display: flex;
    gap: 32px;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 2px solid #e2e8f0;
}

.tobalt-staff-profile-photo {
    flex-shrink: 0;
}

.tobalt-staff-profile-image {
    width: 180px;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
}

.tobalt-staff-placeholder-large {
    width: 180px;
    height: 220px;
    background: #f7fafc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tobalt-staff-placeholder-large .dashicons {
    font-size: 80px;
    width: 80px;
    height: 80px;
    color: #cbd5e0;
}

.tobalt-staff-profile-meta {
    flex: 1;
}

.tobalt-staff-profile-name {
    font-size: 28px;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 12px 0;
}

.tobalt-staff-profile-position {
    font-size: 18px;
    color: #4a5568;
    margin: 0 0 16px 0;
}

.tobalt-staff-profile-department,
.tobalt-staff-profile-subjects {
    font-size: 15px;
    color: #4a5568;
    margin: 0 0 12px 0;
}

.tobalt-staff-profile-bio {
    margin-bottom: 32px;
    line-height: 1.7;
    color: #2d3748;
}

.tobalt-staff-profile-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.tobalt-staff-profile-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 16px 0;
}

.tobalt-staff-profile-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tobalt-staff-profile-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 15px;
}

.tobalt-staff-profile-list .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
    color: #4299e1;
    margin-top: 2px;
    flex-shrink: 0;
}

.tobalt-staff-profile-hours,
.tobalt-staff-profile-qualifications {
    font-size: 15px;
    line-height: 1.6;
    color: #4a5568;
}

/* Responsive */
@media (max-width: 768px) {
    .tobalt-staff-list {
        grid-template-columns: 1fr;
    }

    .tobalt-staff-header {
        flex-direction: column;
    }

    .tobalt-staff-header-photo {
        text-align: center;
    }

    .tobalt-staff-profile-header {
        flex-direction: column;
        text-align: center;
    }

    .tobalt-staff-details-grid,
    .tobalt-staff-profile-details {
        grid-template-columns: 1fr;
    }
}

/* No Results */
.tbt-no-staff {
    padding: 32px;
    text-align: center;
    background: #f7fafc;
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    color: #718096;
    font-size: 16px;
}

.tbt-error {
    padding: 16px;
    background: #fed7d7;
    border: 1px solid #fc8181;
    border-radius: 6px;
    color: #c53030;
    font-weight: 500;
}
