/* === GENERAL SECTION STYLING === */
.roster-page {
    padding-top: var(--space-xxl); padding-bottom: var(--space-xxl);
}
.roster-section {
    background: transparent; padding: 0; border: none; box-shadow: none;
    margin-bottom: var(--space-xxl); color: var(--text-light); text-align: center;
}
.roster-section h2 {
    font-size: clamp(2rem, 5vw, 3rem); text-transform: uppercase; font-family: var(--font-heading);
    font-weight: 600; color: var(--primary-color); margin: 0 auto var(--space-xl) auto;
    position: relative; letter-spacing: 1.5px; display: inline-block; padding-bottom: var(--space-sm);
}
.roster-section h2::after {
    content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 70%; height: 3px; background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.6;
}
.section-divider {
    height: 1px; background: linear-gradient(to right, transparent, var(--border-color-medium), transparent);
    margin: var(--space-xxl) auto; width: 60%; position: relative;
}
.section-divider span {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 8px;
    height: 8px; background-color: var(--primary-color); border-radius: 50%; opacity: 0.5;
}

/* === GRID LAYOUT (matches C-suite grid) === */
.roster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
    max-width: 1200px;
    margin: 0 auto;
}

.loading-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    padding: var(--space-xxl);
    font-style: italic;
}


/* === ROSTER CARD DESIGN (now uses C-Suite design) === */
.roster-card {
    background: linear-gradient(145deg, var(--dark-color) 0%, var(--medium-gray) 100%);
    border: 1px solid var(--border-color-medium);
    border-radius: 12px;
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
    font-family: var(--font-body);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: var(--text-light);
    height: 400px; /* Specific height for C-suite design */
}

.roster-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-color-dark), 0 0 10px var(--shadow-color-cyan);
}

.roster-card .card-image-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.roster-card .profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.roster-card .card-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(11, 11, 12, 0.95) 15%, rgba(11, 11, 12, 0.1) 60%);
    z-index: 1;
    border-radius: 12px;
}

.roster-card .watermark {
    position: absolute;
    top: 0;
    left: 0;
    height: auto;
    z-index: 2;
    opacity: 1;
    pointer-events: none;
}

.roster-card .card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-lg);
    z-index: 2;
    text-align: left;
}

.roster-card h3 {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    color: #fff;
    margin: 0 0 var(--space-xs) 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.roster-card p {
    font-size: 1rem;
    color: var(--primary-color);
    margin: 0 0 var(--space-md) 0;
    font-weight: 500;
}

.roster-card .flag {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    width: 40px;
    height: auto;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 2;
}

/* === SHARED DISCORD INFO === */
.member-discord-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.discord-mini-icon {
    height: 45px;
    width: auto;
    flex-shrink: 0;
    filter: invert(1) brightness(1.5);
}

.member-discord-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 992px) {
     .roster-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
     .roster-card .profile-image { height: 240px; }
     .roster-card { height: 380px; }
}

@media (max-width: 768px) {
    .roster-page { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }
    .roster-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-md); }
    .roster-card { border-radius: 10px; height: 360px; }
    .roster-card .card-image-container { height: 220px; }
    .roster-section h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
    .roster-card h3 { font-size: 1.3rem; }
    .roster-card p { font-size: 0.85rem; }
    .section-divider { width: 70%; }
}

@media (max-width: 580px) {
    .roster-grid { grid-template-columns: 1fr; max-width: 350px; margin: 0 auto; }
}
@media (max-width: 480px) {
    .roster-page { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }
}