/* --- Staff Page Styles --- */

/* Tab Navigation */
.staff-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    margin-bottom: 1.5em;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 1em;
}

.tab-btn {
    padding: 0.7em 1.5em;
    background: #f4f8fa;
    border: none;
    border-radius: 8px;
    color: #225b82;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-size: 1.05em;
}

.tab-btn:hover {
    background: #e0f1ff;
}

.tab-btn.active {
    background: #225b82;
    color: #fff;
}

#staffSearch {
    margin-left: auto;
    padding: 0.7em 1em;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95em;
    min-width: 200px;
}

/* Staff List Tabs */
.staff-list-tab {
    margin-bottom: 2em;
}

.staff-list-tab h2 {
    color: #225b82;
    margin-bottom: 1em;
    font-size: 1.5em;
    font-weight: 600;
}

/* Staff profile */

.staff-section {
  margin-bottom: 1.5em;
}

.staff-section h3 {
  margin-bottom: 0.5em;
  font-size: 1.1em;
  color: #333;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
}

/* Staff Grid Layout */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5em;
    margin-bottom: 2em;
}

/* Staff Card Mini */
.staff-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s;
}

.staff-card-link:hover {
    transform: translateY(-5px);
}

.staff-card-mini {
    background: #fff;
    border-radius: 12px;
    padding: 1.5em;
    box-shadow: 0 4px 15px rgba(34,91,130,0.08);
    text-align: center;
    transition: box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.staff-card-mini:hover {
    box-shadow: 0 6px 20px rgba(34,91,130,0.15);
}

.mini-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    background: #f4f4f4;
    margin-bottom: 1em;
}

.mini-info {
    text-align: center;
}

.mini-name {
    font-size: 1.12em;
    font-weight: 600;
    color: #225b82;
    margin-bottom: 0.3em;
}

.mini-position {
    font-size: 0.95em;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    max-height: 4.5em;
}

/* Staff Detail Card */
.staff-card {
    display: flex;
    flex-direction: row;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(34,91,130,0.11);
    margin-top: 15px;
    padding: 2em 2.5em;
    align-items: flex-start;
    gap: 2em;
    transition: box-shadow 0.2s;
    position: relative;
}

.staff-card-current {
    background: #eaffea !important;
    border: 2px solid #8fce8f;
}

.staff-img-large {
    width: 100%;
    max-width: 350px;
    aspect-ratio: 3/4;
    margin: 0 auto;
    background: #f4f4f4;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.staff-img-large img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    border-radius: 0 !important;
    background: #f4f4f4 !important;
}

.staff-info-block {
    flex: 1 1 0%;
    min-width: 0;
}

.staff-info-block h1 {
    font-size: 2.2em;
    margin: 0 0 0.25em 0;
    color: #225b82;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-bottom: 2px solid #c41e3a;
    padding-bottom: 0.2em;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.1);
    position: relative;
}

.staff-info-block h1::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: #225b82;
}

.staff-info-block .staff-meta {
    display: block;
    overflow: visible;
    text-overflow: unset;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    -webkit-box-orient: unset;
    max-height: none;
    white-space: normal;
    color: #c41e3a;
    background-color: rgba(194, 30, 58, 0.08);
    padding: 0.5em 0.8em;
    border-radius: 4px;
    border-left: 4px solid #c41e3a;
    margin-bottom: 1em;
    font-weight: bold;
    font-size: 1.13em;
    letter-spacing: 0.01em;
}

.staff-info-block > div {
    margin-bottom: 0.35em;
    font-size: 1.07em;
    color: #333;
    align-items: center;
    gap: 0.3em;
}

.staff-info-block svg {
    margin-right: 0.25em;
    opacity: 0.7;
}

.staff-bio {
    background: #f9f9f9;
    margin: 1em 0 1em 0;
    padding: 1.2em 1.5em;
    border-radius: 10px;
    border-left: 4px solid #225b82;
    line-height: 1.5;
}

.player-link-section {
    margin: 1.5em 0;
}

.player-profile-link {
    display: inline-block;
    background: #225b82;
    color: #fff;
    padding: 0.7em 1.2em;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.player-profile-link:hover {
    background: #1a4563;
}

/* Staff Sidebar */
.staff-sidebar {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 1.5em;
    min-width: 250px;
}

.sidebar-title {
    font-size: 1.2em;
    font-weight: 600;
    color: #225b82;
    margin-bottom: 1em;
    padding-bottom: 0.5em;
    border-bottom: 1px solid #e0e0e0;
}

.sidebar-group {
    margin-bottom: 1.5em;
}

.sidebar-group-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5em;
}

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

.sidebar-staff-list li {
    margin-bottom: 0.5em;
    padding: 0.3em 0;
}

.sidebar-staff-link {
    color: #225b82;
    text-decoration: none;
    display: block;
    padding: 0.3em 0.5em;
    border-radius: 4px;
    transition: background 0.15s;
}

.sidebar-staff-link:hover {
    background: #e0f1ff;
    color: #1a3e5a;
}

.sidebar-staff-link.active {
    background: #225b82;
    color: #fff;
    font-weight: 600;
}

/* Related News Section */
.staff-related-news {
    background: #f6f9fc;
    padding: 1.25em 1.5em;
    border-radius: 10px;
    border-left: 5px solid #225b82;
    box-shadow: 0 1px 6px rgba(34,91,130,0.05);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.staff-related-news-title {
    margin-top: 0;
    margin-bottom: 0.9em;
    color: #225b82;
    font-size: 1.18em;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.staff-related-news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.staff-related-news-list li {
    margin-bottom: 0.55em;
    font-size: 1.08em;
}

.news-link {
    color: #c41e3a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.18s;
    border-bottom: 1px dashed rgba(196, 30, 58, 0.13);
}

.news-link:hover {
    color: #225b82;
    border-bottom: 1px solid #225b82;
}

/* Responsive Styles */
@media (max-width: 900px) {
    .staff-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1em;
    }
    
    .staff-card {
        flex-direction: column;
        padding: 1.5em;
    }
    
    .staff-img-large {
        max-width: 100%;
        margin-bottom: 1.5em;
    }
    
    .staff-tabs {
        justify-content: center;
    }
    
    #staffSearch {
        margin: 1em 0 0 0;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .staff-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
    
    .mini-img {
        width: 100px;
        height: 100px;
    }
    
    .mini-name {
        font-size: 1em;
    }
    
    .mini-position {
        font-size: 0.85em;
    }
}
