/* =============================================================================
   assets/css/external-roster.css
   Styles for the public team roster page (external/team-roster.php)
   Standalone, no GameFace header or internal UI dependencies
   ============================================================================= */

/* -------------------------------------------------------------------------
   BODY & LAYOUT
   ------------------------------------------------------------------------- */

.ext-roster-body {
    background: #f8fafc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.ext-roster-main {
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    padding: 24px 20px 48px;
    flex: 1;
}


/* -------------------------------------------------------------------------
   HEADER BANNER
   ------------------------------------------------------------------------- */

.ext-roster-header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #fff;
    padding: 32px 20px 28px;
}

.ext-roster-header-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.ext-roster-team-identity {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ext-roster-team-logo {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.ext-roster-team-logo-placeholder {
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: rgba(255, 255, 255, 0.6);
}

.ext-roster-team-name {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.ext-roster-team-meta {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.ext-roster-meta-sep {
    opacity: 0.4;
}


/* -------------------------------------------------------------------------
   STATS BAR (header)
   ------------------------------------------------------------------------- */

.ext-roster-stats-bar {
    display: flex;
    gap: 24px;
}

.ext-roster-stat {
    text-align: center;
}

.ext-roster-stat-num {
    display: block;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.ext-roster-stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
    display: block;
}


/* -------------------------------------------------------------------------
   SECTIONS
   ------------------------------------------------------------------------- */

.ext-roster-section {
    margin-bottom: 32px;
}

.ext-roster-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.ext-roster-section-title svg {
    width: 18px;
    height: 18px;
    color: var(--gf-teal, #14b8a6);
}

.ext-roster-count {
    background: #e2e8f0;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 4px;
}

.ext-roster-about p {
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    background: #fff;
    border-radius: 10px;
    padding: 16px 20px;
    border: 1px solid #e2e8f0;
}


/* -------------------------------------------------------------------------
   COACHING STAFF
   ------------------------------------------------------------------------- */

.ext-roster-coaches {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ext-roster-coach-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px;
    min-width: 220px;
    flex: 1 1 220px;
    max-width: 320px;
}

.ext-roster-avatar {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: var(--gf-style-primary-blue-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    overflow: hidden;
}

.ext-roster-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ext-roster-coach-name {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.ext-roster-coach-role {
    font-size: 12px;
    color: #64748b;
    margin-top: 1px;
}


/* -------------------------------------------------------------------------
   ATHLETE ROSTER GRID
   ------------------------------------------------------------------------- */

.ext-roster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.ext-roster-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    position: relative;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.ext-roster-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

.ext-roster-card[onclick]:hover {
    border-color: var(--gf-teal, #14b8a6);
}

.ext-roster-card-avatar {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
    overflow: hidden;
}

.ext-roster-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ext-roster-jersey {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1;
}

.ext-roster-card-info {
    flex: 1;
    min-width: 0;
}

.ext-roster-card-name {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ext-roster-gc-icon {
    font-size: 13px;
    color: var(--gf-teal, #14b8a6);
    opacity: 0;
    transition: opacity 0.2s;
}

.ext-roster-card:hover .ext-roster-gc-icon {
    opacity: 1;
}

.ext-roster-card-details {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.ext-roster-detail-tag {
    font-size: 11px;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
}

.ext-roster-grad {
    background: #ede9fe;
    color: #6d28d9;
}


/* -------------------------------------------------------------------------
   EVENTS
   ------------------------------------------------------------------------- */

.ext-roster-events {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ext-roster-event {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px;
}

.ext-roster-event-date {
    text-align: center;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 8px 10px;
    min-width: 48px;
    flex-shrink: 0;
}

.ext-roster-event-month {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.5px;
}

.ext-roster-event-day {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
    margin-top: 2px;
}

.ext-roster-event-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.ext-roster-event-meta {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}


/* -------------------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------------------- */

.ext-roster-footer {
    background: #1e293b;
    color: rgba(255, 255, 255, 0.7);
    padding: 20px;
    margin-top: auto;
}

.ext-roster-footer-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.ext-roster-powered {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.ext-roster-gf-logo {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.ext-roster-powered a {
    color: var(--gf-style-primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.ext-roster-powered a:hover {
    text-decoration: underline;
}

.ext-roster-footer-note {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}


/* -------------------------------------------------------------------------
   MOBILE
   ------------------------------------------------------------------------- */

@media (max-width: 768px) {
    .ext-roster-header {
        padding: 24px 16px 20px;
    }
    
    .ext-roster-header-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .ext-roster-team-name {
        font-size: 20px;
    }
    
    .ext-roster-team-logo {
        width: 48px;
        height: 48px;
    }
    
    .ext-roster-stats-bar {
        width: 100%;
        justify-content: space-around;
        padding-top: 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .ext-roster-main {
        padding: 16px 12px 32px;
    }
    
    .ext-roster-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .ext-roster-card {
        padding: 10px 12px;
    }
    
    .ext-roster-card-avatar {
        width: 42px;
        height: 42px;
        font-size: 13px;
    }
    
    .ext-roster-coaches {
        flex-direction: column;
    }
    
    .ext-roster-coach-card {
        max-width: none;
    }
    
    .ext-roster-footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .ext-roster-card-details {
        gap: 3px;
    }
    
    .ext-roster-detail-tag {
        font-size: 10px;
        padding: 1px 5px;
    }
}

