/* ===== LIBRARY TABS ===== */
.gl-tabs {
    display: flex;
    background: #171a21;
    border-bottom: 1px solid #2a475e;
}

.gl-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 13px;
    color: #8f98a0;
    border-bottom: 2px solid transparent;
}

.gl-tab:hover {
    color: #c6d4df;
    background: rgba(102, 192, 244, 0.05);
}

.gl-tab.active {
    color: #66c0f4;
    border-bottom-color: #66c0f4;
    background: rgba(102, 192, 244, 0.1);
}

.gl-tab .material-icons-round {
    font-size: 18px;
}

/* ===== FRIENDS TAB ===== */
.gl-friend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
    margin-bottom: 2px;
}

.gl-friend-item:hover {
    background: rgba(102, 192, 244, 0.1);
}

.gl-friend-avatar-lg {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
    overflow: hidden;
}

.gl-friend-avatar-lg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gl-friend-info {
    flex: 1;
    min-width: 0;
}

.gl-friend-name {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gl-friend-status {
    font-size: 12px;
    color: #8f98a0;
    margin-top: 2px;
}

.gl-friend-status.playing {
    color: #5ba845;
}

/* Friends Overview */
.gl-friends-overview {
    padding: 40px;
}

.gl-friends-header {
    margin-bottom: 32px;
}

.gl-friends-header h1 {
    font-size: 32px;
    color: #fff;
    margin-bottom: 8px;
}

.gl-friends-header p {
    color: #8f98a0;
    font-size: 14px;
}

.gl-friends-sections {
    display: grid;
    gap: 24px;
}

.gl-friends-section h3 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 16px;
}

.gl-friends-playing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.gl-friend-playing-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
}

.gl-friend-playing-card:hover {
    background: rgba(102, 192, 244, 0.1);
}

.gl-fpc-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
    overflow: hidden;
}

.gl-fpc-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gl-fpc-info {
    flex: 1;
    min-width: 0;
}

.gl-fpc-name {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gl-fpc-game {
    font-size: 12px;
    color: #5ba845;
    margin-top: 2px;
}

/* Friend Profile View */
.gl-friend-profile {
    min-height: 100%;
}

.gl-fp-header {
    padding: 60px 40px 40px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.gl-fp-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #2a475e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 600;
    color: white;
    border: 4px solid rgba(255,255,255,0.1);
    overflow: hidden;
}

.gl-fp-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gl-fp-info h1 {
    font-size: 32px;
    color: #fff;
    margin-bottom: 4px;
}

.gl-fp-info p {
    color: rgba(255,255,255,0.7);
    font-size: 16px;
    margin-bottom: 12px;
}

.gl-fp-playing {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(91, 168, 69, 0.2);
    color: #5ba845;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
}

.gl-fp-content {
    padding: 40px;
}

.gl-fp-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 32px;
}

.gl-fp-stat {
    text-align: center;
}

.gl-fp-stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #66c0f4;
}

.gl-fp-stat-label {
    display: block;
    font-size: 12px;
    color: #8f98a0;
    margin-top: 4px;
}

.gl-fp-bio {
    background: rgba(0,0,0,0.2);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.gl-fp-bio p {
    color: #c6d4df;
    line-height: 1.6;
}

.gl-fp-actions {
    display: flex;
    gap: 12px;
}

/* Game Source */
.gl-game-source {
    margin-top: 24px;
    padding: 16px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
}

.gl-game-source h4 {
    font-size: 13px;
    color: #8f98a0;
    margin-bottom: 8px;
}
