/**
 * Staff Grid V2 Styles
 */

:root {
    --staff-v2-orange: #e0650a;
    --staff-v2-black: #1a1a1a;
    --staff-v2-gray: #666666;
    --staff-v2-light-bg: #f5f5f5;

    /* Font sizes - set base or override specific elements */
    --staff-v2-card-name-font-size: 24px;

    --staff-v2-card-font-size: 19px;
    --staff-v2-card-font-size-title: var(--staff-v2-card-font-size);
    --staff-v2-card-font-size-region: var(--staff-v2-card-font-size);
    --staff-v2-card-font-size-contact: var(--staff-v2-card-font-size);

    --staff-v2-card-font-weight-light: 300;
    --staff-v2-card-font-weight-regular: 400;
    --staff-v2-card-font-weight-bold: 700;
}

/* Wrapper */
.staff-grid-v2-wrapper {
    padding: 20px 0;
}

/* Filter Tabs */
.staff-filters-v2 {
    display: flex;
    gap: 0;
    margin-bottom: 30px;
    border-radius: 4px;
    overflow: hidden;
}

.staff-filter-v2 {
    flex: 1;
    padding: 18px 20px;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    background: var(--staff-v2-black);
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.staff-filter-v2:first-child {
    border-left: none;
}

.staff-filter-v2:hover {
    background: #333333;
}

.staff-filter-v2.active {
    background: var(--staff-v2-orange);
}

/* Grid */
.staff-grid-v2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Staff Card - no shadow */
.staff-card-v2 {
    background: #ffffff;
}

/* Photo Container */
.staff-card-v2__photo {
    position: relative;
    width: 100%;
    aspect-ratio: 20 / 23; /* 115% height ratio */
    background: #5a5a5a;
    overflow: hidden;
    border-radius: 16px;
}

.staff-card-v2__photo-main,
.staff-card-v2__photo-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.6s ease-in-out;
}

.staff-card-v2__photo-main {
    opacity: 1;
    z-index: 1;
}

.staff-card-v2__photo-hover {
    opacity: 0;
    z-index: 2;
}

.staff-card-v2:hover .staff-card-v2__photo-main {
    opacity: 0;
}

.staff-card-v2:hover .staff-card-v2__photo-hover {
    opacity: 1;
}

.staff-card-v2__photo-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 100%);
}

/* Info Section */
.staff-card-v2__info {
    padding: 20px;
    background: #ffffff;
}

/* Name */
.staff-card-v2__name {
    font-size: var(--staff-v2-card-name-font-size);
    margin-bottom: 2px;
    line-height: 1.2;
    font-weight: var(--staff-v2-card-font-weight-regular);
    color: #1a1a1a;
}

/* Title */
.staff-card-v2__title {
    display: block;
    font-size: var(--staff-v2-card-font-size-title);
    line-height: 1.2;
    color: var(--staff-v2-gray);
    margin-bottom: 20px;
    font-weight: var(--staff-v2-card-font-weight-light);
}

/* Region */
.staff-card-v2__region {
    display: block;
    font-size: var(--staff-v2-card-font-size-region);
    line-height: 1.2;
    color: var(--staff-v2-gray);
    margin-bottom: 20px;
    font-weight: var(--staff-v2-card-font-weight-light);
}

/* Contact */
.staff-card-v2__contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
    line-height: 1.2;
    margin-top: 3px;
    font-weight: var(--staff-v2-card-font-weight-light);
}

.staff-card-v2__phone,
.staff-card-v2__email {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--staff-v2-card-font-size-contact);
    color: var(--staff-v2-orange);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.staff-card-v2__phone:hover,
.staff-card-v2__email:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.staff-card-v2__phone svg,
.staff-card-v2__email svg {
    flex-shrink: 0;
    stroke: var(--staff-v2-orange);
}

/* Tablet: 2 columns */
@media (max-width: 980px) {
    .staff-grid-v2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .staff-filters-v2 {
        flex-wrap: wrap;
    }

    .staff-filter-v2 {
        flex: 0 0 calc(33.333% - 0px);
        padding: 10px 15px;
        font-size: 13px;
    }
}

/* Mobile: 1 column */
@media (max-width: 767px) {
    .staff-grid-v2 {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .staff-filter-v2 {
        flex: 0 0 50%;
        padding: 10px 12px;
        font-size: 12px;
    }

    .staff-filter-v2:nth-child(n + 5) {
        border-top: 1px solid rgba(255, 255, 255, 0.3);
    }

    .staff-card-v2__info {
        padding: 15px;
    }

    /* Don't hide region on mobile hover */
    .staff-card-v2:hover .staff-card-v2__region {
        opacity: 1;
        max-height: 25px;
        margin-bottom: 20px;
    }
}
